thetechjackie
09/02/2025, 7:05 PMAI Evy
09/02/2025, 7:06 PMAI Evy
09/02/2025, 7:06 PMcall_ended event .
2. Multiple Event Types
Retell AI sends different webhook events for each call :
- call_started - when a new call begins
- call_ended - when a call completes, transfers, or encounters an error
- call_analyzed - when call analysis is complete
Make sure you're not confusing call_ended and call_analyzed webhooks, as both fire after a call ends .
To troubleshoot:
1. Ensure your webhook endpoint returns a 2xx status code quickly
2. Check your webhook logs to see if you're receiving retries of the same event
3. Verify you're handling the correct event type in your webhook payload
4. Consider implementing idempotency checks using the call_id to prevent duplicate processing
The webhook payload includes the event type and call object, so you can use the call_id to deduplicate notifications .AI Evy
09/02/2025, 7:06 PMAI Evy
09/02/2025, 7:06 PMthetechjackie
09/02/2025, 7:07 PMAI Evy
09/02/2025, 7:07 PMAI Evy
09/02/2025, 7:08 PMevent type and call_id, this indicates a fundamental issue with how the webhook payload is being received or parsed [(1) ]() .
According to the webhook specification, every Retell AI webhook should contain both the event type and call object with the call_id . The expected payload structure is:
json
{
"event": "call_ended",
"call": {
"call_type": "phone_call",
"from_number": "+12137771234",
"to_number": "+12137771235",
"direction": "inbound",
"call_id": "Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6",
"agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
"call_status": "registered",
"metadata": {},
"retell_llm_dynamic_variables": {
"customer_name": "John Doe"
},
"start_timestamp": 1714608475945,
"end_timestamp": 1714608491736,
"disconnection_reason": "user_hangup",
"transcript": "...",
"transcript_object": [ [Object], [Object], [Object], [Object] ],
"transcript_with_tool_calls": [ [Object], [Object], [Object], [Object] ],
"opt_out_sensitive_data_storage": false
}
}AI Evy
09/02/2025, 7:08 PMAI Evy
09/02/2025, 7:08 PMapplication/json content type correctly
To troubleshoot:
1. Log the raw request body and headers at your webhook endpoint
2. Verify your webhook endpoint accepts POST requests with application/json content type
3. Test your endpoint locally using the provided CURL command from the setup guide
4. Check that your webhook URL is correctly configured in the Retell dashboard
If the payload structure is completely different from what's documented, this could indicate you're receiving webhooks from a different source or there's a configuration issue with your webhook setup.AI Evy
09/02/2025, 7:08 PMthetechjackie
09/02/2025, 7:10 PMAI Evy
09/02/2025, 7:10 PMAI Evy
09/02/2025, 7:11 PMmulti in the Create Agent API [(2) ]() [(3) ]() :
json
{
"language": "multi"
}
The multi option enables multilingual support, currently supporting Spanish and English [(3) ]() . However, this may not include German specifically.
3. Available German Language Options
You can set the language to German using the language codes available in the API [(2) ]() [(3) ]() :
- de-DE for German (Germany)
4. Testing Approach
Since the language setting determines what language the agent understands (speech-to-text) and influences the default TTS model choice [(4) ]() , you could:
- Have a German-speaking colleague test the agent
- Use text-to-speech tools to generate German audio for testing
- Create simple test phrases in German to verify basic functionality
Note on Language Enforcement
The language setting will not enforce the agent to generate responses in German - you need to set that in the prompt by adding something like "always respond in German" .AI Evy
09/02/2025, 7:11 PMAI Evy
09/02/2025, 7:11 PM