https://retellai.com/?utm_source=discord&utm_medium=seo logo
do you know the formatting for the import agent JS...
# ❓・ai-evy-support
n
@AI Evy do you know the formatting for the import agent JSON structure?
a
Thanks for tagging me @neo7616. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, there isn't comprehensive documentation for the exact JSON structure for importing agents [(1) ]() . However, I can share what's available from community discussions and the create agent API structure. From the Discord discussions, the import format appears to be related to the agent export format . When you export an agent from the dashboard, you get the JSON structure that can be used for importing . For reference, here's the structure used when creating an agent via API [(2) ]() [(3) ]() :
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const agentResponse = await client.agent.create({
 response_engine: { llm_id: 'llm_234sdertfsdsfsdf', type: 'retell-llm' },
 voice_id: '11labs-Adrian',
}) ;
From community troubleshooting, common issues with import JSON files include [(4) ]() : - Headers, query_params, and response variables should be objects
{}
rather than empty arrays
[]
- The JSON structure must match the expected Retell Agent format exactly [(1) ]() To get the correct format for importing, the recommended approach is to : 1. Create an agent manually in the dashboard with the features you need 2. Export that agent to get the proper JSON structure 3. Use that exported JSON as a template for creating additional import files If you're experiencing import issues, I'd recommend checking these resources for more details: - [Create Agent]() Would you like me to try providing a general answer based on typical agent configuration structures, or would you prefer to contact support directly for the specific import schema?
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.