niction_
07/29/2025, 10:53 AMniction_
07/29/2025, 11:21 AMAI Evy
07/29/2025, 11:21 AMAI Evy
07/29/2025, 11:21 AMis_published is false [(1) ]() . The create agent API does not require the LLM to be published first.
Here's the correct approach using the JavaScript SDK:
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',
}) ;
console.log(agentResponse.agent_id) ;
The response will show your agent with is_published: false initially . You don't need to publish the LLM separately - you can create the agent directly with an unpublished LLM.
If you're getting 404 errors when creating agents, check that:
1. Your llm_id is correct [(2) ]()
2. Your voice_id is valid (common cause of 404s)
3. Your API key has proper permissions [(1) ]()
For troubleshooting similar issues where agents don't appear in API calls despite being visible in the dashboard, this appears to be a known issue that Retell is investigating [(3) ]() .AI Evy
07/29/2025, 11:21 AMAI Evy
07/29/2025, 11:21 AMshahretell
07/29/2025, 3:54 PM