clientnexus_71205
12/06/2025, 1:02 PMAI Evy
12/06/2025, 1:02 PMAI Evy
12/06/2025, 1:03 PMjavascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const conversationFlowResponse = await client.conversationFlow.create({
model_choice: { model: 'gpt-4.1', type: 'cascading' },
nodes: [
{
id: 'start',
instruction: { text: 'Greet the customer and ask how you can help them.', type: 'prompt' },
type: 'conversation',
},
],
start_speaker: 'agent',
}) ;
console.log(conversationFlowResponse.conversation_flow_id) ;
For Chat agents (which can use multi-prompt via Retell LLM) , use the Create Chat Agent API. [(2) ]() You can attach a Response Engine that contains your LLM configuration, including multi-prompt states.
The API allows you to define:
- response_engine with your LLM configuration
- agent_name for identification
- webhook_url for event handling
- Dynamic variables and analysis settings
You can also dynamically override agent behavior per call using webhooks with override_agent_id. [(8) ]()AI Evy
12/06/2025, 1:03 PMAI Evy
12/06/2025, 1:03 PMclientnexus_71205
12/06/2025, 1:03 PMAI Evy
12/06/2025, 1:03 PMAI Evy
12/06/2025, 1:03 PMAI Evy
12/06/2025, 1:03 PMAI Evy
12/06/2025, 1:03 PMclientnexus_71205
12/06/2025, 1:05 PMAI Evy
12/06/2025, 1:05 PMAI Evy
12/06/2025, 1:06 PMAI Evy
12/06/2025, 1:06 PMAI Evy
12/06/2025, 1:06 PMAI Evy
12/06/2025, 1:06 PMclientnexus_71205
12/06/2025, 4:21 PMAI Evy
12/06/2025, 4:21 PMAI Evy
12/06/2025, 4:21 PMAI Evy
12/06/2025, 4:21 PMsip:sip.retellai.com
- IP block for traffic: 18.98.16.120/30 (All regions) , 143.223.88.0/21 (US only) , 161.115.160.0/19 (US only)
Transport methods supported:
- TCP (Recommended) : sip:sip.retellai.com;transport=tcp
- UDP: sip:sip.retellai.com;transport=udp
- TLS: sip:sip.retellai.com;transport=tls
Once imported via SIP trunking, your international numbers will support all Retell telephony features (assuming your provider supports them) . [(1) ]() [(4) ]()
---
**AI Evy
12/06/2025, 4:21 PM