https://retellai.com/?utm_source=discord&utm_medium=seo logo
<@1145576664366055464> — Setting up inbound call w...
# ❓・ai-evy-support
z
@AI Evy — Setting up inbound call webhook
a
Thanks for tagging me @zz4chy. I'll look through relevant sources and get back to you shortly.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Dynamic Variables]() * [Debug call disconnection]() * [Overview]() * [Platform Changelogs | Retell AI]() -----------------------------
### Answer Webhook Types There are two types of webhooks for inbound calls [(1)]() : - Agent Level webhook - Inbound Call webhook Agent Level Webhook - Receives three types of events: call_started, call_ended, and call_analyzed - Requires a 2xx response - Will retry 3 times, 10 seconds apart if non-2xx response received - Any data sent in response will be ignored Inbound Call Webhook - Expects a JSON response with key-value pairs for variables used in your prompt - Example response format:
Copy code
json
{
  "first_name": "Reece",
  "phone_number": "+18005551212"
}
Example Webhook Event Data Here's an example of the data you'll receive:
Copy code
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"
    }
  }
}
[(2)]() Common Use Cases Webhooks can be used for: - Real-time analytics - System integration (CRM updates, workflow automation) - Call monitoring
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.