proto._._
11/04/2025, 2:58 AMAI Evy
11/04/2025, 2:58 AMAI Evy
11/04/2025, 2:59 AMPOST <https://api.retellai.com/v2/create-phone-call>
[(1) ]() , [(2) ]() , [(3) ]()
Required parameters: [(1) ]()
- `from_number`: Your Retell number in E.164 format (e.g., "+14157774444")
- `to_number`: The destination number in E.164 format (e.g., "+12137774445")
- `override_agent_id`: The agent ID to use for this call (e.g., "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD")
Example using the Retell SDK:
javascript
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) ;
Authorization:
You need to include your API key in the Authorization header as a Bearer token.
Optional parameters include:
- `metadata`: Store custom data like internal customer IDs
- `retell_llm_dynamic_variables`: Inject dynamic variables into your prompts (e.g., {"customer_name": "John Doe"})AI Evy
11/04/2025, 2:59 AMAI Evy
11/04/2025, 2:59 AMproto._._
11/04/2025, 3:23 AMAI Evy
11/04/2025, 3:23 AMproto._._
11/04/2025, 3:23 AMAI Evy
11/04/2025, 3:24 AMretell_llm_dynamic_variables parameter [(2) ]() . Then reference it in your welcome node prompt using the {{variable_name}} format [(1) ]() .
Example API call structure:
json
{
"from_number": "+14157774444",
"to_number": "+12137774445",
"override_agent_id": "agent_id_here",
"retell_llm_dynamic_variables": {
"first_name": "John"
}
}
[(2) ]()
In your Zapier workflow, map the first name field from your Meta form to the retell_llm_dynamic_variables.first_name parameter when making the API call.
Then in your welcome node's instruction or first message, use {{first_name}} to reference it [(1) ]() . For example: "Hi {{first_name}}, thanks for reaching out!"
The dynamic variable will be injected into your prompt at runtime [(3) ]() , allowing your agent to personalize the greeting with the customer's first name.AI Evy
11/04/2025, 3:24 AMAI Evy
11/04/2025, 3:24 AMAI Evy
11/04/2025, 3:31 AMproto._._
11/04/2025, 3:31 AMAI Evy
11/04/2025, 3:31 AMAI Evy
11/04/2025, 3:31 AMAI Evy
11/04/2025, 3:32 AM