https://retellai.com/?utm_source=discord&utm_medium=seo logo
it seems like call_started event response is not e...
# ❓・ai-evy-support
y
@AI Evy it seems like call_started event response is not extracted in the retell ai as can be seen in the logs even if the n8n response is formatted like this return { "last_appt_note": "No history", "customer_id": "tonyid", "customer_firstname": "Tony" }; https://cdn.discordapp.com/attachments/1302816169367044149/1437630378096595034/image.png?ex=6913f120&is=69129fa0&hm=ab46236d41f6ab3d04abb69a663bcb4674f7e16063e0f1f631d61ca9b3a4d4a6&
a
Thanks for tagging me @ynotrem_99526. I'll look through relevant sources and get back to you shortly.
### Answer The Retell AI webhook for call events (such as call_started) expects your endpoint to respond with a 2xx status code within 10 seconds, but it does not use the response body to extract or inject dynamic variables into the call flow [(1) ]() . The webhook POSTs the event payload to your endpoint, but any values you return (like customer_firstname) in the HTTP response body are ignored by Retell AI; they are not extracted or injected into the agent’s context . If you want to pass data (such as customer_firstname, customer_id, etc.) into the Retell AI agent, you need to use dynamic variables configured on the agent or ensure that the webhook event includes these fields in the payload sent by Retell AI, not in your HTTP response [(1) ]() [(2) ]() [(3) ]() [(4) ]() [(5) ]() . For more details, see: [Webhook Overview]()
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
y
@AI Evy How to then greet the caller's name for an inbound call by using contact search details based on phone? can i use call_started event for this and extract the response with the caller's name as part of the response body? And are there alternative approach other than call_started event
a
Thanks for the follow-up, @ynotrem_99526. I'll get back to you soon.
​ To learn more, see the sources I considered: [[1] Webhook Overview](https://docs.retellai.com/features/webhook-overview) [[2] Inbound call webhook](https://docs.retellai.com/features/inbound-call-webhook) [[3] Personalization with Airtable](

https://www.youtube.com/watch?v=U8jdhkqOOhE▾

) ​
) - [Personalization with Airtable](

▾

) [(3) ](

▾

)
### Answer You cannot greet the caller by extracting their name from your response body to the call_started event webhook. Retell AI does not use the response body of the call_started event to inject dynamic variables or caller info into the call flow [(1) ]() . The webhook simply notifies your system of the event, and any values you return in the HTTP response (like a caller name) are ignored by Retell AI . To greet the caller by name on an inbound call, you should use the inbound call webhook. When an inbound call is received, Retell AI sends a call_inbound webhook to your endpoint, which includes the caller's phone number (from_number) [(2) ]() . Your backend can then look up the caller's details (such as their name) using this phone number. If you want the agent to greet the caller by name, you need to respond to the inbound call webhook with a 200 status code and include the desired dynamic variables (such as the caller's name) in your response as part of the override_agent_id object . This allows you to pass context, such as the caller's name, into the Retell AI agent at the start of the call [(2) ]() [(3) ](

▾

) . Summary: - You cannot use the call_started event response to inject caller name. - Use the inbound call webhook to look up and inject caller info at call start. - Respond to the inbound call webhook with the relevant dynamic variables to personalize the greeting. References: - [Webhook Overview]() [(1) ]() - [Inbound call webhook]() [(2) ](
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @ynotrem_99526. I'll get back to you soon.
y
a
### Answer You configure the call_inbound webhook at the phone number level in the Retell AI dashboard. This means you attach your n8n webhook endpoint URL to the specific phone number you want to handle inbound calls for. When an inbound call is received on that number, Retell AI will send a POST request to your configured webhook endpoint with the caller details (including from_number and to_number) before the call is connected. This allows you to look up contact details (like the caller's name) and respond with dynamic variables to personalize the agent's greeting [(1) ]() . For instructions and payload/response format details, see: [Inbound call webhook]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Inbound call webhook](https://docs.retellai.com/features/inbound-call-webhook) ​
a
Thanks for the follow-up, @ynotrem_99526. I'll get back to you soon.
### Answer If your n8n webhook is called by Retell AI on the call_inbound event, but the response body is not being extracted or used by Retell AI, it's likely due to the response format or the expected structure. Retell AI expects your webhook response to include the override_agent_id as a JSON object if you want to assign an agent or pass context. If you want to inject variables (like the caller's name) , you need to respond with a 200 status code and include the “call_inbound.override_agent_id” in your JSON response. If the response does not contain override_agent_id, Retell AI will not extract or inject those dynamic variables into the call [(1) ]() . Example: - To accept the call and assign an agent (and optionally pass context) , respond with:
Copy code
json
{
  "call_inbound": {
    "override_agent_id": "YOUR_AGENT_ID",
    "dynamic_variables": {
      "customer_firstname": "Tony"
    }
  }
}
- To reject the call, respond with a 200 status code and do NOT include override_agent_id. If your response does not match this structure, the data will not be extracted or used. Double-check that your webhook response follows this expected format .
​ To learn more, see the sources I considered: [[1] 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.
y
@AI Evy is there call_outbound and how to provide the right response
a
Thanks for the follow-up, @ynotrem_99526. I'll get back to you soon.
### Answer There is no documentation for a call_outbound webhook event or a specific outbound call webhook in the available Retell AI sources. The documented webhook for customizing call handling and injecting context is call_inbound, which is used for inbound calls only [(1) ]() . For outbound calls, there is no mention of a webhook where you can provide a response body to inject dynamic variables or control agent assignment [(1) ]() [(2) ]() [(3) ]() . Check out these potentially useful sources: [Inbound call webhook]() , [Webhook Overview]() , [AI Outbound Calls & Sales Calls with Voice Agents | Retell AI]() Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Inbound call webhook](https://docs.retellai.com/features/inbound-call-webhook) [[2] Webhook Overview](https://docs.retellai.com/features/webhook-overview) [[3] AI Outbound Calls & Sales Calls with Voice Agents | Retell AI](https://www.retellai.com/blog/outbound-call-center-automation-and-the-role-of-ai-voice-agents) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
y
@AI Evy is it possible to override 2 agent_id since I am using similar n8n for both agent and both agents are triggered by the same number
a
Thanks for the follow-up, @ynotrem_99526. I'll get back to you soon.
### Answer You cannot assign two agent_id values for a single inbound call—Retell AI expects a single override_agent_id per call in your inbound webhook response [(1) ]() . However, you can use the inbound webhook to dynamically select which agent_id to assign for each call, even if multiple agents are triggered by the same phone number [(1) ]() [(2) ]() [(3) ]() . For example, if different callers should be routed to different agents, your webhook logic can look up the appropriate agent_id based on caller details and respond with that single agent_id for each call . It is not possible to assign multiple agent_id values to a single call, but you can route each call to the appropriate agent dynamically .
​ To learn more, see the sources I considered: [[1] Inbound call webhook](https://docs.retellai.com/features/inbound-call-webhook) [[2] Discord message from @omar.13. on 2025-09-09](https://discord.com/channels/1186424376300679209/1186462578310910112/1415077373182742589) [[3] multiple agent for same inbound number](https://discord.com/channels/1186424376300679209/1422923667821826058) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.