dharmilshah_31046
11/18/2025, 11:54 PMAI Evy
11/18/2025, 11:54 PMAI Evy
11/18/2025, 11:54 PMcall object along with your function's arguments. [(1) ]() The structure includes:
json
{
"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"
}
}
The call field contains the call metadata, allowing you to access from_number and to_number within your custom function. The direction field indicates whether it's an "inbound" or "outbound" call.
Based on the available sources, this schema structure appears consistent for both inbound and outbound calls, with the direction field differentiating between them.AI Evy
11/18/2025, 11:54 PMAI Evy
11/18/2025, 11:54 PMAI Evy
11/18/2025, 11:55 PM