cartier5
11/06/2025, 8:17 AMAI Evy
11/06/2025, 8:17 AMAI Evy
11/06/2025, 8:17 AMfrom_number must be a phone number you've purchased and configured through Retell AI
2. Incorrect parameter names - Use override_agent_id instead of agent_id in your request
3. Phone number lacks outbound agent binding - The phone number should have an outbound_agent_id configured, or you need to use the override_agent_id parameter
Correct Request Structure:
Your request payload should look like this :
python
{
"from_number": "+16504144521",
"to_number": "your_target_number",
"override_agent_id": "your_agent_id_here",
"retell_llm_dynamic_variables": {
"name": "value"
}
}AI Evy
11/06/2025, 8:17 AMAI Evy
11/06/2025, 8:18 AMoutbound_agent_id configured [(3) ]() [(2) ]()
3. Use override_agent_id parameter in your create phone call request [(4) ]() [(1) ]()
4. Check that your from_number is in E.164 format (e.g., "+14157774444") [(4) ]() [(5) ]()
If you haven't set up your phone number yet, you'll need to either purchase a new number through Retell AI or import an existing number from a supported provider [(2) ]() .AI Evy
11/06/2025, 8:18 AMcartier5
11/06/2025, 8:20 AMAI Evy
11/06/2025, 8:20 AMAI Evy
11/06/2025, 8:20 AMto_number) from your Retell phone number (from_number) [(2) ]() [(1) ]() .
Basic structure in Python:
python
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneCallResponse = await client.call.createPhoneCall({
from_number: '+14157774444',
to_number: '+12137774445',
}) ;
console.log(phoneCallResponse.agent_id) ;
[(1) ]()
Key parameters:
- `from_number`: Your Retell number in E.164 format
- `to_number`: The destination number you want to call in E.164 format
- `override_agent_id`: The agent ID to handle the call (optional if your phone number already has an outbound agent configured)
The agent you specify will handle the conversation when the call connects [(2) ]() [(1) ]() .AI Evy
11/06/2025, 8:20 AMAI Evy
11/06/2025, 8:20 AMcartier5
11/06/2025, 8:22 AMAI Evy
11/06/2025, 8:22 AMAI Evy
11/06/2025, 8:22 AMwss://your_domain/llm-websocket/ .
The sources show how to set up the WebSocket server endpoint :
python
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneNumberResponse = await client.phoneNumber.create() ;
console.log(phoneNumberResponse.inbound_agent_id) ;
Unfortunately, the available sources don't contain specific documentation about:
- Forwarding calls from Twilio through your DTMF handling to Retell's WebSocket
- Programmatically connecting an already-active inbound call to a WebSocket endpoint
For this specific integration pattern (Twilio → DTMF handling → Retell WebSocket) , I'd recommend:
Visit [Contact Sales]() or check [) for implementation guidance on this custom telephony scenario.AI Evy
11/06/2025, 8:22 AMAI Evy
11/06/2025, 8:22 AM