emanuelkr
04/09/2025, 11:15 AMAI Evy
04/09/2025, 11:15 AMAI Evy
04/09/2025, 11:15 AMAI Evy
04/09/2025, 11:15 AMcall_inbound [(1)]() . Here's how to format it:
json
{
"call_inbound": {
"dynamic_variables": {
"customer_name": "John Doe"
},
"metadata": {
"random_id": "12345"
}
}
}
The response can include these optional fields:
- `dynamic_variables`: Use this to set dynamic variables for the inbound call
- `metadata`: Use this to set metadata for the inbound call
- `override_agent_id`: Use this to override the agent id
For webhook reliability, note that:
- The webhook has a 10 second timeout
- It will retry up to 3 times if no success status (2xx) is receivedAI Evy
04/09/2025, 11:15 AMemanuelkr
04/09/2025, 11:16 AMAI Evy
04/09/2025, 11:16 AMAI Evy
04/09/2025, 11:16 AMjson
{
"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"
},
"opt_out_sensitive_data_storage": true
},
"name": "get_weather",
"args": {
"city": "New York"
}
}
[(1)]()
You can access the call details and function arguments from this payload to implement your custom logic and return the appropriate response.
I apologize, but I don't see specific documentation about the exact response format for custom functions in the provided information sources. To get the most accurate information about custom function response formatting, I'd recommend checking:
[Contact Sales]()
[https://github.com/RetellAI/]()
Would you like me to provide a general answer about webhook responses instead?AI Evy
04/09/2025, 11:16 AMemanuelkr
04/09/2025, 11:16 AMAI Evy
04/09/2025, 11:16 AMAI Evy
04/09/2025, 11:17 AMjson
{
"response_type": "tool_call_result",
"tool_call_id": "some_id_here",
"content": "Appointment booked successfully."
}
[(1)]()
The response requires:
- `response_type`: Must be "tool_call_result"
- `tool_call_id`: The unique ID for this tool call
- `content`: The result of the tool call, which can be a string or stringified JSON
This result will be captured in the transcript with tool calls after the call ends.AI Evy
04/09/2025, 11:17 AM