khai5202
10/18/2025, 11:20 PMAI Evy
10/18/2025, 11:20 PMAI Evy
10/18/2025, 11:20 PMcall_started webhook may not trigger [(1) ]() :
1. **User ends call before agent joins**: If the user ends the call before the agent joins the room, the call is not started at all, so no call_started webhook is triggered .
2. **Web call connection failure**: For web calls, if the user does not successfully join the call, the call_started webhook will not be triggered .
To troubleshoot this issue, I recommend:
1. Check your call history and detailed log for the disconnection reason and any error codes [(2) ]() .
2. Verify that users are successfully connecting to the call before ending it.
3. For web calls specifically, ensure the user's connection is stable and they can successfully join.
If you're still experiencing issues after checking these scenarios, you may want to examine the specific call IDs in your dashboard to see the detailed logs and determine the exact cause.AI Evy
10/18/2025, 11:20 PMAI Evy
10/18/2025, 11:20 PMkhai5202
10/18/2025, 11:21 PMkhai5202
10/18/2025, 11:21 PMAI Evy
10/18/2025, 11:21 PMAI Evy
10/18/2025, 11:22 PMcall_started - Triggered when a new call begins
- Contains basic call information
- Note: If the call did not connect (like dial failed) , this event will not be triggered
2. call_ended - Triggered when a call completes, transfers, or encounters an error
- Contains all fields from the call object except call_analysis
3. call_analyzed - Triggered when call analysis is complete
- Contains full call data including the call_analysis object
## Webhook Payload Structure
The webhook contains the event type and the call object . Here's the general structure:
json
{
"event": "call_started", // or "call_ended" or "call_analyzed"
"call": {
// call object data
}
}
## Important Notes
- Webhooks have a 10-second timeout and will retry up to 3 times if no success status (2xx) is received
- When calls don't connect (dial_failed, dial_no_answer, dial_busy) , they won't trigger call_started but will still trigger call_ended and call_analyzed webhooks
- You can register webhooks at either the account level or agent level [(2) ]()
For n8n specifically, make sure to use the production URL (not test) and set your workflow to POST method with active status [(3) ]() .AI Evy
10/18/2025, 11:22 PMAI Evy
10/18/2025, 11:22 PMkhai5202
10/18/2025, 11:23 PMkhai5202
10/18/2025, 11:24 PMAI Evy
10/18/2025, 11:24 PMAI Evy
10/18/2025, 11:24 PMcall_started webhook [(1) ]() :
## Common Scenarios Where call_started Doesn't Trigger
1. **Call Connection Failure**: If the call did not connect (like dial failed) , the call_started webhook event will not be triggered
2. **User Ends Call Early**: The user ended the call before the agent joined the room, hence the call was not started at all [(2) ]()
3. **Web Call Connection Issues**: For web calls, if the user did not successfully join the call, no call_started webhook is triggered
4. **Disconnection Reasons**: When calls have dial_failed, dial_no_answer, or dial_busy disconnection reasons, they will not have their call_started webhook triggered [(1) ]()
## Webhook Reliability Issues
There are also some reported reliability issues with webhooks [(3) ]() [(4) ]() :
- Sometimes webhooks don't arrive even when calls complete successfully [(3) ]()
- Some users have reported receiving duplicate call_started webhooks for the same call [(4) ]()
## Troubleshooting Steps
1. **Check Call Status**: Review your call logs to see the disconnection_reason field - this will tell you if the call actually connected [(1) ]()
2. **Verify Webhook Configuration**: Ensure your webhook endpoint returns a success status (2xx) within 10 seconds, as webhooks will rAI Evy
10/18/2025, 11:24 PMcall_started fails, call_ended and call_analyzed can still be triggered
If your calls are connecting successfully but you're still not receiving call_started webhooks, this might be a system issue that needs investigation by the Retell AI team.khai5202
10/18/2025, 11:25 PMAI Evy
10/18/2025, 11:25 PMAI Evy
10/18/2025, 11:26 PMcall_started - Triggered when a new call begins
2. call_ended - Triggered when a call completes, transfers, or encounters an error
3. call_analyzed - Triggered when call analysis is complete
## Webhook Configuration
The webhook will POST the payload to your n8n endpoint . The webhook has a timeout of 10 seconds and will retry up to 3 times if no success status (2xx) is received .
### Sample Webhook Payload Structure
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
}
}
## Setting Up Inbound Call Webhooks
For inbound calls, you can use inbound call webhooks to override agent settings and set dynamic variables [(2) ]() . The webhook receives this payload:
json
{
"event": "call_inbound",
"call_inbound": {
"agent_id": "agent_12345",
"from_number": "+12137771234",
"to_number": "+12137771235"
}
}
And you can respond with:AI Evy
10/18/2025, 11:26 PMjson
{
"call_inbound": {
"override_agent_id": "agent_12345",
"override_agent_version": 1,
"dynamic_variables": {
"customer_name": "John Doe"
},
"metadata": {
"random_id": "12345"
}
}
}
## n8n Setup Tips
Based on community examples, when setting up n8n workflows [(3) ]() [(4) ]() :
1. Create a webhook trigger in n8n that listens for POST requests
2. Use the production URL (not test URL) from n8n
3. Ensure your n8n workflow responds with a 2xx status code within 10 seconds [(1) ]()
4. For custom functions that call n8n, make sure the webhook response is not set to "immediately" [(5) ]()
## Security
Retell AI provides webhook security through the x-retell-signature header which allows you to verify the Retell API Key [(6) ]() . You can also allowlist Retell AI's IP address (100.20.5.228) for additional security .AI Evy
10/18/2025, 11:26 PMAI Evy
10/18/2025, 11:26 PMAI Evy
10/18/2025, 11:29 PMAI Evy
10/18/2025, 11:29 PMkhai5202
10/18/2025, 11:36 PMAI Evy
10/18/2025, 11:36 PMAI Evy
10/18/2025, 11:36 PMgetOpenSlots) from Retell AI to your n8n webhook endpoint. This appears to be working correctly.
Based on the payload structure, this is a tool call invocation where [(1) ]() :
- The agent called your custom function getOpenSlots
- It passed arguments including customer name, timezone, and requested appointment time
- The call was made at 51.954 seconds into the conversation
- Your n8n webhook URL is properly configured and receiving the data
## Understanding the Webhook Events
Retell AI sends different types of webhook events :
1. call_started - Triggered when a new call begins with basic call information
2. call_ended - Triggered when a call completes, transfers, or encounters an error
3. call_analyzed - Triggered when call analysis is complete with full call data including call_analysis object
## Tool Call vs Call Events
What you're showing appears to be a custom function/tool call rather than one of the standard call event webhooks. This happens when your AI agent decides to call an external function during the conversation [(2) ]() .
## Potential Issues
Based on community discussions, there can be differences between test calls and real calls [(3) ]() :
- Test calls from Retell web interface may behave differently than real phone calls
- Some users report receiving only call_inbound events for real calls while getting full event sequences for test calls
- Functions may not work the same way between test and production calls
## Recommendations
1. Verify your webhook endpoint is returning a 2xx status code within 10 seconds [(1) ](AI Evy
10/18/2025, 11:36 PMcall_started, call_ended, call_analyzed) in addition to tool calls
3. Ensure your agent configuration is the same for both test and real calls
4. Monitor your n8n workflow logs to see all incoming webhook requests
Your custom function integration appears to be working correctly based on this payload. If you're missing the standard call event webhooks, that would be a separate configuration issue.AI Evy
10/18/2025, 11:36 PMAI Evy
10/18/2025, 11:36 PMkhai5202
10/18/2025, 11:37 PMkhai5202
10/18/2025, 11:37 PMAI Evy
10/18/2025, 11:37 PMAI Evy
10/18/2025, 11:37 PMcall_started - Triggered when a new call begins
2. call_ended - Triggered when a call completes, transfers, or encounters an error
3. call_analyzed - Triggered when call analysis is complete
## Why Call Events Might Not Be Sent
For call_started specifically:
- If the call did not connect (like dial failed) , the call_started webhook event will not be triggered
- When calls have dial_failed, dial_no_answer, dial_busy disconnection reasons, they will not have their call_started webhook triggered
For all events:
- The webhook has a timeout of 10 seconds
- If within 10 seconds no success status (2xx) is received, the webhook will be retried, up to 3 times
- Your endpoint must return a successful status code (2xx)
## Important Configuration Notes
From community discussions, all three webhook events are automatically triggered - you cannot configure Retell AI to send only specific events [(2) ]() . However, you can filter them on your n8n side [(3) ]() .
For n8n specifically, make sure to:
- Set the run button to "immediately as data arrives"
- Apply filters between the webhook and the next node to only process the events you need
- Use your production webhook URL, not test URL
## Troubleshooting Steps
1. Verify your webhook endpoint returns a 2xx status code within 10 seconds [(1) ](AI Evy
10/18/2025, 11:37 PMdisconnection_reason to see if calls are actually connecting
3. Ensure your webhook URL is properly registered at the account or agent level
4. Monitor your n8n workflow to see if any webhook requests are being received
The webhook will be triggered in order, but is not blocking - if call_started fails, call_ended and call_analyzed can still be triggered .AI Evy
10/18/2025, 11:37 PMAI Evy
10/18/2025, 11:37 PMkhai5202
10/18/2025, 11:38 PMAI Evy
10/18/2025, 11:39 PMAI Evy
10/18/2025, 11:39 PMcall_inbound event is a specific webhook event for inbound calls that works differently from the standard call events [(1) ]() .
## What is call_inbound
The call_inbound event is triggered when an inbound call is received, before the call is actually connected . This webhook is designed to allow you to:
- Override agent settings for that specific call
- Set dynamic variables based on the caller
- Provide call-specific context
## Payload Structure
The call_inbound webhook receives this payload :
json
{
"event": "call_inbound",
"call_inbound": {
"agent_id": "agent_12345",
"from_number": "+12137771234",
"to_number": "+12137771235"
}
}
## Response Format
You can respond with customizations for that specific call :
json
{
"call_inbound": {
"override_agent_id": "agent_12345",
"override_agent_version": 1,
"dynamic_variables": {
"customer_name": "John Doe"
},
"metadata": {
"random_id": "12345"
}
}
}AI Evy
10/18/2025, 11:39 PMcall_inbound is not the same as the standard call events (call_started, call_ended, call_analyzed) [(2) ]() [(3) ]() . Based on community discussions:
- The call_inbound webhook is specifically for inbound call preprocessing [(3) ]()
- To get the standard call events (call_analyzed, etc.) , you need to set your webhook at the agent level, not just the phone number level [(2) ]() [(3) ]()
- The inbound call webhook only sends the call_inbound event - it won't send call_analyzed or other standard events [(3) ]()
## Configuration
The inbound call webhook is configured at the phone number level via the inbound_webhook_url parameter [(1) ]() [(4) ]() . This can be set through the API or dashboard [(4) ]() .
If you want to receive the full call events (call_started, call_ended, call_analyzed) for inbound calls, you need to configure webhooks at the agent level in addition to the inbound call webhook [(2) ]() [(3) ]() .AI Evy
10/18/2025, 11:39 PMAI Evy
10/18/2025, 11:39 PMkhai5202
10/18/2025, 11:41 PMAI Evy
10/18/2025, 11:41 PMAI Evy
10/18/2025, 11:41 PMinbound_webhook_url parameter through the API or dashboard [(1) ]() .
## Using the API to Set Inbound Webhook URL
You can use the Update Phone Number API endpoint to configure the webhook :
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
The inbound_webhook_url parameter should be included in your update request . When set, this will send a webhook for inbound calls, where you can override agent id, set dynamic variables and other fields specific to that call .
## API Parameter Details
The inbound_webhook_url field accepts:
- **Type**: string | null
- **Description**: If set, will send a webhook for inbound calls, where you can to override agent id, set dynamic variables and other fields specific to that call
- **Example**: `"
## Important Note About Null Values
Based on community feedback, there's an important consideration when setting up inbound webhooks [(2) ]() . If your webhook returns JSON with null values for dynamic variables, it may cause "application error" and prevent calls from connecting . The API doesn't handle nulls well for variable values - you should send empty strings instead of nulls, or omit the variable entirely when the value is null .
## Next Steps
1. Update your phone number with the inbound_webhook_url parameter pointing to your n8n webhook endpoint
2. Ensure your n8n webhook returns a 2xx status code within 10 seconds
3. Make sure any dynamic variables in your response use empty strings instead of null valueskhai5202
10/18/2025, 11:41 PMAI Evy
10/18/2025, 11:41 PMAI Evy
10/18/2025, 11:42 PMcall_started - Triggered when a new call begins
- call_ended - Triggered when a call completes, transfers, or encounters an error
- call_analyzed - Triggered when call analysis is complete
### 2. Inbound Call Webhook (Phone Number Level)
This is configured via the inbound_webhook_url parameter and sends the call_inbound event [(2) ]() .
## Why You're Only Getting call_inbound Events
Based on your experience and community discussions [(3) ]() , when you receive only the call_inbound event for real calls (but get all events for test calls) , this typically means:
1. **Webhook Configuration**: The inbound webhook is set at the phone number level, but you also need webhooks configured at the agent level to receive call_started, call_ended, and call_analyzed events
2. **Call Connection Issues**: If calls don't properly connect, call_started won't trigger [(1) ]()
## n8n Setup Best Practices
From community examples [(4) ]() , ensure your n8n workflow:
1. Uses the production webhook URL (not test)
2. Responds with a 2xx status code within 10 seconds [(1) ](AI Evy
10/18/2025, 11:42 PMjson
{
"event": "call_inbound",
"call_inbound": {
"agent_id": "agent_12345",
"from_number": "+12137771234",
"to_number": "+12137771235"
}
}
Call Event Webhook Payload Structure [(1) ]() :
json
{
"event": "call_ended",
"call": {
"call_type": "phone_call",
"from_number": "+12137771234",
"to_number": "+12137771235",
"direction": "inbound",
"call_id": "Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6"
}
}
## Troubleshooting Steps
1. **Configure both webhook levels**: Set up webhooks at both the phone number level (for call_inbound) and agent level (for standard call events)
2. **Check call connection**: Verify calls are actually connecting by checking the disconnection_reason in your call logs
3. **Webhook timeout**: Ensure your n8n endpoint responds within 10 seconds with a 2xx status code
4. **Monitor n8n logs**: Check if any webhook requests are being received at all
The key insight is that you need webhook configuration at both levels to receive all event types for inbound calls.AI Evy
10/18/2025, 11:42 PMAI Evy
10/18/2025, 11:42 PMkhai5202
10/18/2025, 11:43 PMAI Evy
10/18/2025, 11:43 PMAI Evy
10/18/2025, 11:43 PMcall_inbound webhook to receive those events:
## Configuration Steps
To receive call_inbound events, you need to set up the inbound webhook URL at the phone number level [(1) ]() . This can be done through the API or dashboard [(2) ]() .
### Using the API
You can configure the inbound webhook using the Update Phone Number API :
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneNumberResponse = await client.phoneNumber.update('+14157774444', {
inbound_agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
nickname: 'Frontdesk Number',
outbound_agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
}) ;
console.log(phoneNumberResponse.inbound_agent_id) ;
The key parameter you need to add is inbound_webhook_url . If set, this will send a webhook for inbound calls, where you can override agent id, set dynamic variables and other fields specific to that call .
## Webhook Specification
The webhook will POST this payload to your n8n endpoint [(1) ]() :
json
{
"event": "call_inbound",
"call_inbound": {
"agent_id": "agent_12345",
"from_number": "+12137771234",
"to_number": "+12137771235"
}
}AI Evy
10/18/2025, 11:43 PMinbound_webhook_url parameter is properly set and stays saved in your phone number configuration
2. **Webhook timeout**: The webhook has a timeout of 10 seconds and will retry up to 3 times if no success status (2xx) is received [(1) ]()
3. **Response format**: Ensure your n8n endpoint returns a proper JSON response with a 2xx status code
If the webhook URL keeps getting removed or you're not receiving the events, this may be a system issue that needs investigation by the Retell AI team [(3) ]() .AI Evy
10/18/2025, 11:43 PMAI Evy
10/18/2025, 11:43 PMkhai5202
10/18/2025, 11:45 PMAI Evy
10/18/2025, 11:45 PMAI Evy
10/18/2025, 11:46 PMcall_inbound webhook issue, I need specific information to help diagnose the problem. Based on the documentation and community reports, here's what I need to check:
## Information Needed for Troubleshooting
1. **Phone Number Configuration**: Can you verify that the inbound_webhook_url is properly set and saved in your phone number configuration [(1) ]() ? Check if the URL stays there after saving.
2. **Webhook Endpoint Response**: Is your n8n webhook endpoint returning a success status (2xx) within 10 seconds [(2) ]() ? The webhook will retry up to 3 times if unsuccessful.
3. **Agent Configuration**: Are you using a Conversation Flow agent? There are known compatibility issues between inbound webhooks and conversation flow agents [(3) ]() .
4. **Call Connection Status**: Are the inbound calls actually connecting? If calls have dial_failed, dial_no_answer, or dial_busy disconnection reasons, certain webhooks won't trigger [(4) ]() .
## Common Issues to Check
Based on community reports, here are the most frequent problems:
**Webhook URL Not Persisting**: The inbound webhook URL may randomly get removed from the phone number configuration [(3) ]() . If you add a webhook URL to the phone number and then save a conversation agent, the webhook on the phone number gets lost .
**Configuration Conflicts**: Inbound webhooks at the phone number level may not work together with agent-level webhooks for conversation flow agents .
**n8n Configuration**: Ensure you're using the production webhook URL from n8n, not the test URL [(5AI Evy
10/18/2025, 11:46 PMinbound_webhook_url parameter is still present in your phone number configuration after saving
3. Test with a simple webhook endpoint that just logs incoming requests to confirm if any data is being received
4. Check if you're receiving any webhook calls at all (even failed ones) in your n8n logs
Can you provide details on these points so I can help identify the specific issue?AI Evy
10/18/2025, 11:46 PMAI Evy
10/18/2025, 11:46 PMAI Evy
10/18/2025, 11:46 PMAI Evy
10/18/2025, 11:46 PMkhai5202
10/18/2025, 11:48 PMAI Evy
10/18/2025, 11:48 PMAI Evy
10/18/2025, 11:48 PMinbound_webhook_url in both Retell AI and n8n:
## Step 1: Set Up n8n Webhook
1. Create a new workflow in n8n
2. Add a Webhook trigger node
3. Set the HTTP Method to POST
4. Copy the production webhook URL (it will look like: `
5. Configure your workflow to return a 200 status response
## Step 2: Configure Retell AI Phone Number
You can set the inbound_webhook_url using the Update Phone Number API [(1) ]() :
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneNumberResponse = await client.phoneNumber.update('+14157774444', {
inbound_agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
nickname: 'Frontdesk Number',
outbound_agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
}) ;
console.log(phoneNumberResponse.inbound_agent_id) ;
The key parameter you need to add is the inbound_webhook_url field. If set, this will send a webhook for inbound calls, where you can override agent id, set dynamic variables and other fields specific to that call .
## Step 3: Verify Configuration
After setting up, you can verify your phone number configuration using the List Phone Numbers API [(2) ]() :
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneNumberResponses = await client.phoneNumber.list() ;
console.log(phoneNumberResponses) ;AI Evy
10/18/2025, 11:48 PMinbound_webhook_url field .
## What the Webhook Receives
When an inbound call comes in, your n8n webhook will receive this payload [(3) ]() :
json
{
"event": "call_inbound",
"call_inbound": {
"agent_id": "agent_12345",
"from_number": "+12137771234",
"to_number": "+12137771235"
}
}
## Known Issue to Watch For
Based on community reports, there's a known issue where the inbound webhook URL may not save properly or may get removed when you save other agent configurations [(4) ]() . After setting up, double-check that your inbound_webhook_url parameter is still present in your phone number configuration .
The webhook has a timeout of 10 seconds and will retry up to 3 times if no success status (2xx) is received [(3) ]() .AI Evy
10/18/2025, 11:48 PMAI Evy
10/18/2025, 11:48 PMkhai5202
10/20/2025, 8:25 PMAI Evy
10/20/2025, 8:25 PMAI Evy
10/20/2025, 8:25 PMAI Evy
10/20/2025, 8:25 PMAI Evy
10/20/2025, 8:25 PM