I would like to have a system where I can use a make.com scenario to randomize which of my RetellAI agents a phone call gets connected to.
When I try to execute a HTTP make a request module in make.com to the url
https://api.retellai.com/v2/create-phone-call , I get an error code "Error: 404 Not Found".
Before this step, I have a custom webhook that gets triggered by RetellAI phone number level webhook.
The make.com http make a request module does the following:
POST to:
https://api.retellai.com/v2/create-phone-call
headers:
Authorization: Bearer
Content-Type: application/json
body type: raw
content type: JSON (application/json)
request content:
{
"from_number": "{{1.call_inbound.from_number}}",
"to_number": "{{1.call_inbound.to_number}}",
"override_agent_id": {{3.test}}
}
---
- {{3.test}} is the ID of one of my RetellAI agents
- download link for make.com scenario (I removed my RetellAI key):
https://drive.google.com/file/d/1PsyyI_7oMUix3lQbyOIazOprkztCYPtS/view?usp=drive_link