https://retellai.com/?utm_source=discord&utm_medium=seo logo
I set up my voice agent in retell
# ❓・ai-evy-support
p
@AI Evy I set up my voice agent in retell. Comnected a teilio number to it as well. I want the post call analysis via the webhook url I give. I've set up a workflow in n8n using that webhook endpoint. When I make webcalls and test the agent, the webhook url is git by the agent. But when I do a phonecall to that agent to the twilio number connected, the webhook isn't hit
a
Thanks for tagging me @paakaran_. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, when you import a phone number using Twilio, you need to configure the
inbound_webhook_url
parameter [(1) ]() . This webhook URL is where Retell will send inbound call notifications . When creating or importing a phone number, the
inbound_webhook_url
field should be set to your n8n webhook endpoint . According to the documentation, "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" [(2) ]() . The key difference you're experiencing between web calls and phone calls likely relates to how the webhook is configured at the phone number level versus the agent level. For phone calls coming through your Twilio number, the webhook needs to be configured on the phone number itself [(1) ]() [(2) ]() . Check your phone number configuration to ensure the
inbound_webhook_url
is properly set to your n8n webhook endpoint. You can verify this through the List Phone Numbers API to see the current configuration [(2) ]() . If you need to update the webhook URL for your imported number, you would need to delete and re-import the number with the correct webhook configuration [(3) ]() .
​ To learn more, see the sources I considered: [[1] Create Phone Number](https://docs.retellai.com/api-references/create-phone-number) [[2] List Phone Numbers](https://docs.retellai.com/api-references/list-phone-numbers) [[3] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
p
I set up the webhook in the phone number level. The data received in the webhook is minimal. Only comtains the from phone number etc. I want to get the post call transcripts and analysis. How to do that?
@AI Evy I set up the webhook in the phone number level. The data received in the webhook is minimal. Only comtains the from phone number etc. I want to get the post call transcripts and analysis. How to do that?
a
Thanks for the follow-up, @paakaran_. I'll get back to you soon.
### Answer The inbound call webhook you configured at the phone number level is designed to trigger before the call connects and provides minimal information like
from_number
and
to_number
[(1) ]() . This webhook is for overriding agent settings or setting dynamic variables for that specific call . To receive post-call transcripts and analysis, you need to set up a different webhook that listens for the
call_analyzed
event [(2) ]() . After a call is analyzed, Retell sends a webhook payload that includes the complete call analysis . The
call_analyzed
webhook payload looks like this :
Copy code
json
{
  "event_type": "call_analyzed",
  "call": {
    // Call object with call_analysis field populated
  }
}
To configure this webhook, visit the Webhook Configuration section in your Retell dashboard . This is separate from the inbound call webhook you set at the phone number level. Alternatively, you can retrieve analysis results programmatically using the Get Call API after the call completes [(2) ]() [(3) ]() . The API response includes the
call_analysis
field with your post-call analysis data [(3) ]() . Note that post-call analysis fields are not populated for non-connected calls or calls where no conversation happened [(2) ]() . **
​ To learn more, see the sources I considered: [[1] Inbound call webhook](https://docs.retellai.com/features/inbound-call-webhook) [[2] Consume the analysis data](https://docs.retellai.com/features/post-call-analysis-consumption) [[3] Get Call](https://docs.retellai.com/api-references/get-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
p
@AI Evy How to set it up when the agent is connected to twilio. Give me detailed steps and how it works
a
Thanks for the follow-up, @paakaran_. I'll get back to you soon.
### Answer Based on the available sources, I can provide general guidance on webhook configuration for agents, but I don't have detailed step-by-step instructions specifically for Twilio-connected agents. Here's what I can tell you about webhook setup for agents: ## Webhook Configuration at Agent Level You can configure a webhook URL at the agent level [(1) ]() . When you update your agent, you can set the
webhook_url
parameter :
Copy code
javascript
const agentResponse = await client.agent.update('16b980523634a6dc504898cda492e939', { 
  agent_name: 'Jarvis',
  webhook_url: '<https://webhook-url-here'>
}) ;
The
webhook_url
field binds webhook events for that specific agent to your specified URL, and will ignore the account level webhook for this agent . You can set it to
null
to remove the webhook URL from the agent . You can also configure a
webhook_timeout_ms
parameter, which defaults to 10000 milliseconds if not set . ## How Webhooks Work Webhooks are event-driven messages sent from one system to another in real time [(2) ]() . When a specific event happens—like a user completing a call—your AI voice agent can trigger a webhook to notify another application and pass along relevant data . The webhook sends JSON-formatted data to your endpoint, and the receiving system uses that data to take action . For more detailed instructions on setting up webhooks specifically for Twilio-connected agents and receiving post-call analysis, I recommend: - Visit [Contact Sales]() - Visit [) Would you like me to provide a general answer based on my knowledge of webhook configurations?
​ To learn more, see the sources I considered: [[1] Update Agent](https://docs.retellai.com/api-references/update-agent) [[2] Webhook](https://www.retellai.com/glossary/webhook) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
p
I want it to work for agents connected to twilio
@AI Evy I want it to work for agents connected to twilio
a
Thanks for the follow-up, @paakaran_. I'll get back to you soon.
### Answer Based on the available sources, here's how to configure webhooks for agents connected to Twilio numbers: ## Agent-Level Webhook Configuration When you update your agent, set the
webhook_url
parameter to receive call events [(1) ]() . This webhook will receive events for all calls handled by that agent, regardless of whether they come through Twilio or other phone providers .
Copy code
javascript
const agentResponse = await client.agent.update('16b980523634a6dc504898cda492e939', { 
  webhook_url: '<https://webhook-url-here',>
  webhook_timeout_ms: 10000
}) ;
The
webhook_url
binds webhook events for this agent to your specified URL and will ignore the account level webhook for this agent . You can set it to
null
to remove the webhook URL from the agent . ## Phone Number-Level Webhook When creating or importing your Twilio number, you can also set an
inbound_webhook_url
[(2) ]() . This webhook triggers before the call connects and allows you to override agent settings or set dynamic variables for that specific call :
Copy code
javascript
{
  "inbound_webhook_url": "<https://example.com/inbound-webhook%22>
}
## How It Works Webhooks are event-driven messages sent in real time [(3) ]() . When specific events happen—like a call completing—your agent triggers a webhook to notify your application and pass along relevant data . The webhook sends JSON-formatted data to your endpoint . For post-call analysis specifically, you'll receive a
call_analyzed
event at your configured webhook URL after the call completes and analysis is finished. The agent-level webhook configuration works the same way whether your number is from Twilio, Telnyx, or purchased directly from Retell [(1) ]() .
​ To learn more, see the sources I considered: [[1] Update Agent](https://docs.retellai.com/api-references/update-agent) [[2] Create Phone Number](https://docs.retellai.com/api-references/create-phone-number) [[3] Webhook](https://www.retellai.com/glossary/webhook) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
p
@AI Evy I set it up but it doesn't hit the webhook for phone calls. But works for web calls.
a
Thanks for the follow-up, @paakaran_. I'll get back to you soon.
### Answer Based on the available sources, here are some troubleshooting steps for webhooks not firing on phone calls: ## Verify Webhook Configuration The webhook will
POST
the payload to your endpoint with a timeout of 10 seconds [(1) ]() . If within 10 seconds no success status (2xx) is received, the webhook will be retried, up to 3 times . For phone calls specifically, when the call did not connect (like calls with
dial_failed
,
dial_no_answer
,
dial_busy
disconnection reason) , it will not have its
call_started
webhook triggered . It will still have its
call_ended
and
call_analyzed
webhook triggered . ## Check Your Webhook Event Types Retell AI supports the following webhook events : - `call_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 ## Workspace-Level vs Agent-Level Webhooks You can now control webhook timeouts for both workspace-level and agent-level webhooks (default 5s) [(2) ]() . Make sure you've configured the webhook at the correct level for your use case. ## Potential Issues Since your webhook works for web calls but not phone calls, verify: 1. Your webhook endpoint returns a 2xx status code within the timeout period 2. The phone calls are actually connecting (check the disconnection reason) 3. You're listening for the correct event type (
call_ended
or
call_analyzed
for post-call data, not
call_started
) If the webhook was not successful after retries, check whether your number has an inbound agent id set [(3) ]() . If it does, the call will connect to that agent . If not, the call will disconnect .
​ To learn more, see the sources I considered: [[1] Webhook Overview](https://docs.retellai.com/features/webhook-overview) [[2] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) [[3] Inbound call webhook](https://docs.retellai.com/features/inbound-call-webhook) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
p
@AI Evy The agent is connected to the phone number. The calls are inbound. I speak to the agent. And when the call ends, the webhook url is never triggered to begin with
a
Thanks for the follow-up, @paakaran_. I'll get back to you soon.
### Answer Based on your description, the webhook should trigger for inbound phone calls if configured correctly. Let me help you verify the setup. ## Key Configuration Points For inbound phone calls to trigger webhooks, you need to configure the webhook at the agent level, not just at the phone number level [(1) ]() . The
webhook_url
parameter on your agent is what controls webhook events for all calls handled by that agent . When you set the
webhook_url
on an agent, it binds webhook events for that agent to your specified URL and will ignore the account level webhook for this agent . ## Webhook Event Flow The webhook will
POST
the payload to your endpoint with a timeout of 10 seconds [(2) ]() . If within 10 seconds no success status (2xx) is received, the webhook will be retried, up to 3 times . For inbound calls specifically: -
call_started
is triggered when a new call begins -
call_ended
is triggered when a call completes, transfers, or encounters an error -
call_analyzed
is triggered when call analysis is complete **Important**: If the call did not connect (like calls with
dial_failed
,
dial_no_answer
,
dial_busy
disconnection reason) , it will not have its
call_started
webhook triggered . It will still have its
call_ended
and
call_analyzed
webhook triggered . ## Verify Your Configuration Check your agent's webhook configuration using the Get Agent Versions API to confirm the
webhook_url
is properly set [(3) ]() . You can also verify your phone number configuration to ensure the
inbound_agent_id
is correctly bound [(4) ]() . The
inbound_webhook_url
on the phone number is different—it's for overridi
ng agent settings before the call connects, not for receiving post-call data [(5) ]() [(6) ]() . ## Troubleshooting Steps 1. Confirm your webhook endpoint returns a 2xx status code within 10 seconds [(2) ]() 2. Verify the agent has
webhook_url
configured (not just the phone number's
inbound_webhook_url
) [(1) ]() 3. Check that your calls are actually completing successfully (not disconnecting due to dial failures) [(2) ]() 4. Ensure you're listening for
call_ended
or
call_analyzed
events for post-call data If you've confirmed all these settings and the webhook still isn't triggering for phone calls, I recommend: - Visit [Contact Sales]() - Visit Would you like me to provide more details about any specific configuration step?
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
p
@AI Evy can you search for other users in this discord server who had the same issue?
a
Thanks for the follow-up, @paakaran_. I'll get back to you soon.
### Answer Based on the Discord messages in the available sources, I found one user who reported webhook-related issues: In a Discord message from October 20, 2025, a user mentioned experiencing issues with Cal.com API integration, specifically reporting "Error ECONNABORTED … timeout of 10000ms exceeded" [(1) ]() . While this isn't exactly the same issue you're experiencing, it does relate to webhook/API connectivity problems. Another user in a November 17, 2025 message asked about webhook data capture: "Does anyone here know what exactly happens when the agent AI does not recognize or use the data I sent through the POST webhook? I mean, it captures the phone number and is able to call our leads, but it does not capture the contact name or other custom fields I sent." [(2) ]() This suggests webhook data handling issues, though not specifically about webhooks not triggering for phone calls. I don't have access to other Discord messages that specifically describe the exact issue you're facing (webhooks working for web calls but not for inbound phone calls) . For additional support with this specific issue, you can: - Visit [Contact Sales]() - Visit [) Would you like me to provide additional troubleshooting suggestions based on webhook configuration best practices?
​ To learn more, see the sources I considered: [[1] Discord message from @agentralelkin_91153 on 2025-10-20](https://discord.com/channels/1186424376300679209/1294891368505937952/1429921219842670688) [[2] Discord message from @jmlucero. on 2025-11-17](https://discord.com/channels/1186424376300679209/1294891368505937952/1440056913059381248) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
p
@AI Evy how to set up the agent so that it sends webhook payload when after an inbound call ends made with twilio
a
Thanks for the follow-up, @paakaran_. I'll get back to you soon.
### Answer --- ### Answer To receive webhook payloads after inbound calls end on your Twilio number, you need to configure the webhook at the agent level, not just at the phone number level [(1) ]() [(2) ]() . ## Step 1: Configure Agent-Level Webhook Set the
webhook_url
parameter on your agent to receive
call_ended
and
call_analyzed
events :
Copy code
javascript
const agentResponse = await client.agent.update('16b980523634a6dc504898cda492e939', {
  webhook_url: '<https://webhook-url-here',>
  webhook_timeout_ms: 10000
}) ;
[(1) ]() The
webhook_url
binds webhook events for this agent to your specified URL and will ignore the account-level webhook for this agent [(1) ]() [(3) ]() [(2) ]() . ## Step 2: Create Your Webhook Endpoint Set up an HTTP or HTTPS endpoint that accepts POST requests [(4) ]() :
Copy code
javascript
// install the sdk: <https://docs.retellai.com/get-started/sdk>
import { Retell } from "retell-sdk";
import express, { Request, Response } from "express";
const app = express() ;
app.use(express.json() ) ;
app.post("/webhook", (req: Request, res: Response) => {
  const {event, call} = req.body;
  switch (event) {
    case "call_started":
      console.log("Call started event received", call.call_id) ;
      break;
    case "call_ended":
      console.log("Call ended event received", call.call_id) ;
      break;
    case "call_analyzed":
      console.log("Call analyzed event received", call.call_id) ;
      break;
    default:
      console.log("Received an unknown event:", event) ;
  }
  // Acknowledge the receipt of the event
  res.status(204) .send() ;
}) ;
## Step 3: Test Your Endpoint Locally Before deploying, test with this CURL command :
Copy code
curl --location 'localhost:8080/webhook' \
--header 'Content-Type: application/json' \
--data '{
  "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": "...",
    "opt_out_sensitive_data_storage": false
  }
}'
## Step 4: Deploy Your Endpoint Use ngrok to make your local endpoint accessible :
Copy code
brew install ngrok/ngrok/ngrok
Copy code
ngrok http <http://localhost:8080>
Your webhook endpoint will be ` . ## Important Notes - The
inbound_webhook_url
on the phone number is different—it triggers before the call connects and provides minimal information like
from_number
and
to_number
[(5) ]() [(6) ]() . This is for overriding agent settings, not for receiving post-call data [(5) ]() . - For post-call transcripts and analysis, you need the agent-level
webhook_url
to receive
call_ended
and
call_analyzed
events [(1) ]() [(3) ]() [(2) ]() . - Your webhook must return a 2xx status code within 10 seconds, or it will be retried up to 3 times [(4) ]() . ## Webhook Configuration Options You have two options for registering webhooks : Option 1: Account-level webhook - Set up through system settings' webhooks tab for events related to any agent under your account . Option 2: Agent-level webhook - Set up through the agent configuration (as shown above) [(4) ]() [(1) ]() . When set, account-level webhooks will not be triggered for that agent . --- **
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
p
@AI Evy how to get call id with just from and to phone number and the agent id using api
a
Thanks for the follow-up, @paakaran_. I'll get back to you soon.
### Answer Based on the available sources, there isn't a direct API endpoint to retrieve a
call_id
using only the
from_number
,
to_number
, and
agent_id
as search parameters. However, when you create or register a phone call, the API response includes the
call_id
along with the phone numbers and agent information [(1) ]() [(2) ]() . Here's how the response looks:
Copy code
json
{
  "call_id": "Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6",
  "agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
  "from_number": "+12137771234",
  "to_number": "+12137771235",
  "direction": "inbound"
}
## Alternative Approaches Since there's no search endpoint with these specific parameters, you would need to: 1. Store the
call_id
when you receive webhook events (
call_started
,
call_ended
, or
call_analyzed
) , which include both the
call_id
and phone numbers in the payload 2. Use the List Calls API (if available in your implementation) to retrieve recent calls and filter by phone numbers and agent ID on your end 3. Implement your own mapping in your database that associates phone numbers and agent IDs with call IDs when calls are initiated or when webhook events are received The
call_id
is generated by Retell when a call is created or registered [(1) ]() [(3) ]() [(2) ]() , so you'll need to capture it at that point rather than querying for it later using just phone numbers and agent ID. --- **
​ To learn more, see the sources I considered: [[1] Register Phone Call](https://docs.retellai.com/api-references/register-phone-call) [[2] Create Phone Call](https://docs.retellai.com/api-references/create-phone-call) [[3] Create Web Call](https://docs.retellai.com/api-references/create-web-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
p
I still don't get any webhook payloads when I call my agent to it's twilio number
@AI Evy I still don't get any webhook payloads when I call my agent to it's twilio number
a
Thanks for the follow-up, @paakaran_. I'll get back to you soon.
### Answer Based on your issue and the thread history, there's a known compatibility problem that might be affecting you. A Discord user reported that when using the phone number level
inbound_webhook_url
together with a conversation flow agent, the webhook configuration doesn't work properly [(1) ]() . Specifically, if you add a webhook URL to the phone number and then save your conversation agent, the webhook on the phone number is lost . Additionally, the phone number level webhook and agent level webhook cannot be used together, which is critical for receiving post-call events . Here's what you need to verify: ## Critical Configuration Check 1. **Agent-level webhook**: Ensure your agent has
webhook_url
configured [(2) ]() [(3) ]() [(4) ]() . This is separate from the phone number's
inbound_webhook_url
[(5) ]() . 2. **Phone number configuration**: Check that your phone number has the correct
inbound_agent_id
set [(6) ]() . The phone number should look like this:
Copy code
json
{
  "phone_number": "+14157774444",
  "inbound_agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
  "inbound_webhook_url": "<https://example.com/inbound-webhook%22>
}
3. **Don't mix webhook types**: The
inbound_webhook_url
on the phone number triggers before the call connects and provides minimal information like
from_number
and
to_number
[(5) ]() . For post-call events (
call_ended
,
call_analyzed
) , you must use the agent-level
webhook_url
[(7) ]() [(8) ]() . ## Webhook Event Behavior The webhook will
POST
the payload to your endpoint with a timeout of 10 seconds [(7) ]() . If within 10 seconds no success status (2xx) is received, the webhook will be retried, up to 3 times . When the call did not connect (like calls with
dial_failed
,
dial_no_answer
,
dial_busy
disconnection reason) , it will not have its
call_started
webhook triggered . It will still have its
call_ended
and
call_analyzed
webhook triggered . ## Troubleshooting Steps Given the known issue with conversation flow agents and phone number webhooks [(1) ]() , try this: 1. Remove the
inbound_webhook_url
from your phone number entirely 2. Configure only the agent-level
webhook_url
[(2) ]() [(4) ]() 3. Verify your endpoint returns a 2xx status within 10 seconds [(7) ]() 4. Test an inbound call again If this still doesn't work after removing the phone number webhook, contact support: - Visit [Contact Sales]() - Visit [) Would you like me to provide a general answer based on my knowledge instead? **
​ To learn more, see the sources I considered: [[1] inbound webhook URL failing to save (or stay saved) and wont work together with conversation agaent](https://discord.com/channels/1186424376300679209/1398428473781125314) [[2] List Agents](https://docs.retellai.com/api-references/list-agents) [[3] Get Agent Versions](https://docs.retellai.com/api-references/get-agent-versions) [[4] Update Agent](https://docs.retellai.com/api-references/update-agent) [[5] Inbound call webhook](https://docs.retellai.com/features/inbound-call-webhook) [[6] List Phone Numbers](https://docs.retellai.com/api-references/list-phone-numbers) [[7] Webhook Overview](https://docs.retellai.com/features/webhook-overview) [[8] Setup guide](https://docs.retellai.com/features/register-webhook) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
2 Views