https://retellai.com/?utm_source=discord&utm_medium=seo logo
i created an voice agent on claude AI but the json...
# ❓・ai-evy-support
s
@AI Evy i created an voice agent on claude AI but the json file that it gave cant be read on retell ai. What do i do
a
Thanks for tagging me @Silvio. I'll look through relevant sources and get back to you shortly.
### Answer --- JSON files generated by Claude (or ChatGPT) often don't match the exact format Retell AI expects for agent imports. [(1) ]() Here are your options: Option 1: Export an existing agent to get the correct format Export a working agent from the Retell AI dashboard to see the exact JSON structure required, then use that as a template. [(2) ]() Option 2: Create the agent via the API instead Rather than importing a JSON file, you can create agents programmatically using the Retell SDK. Here's an example: [(3) ]()
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
  apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const agentResponse = await client.agent.retrieve('16b980523634a6dc504898cda492e939') ;
console.log(agentResponse.agent_id) ;
[(4) ]() Option 3: Use the MCP Server integration If you want Claude to create agents directly, you can set up the Retell AI MCP Server connection. This allows Claude to create agents properly through the API rather than generating JSON files that may not match the required format. [(5) ]() The key issue is that external LLMs don't always generate the agent JSON correctly—the format must match Retell's exact specifications. [(1) ]()
​ To learn more, see the sources I considered: [[1] Getting errors trying to import agents, please help](https://discord.com/channels/1186424376300679209/1425936575383994468) [[2] Conversation/agent JSON file format](https://discord.com/channels/1186424376300679209/1399111940982177962) [[3] Create Voice Agent](https://docs.retellai.com/api-references/create-agent) [[4] Get Voice Agent](https://docs.retellai.com/api-references/get-agent) [[5] How to Connect Retell AI MCP Server to Claude & More | Retell AI | Retell AI](https://www.retellai.com/blog/connect-retell-ai-mcp-server-to-ai-assistant) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
No i need it from this claude ai