Skip to main content
The Import from JSON method allows developers and platform teams to manage voice agents as code (GitOps). You can version-control your entire agent definition in Git, review diffs across pull requests, and deploy agent updates reproducibly across development, staging, and production environments.
Vaani Create Agent Menu showing Import from JSON

How to Import an Agent from JSON

1

Select 'Import from JSON'

In the Vaani Dashboard, click + New Agent and select Import from JSON.
2

Upload or Paste JSON Configuration

You can either drag and drop a .json configuration file or paste your JSON payload directly into the built-in syntax-highlighting code editor.
3

Validation and Linting

Vaani automatically validates the schema in real-time, verifying required keys, provider compatibility, and variable formatting.
4

Create Agent

Click Import Agent. Vaani instantiates the agent, sets up the pipeline, and generates a new agent_id.

Agent JSON Schema Specification

Below is the standard JSON specification for an agent in Vaani:

Exporting Existing Agents to JSON

You can also export any existing agent back to JSON at any time:
  1. Open your agent in the Vaani Dashboard.
  2. Go to the Overview tab.
  3. Click the three dots menu ... in the upper right corner and select Export JSON.
  4. Save the file directly to your code repository.

Next Steps

Agent API Reference

Create and update agents programmatically using the REST API

Configuring Your Agent

Explore the 6 core configuration pillars of your imported agent