https://retellai.com/?utm_source=discord&utm_medium=seo logo
I am receiving these errors, even though I am send...
# ❓・ai-evy-support
s
@AI Evy I am receiving these errors, even though I am sending the webhook response in proper format 2025-09-09 17:38:50.205 call_e2cf2f4bce600be1c06fde196ca error: Error met in inbound call webhook: Error: Invalid webhook response format at triggerIncomingCallWebhook (file:///usr/src/app/dist/api/call_api.js:407:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async file:///usr/src/app/dist/api/call_api.js:668:41
a
Thanks for tagging me @surya_50622. I'll look through relevant sources and get back to you shortly.
### Answer The "Invalid webhook response format" error typically occurs when the webhook response doesn't match the expected JSON structure [(1) ]() . For inbound call webhooks, Retell AI expects a specific response format . The correct response format should be :
Copy code
json
{
 "call_inbound": {
 "override_agent_id": "agent_12345",
 "override_agent_version": 1,
 "dynamic_variables": {
 "customer_name": "John Doe"
 },
 "metadata": {
 "random_id": "12345"
 }
 }
}
Key requirements for the response : - Must be valid JSON with a successful status code (2xx) - All fields must be grouped under
call_inbound
- All fields are optional, but the structure must be maintained Based on community experience, common causes of this error include [(2) ]() : - Variables that are too long (particularly call summaries) - Non-string values in dynamic variables - Malformed JSON structure To troubleshoot: 1. Ensure all dynamic variables are strings 2. Test with hardcoded, short values first 3. Verify your JSON structure matches the expected format exactly [(1) ]() 4. Check that you're returning a 2xx status code The webhook has a 10-second timeout and will retry up to 3 times if unsuccessful .
​ To learn more, see the sources I considered: [[1] Inbound call webhook](https://docs.retellai.com/features/inbound-call-webhook) [[2] agent not receiving dynamic variables from inbound webhook response](https://discord.com/channels/1186424376300679209/1394015802402930778) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.