clientnexus_71205
11/20/2025, 8:05 PMAI Evy
11/20/2025, 8:05 PMAI Evy
11/20/2025, 8:05 PMAI Evy
11/20/2025, 8:05 PMAI Evy
11/20/2025, 8:05 PMAI Evy
11/20/2025, 8:05 PMAI Evy
11/20/2025, 8:06 PMclientnexus_71205
11/20/2025, 8:06 PMAI Evy
11/20/2025, 8:06 PMoverride_dynamic_variables to pass custom data [(1) ]() . The metadata field allows you to store arbitrary objects (up to 50kB) that you can retrieve later [(1) ]() [(2) ]() .
External "check availability" tool: Yes, Retell can call external APIs during calls through custom function/tool calling [(2) ]() . You would create a custom function that queries your availability endpoint.
Timezone conversion: The sources don't explicitly confirm automatic timezone handling by Retell AI itself.
## 2. Rescheduling & Cancelation
The sources don't document built-in rescheduling or cancelation tools. You would need to create custom tools for these operations.
## 3. Contact Information Validation
Validation during calls: Retell can extract and store dynamic variables in real-time during conversations [(3) ]() . You can collect text (names, addresses) , numbers, booleans, and enum values .
Updated information in webhook: Yes, you can use override_dynamic_variables to update call data in real-time [(1) ]() [(3) ]() . The collected_dynamic_variables object becomes available after the call ends [(1) ]() [(2) ]() .
**StructuredAI Evy
11/20/2025, 8:06 PMcall.started, call.ended, and call.analyzed [(1) ]() , though a complete list isn't provided in the available documentation.
Raw transcript and analysis: Yes, you can receive:
- transcript (full text) [(1) ]() [(2) ]()
- transcript_object (with timestamps)
- transcript_with_tool_calls (includes function calls)
- call_analysis object with summary, sentiment, success status, and custom_analysis_data
Unified JSON object: The call response includes metadata, collected_dynamic_variables, and call_analysis with custom_analysis_data , which can contain your custom fields.
## 5. Tools Integration
External API calls: Yes, Retell supports calling external APIs through custom functions during calls [(2) ]() . You define functions with parameters that the LLM can invoke.
Tool flexibility: The sources confirm tool calling with structured JSON parameters [(1) ]() , though detailed validation rules aren't specified in the available documentation.
## 6. Timezone Handling
The sources don't provide specific details about timezone confirmation requirements, inference from phone numbers/IP, or automatic timezone conversion.
## 7. Notes & Custom Data
Automatic extraction: Yes, through post-call analysis you can extract custom data fields [(3) ]()AI Evy
11/20/2025, 8:06 PMAI Evy
11/20/2025, 8:06 PMcustom_analysis_data object in call_analysis stores your defined fields [(1) ]() [(2) ]() .
Tags generation: Yes, custom post-call analysis supports boolean, text, number, and selector (enum) types [(3) ]() , which can be used for tags like symptoms or urgency levels.
## 8. Best Practice Recommendation
The sources don't provide specific recommendations comparing Nylas vs Composio for Retell AI integration.
---
For detailed technical specifications not covered in the available documentation, I recommend:
- Visit [Contact Sales]()
- Visit [)
Would you like me to provide a general answer about common API integration patterns for the questions not fully covered in the documentation?AI Evy
11/20/2025, 8:06 PMclientnexus_71205
11/20/2025, 8:30 PMAI Evy
11/20/2025, 8:30 PMAI Evy
11/20/2025, 8:31 PMcall_started - Triggered when a new call begins (contains basic call information)
2. call_ended - Triggered when a call completes, transfers, or encounters an error (contains all fields from the call object except call_analysis)
3. call_analyzed - Triggered when call analysis is complete (contains full call data including the call_analysis object)
### Example Webhook Payload Structure
Here's the documented payload structure :
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"
},
"start_timestamp": 1714608475945,
"end_timestamp": 1714608491736,
"disconnection_reason": "user_hangup",
"transcript": "...",
"transcript_object": [ [Object], [Object], [Object], [Object] ],
"transcript_with_tool_calls": [ [Object], [Object], [Object], [Object] ],
"opt_out_sensitive_data_storage": false
}
}
### Transcript Object Structure
The transcript_object contains utterances with timestamps [(2) ]() [(3) ]() :AI Evy
11/20/2025, 8:31 PMjson
[
{
"role": "agent",
"content": "hi how are you doing?",
"words": [
{
"word": "hi",
"start": 0.7,
"end": 1.3
}
]
}
]
### Call Analysis Object
The call_analysis object includes :
json
{
"call_summary": "The agent called the user to ask question about his purchase inquiry...",
"in_voicemail": false,
"user_sentiment": "Positive",
"call_successful": true,
"custom_analysis_data": {}
}
## Webhook Specifications
Timeout & Retry Behavior: Webhooks have a 10-second timeout and will retry up to 3 times if no success status (2xx) is received [(1) ]() [(4) ]() .
Important Note: When a call does not connect (e.g., dial_failed, dial_no_answer, dial_busy) , the call_started webhook will not be triggered, but call_ended and call_analyzed webhooks will still fire [(1) ]() .
Expected Response: Retell expects a successful status code (2xx) with no body required .
## Dynamic Variables & Metadata
`retell_llm_dynamic_variables`: If not provided, this field will be omitted from the webhook payload .
`metadata`: If not provided, this field will be omitted from the webhook payload .
`collected_dynamic_variables`: This object becomes available only after the call ends [(2) ]() [(3) ]() .
## Inbound Call Webhook for Agent Override
For inbound calls, you can override agent configuration through the inbound call webhook [(4) ]() :
### Request Payload ExampleAI Evy
11/20/2025, 8:31 PMjson
{
"event": "call_inbound",
"call_inbound": {
"agent_id": "agent_12345",
"from_number": "+12137771234",
"to_number": "+12137771235"
}
}
### Response Payload Example
json
{
"call_inbound": {
"override_agent_id": "agent_12345",
"override_agent_version": 1,
"agent_override": {
"agent": {
"voice_id": "11labs-Adrian",
"voice_temperature": 0.6,
"interruption_sensitivity": 0.8,
"max_call_duration_ms": 1800000
},
"retell_llm": {
"model": "gpt-4o-mini",
"model_temperature": 0.2,
"knowledge_base_ids": ["kb_abc123"],
"start_speaker": "agent",
"begin_message": "Hi {{customer_name}}, thanks for calling."
}
},
"dynamic_variables": {
"customer_name": "John Doe"
},
"metadata": {
"random_id": "12345"
}
}
}
## Tool Calling / Function Calling
Retell AI supports function calling (also known as tool use) where the LLM outputs structured JSON to trigger external functions [(5) ]() .
### Function Definition Example
javascript
private PrepareFunctions() : ChatCompletionsFunctionToolDefinition[] {
let functions: ChatCompletionsFunctionToolDefinition[] = [{
type: "function",
function: {
name: "end_call",
description: "End the call only when user explicitly requests it.",
parameters: {
type: "object",
properties: {
message: {
type: "string",
description: "The message you will say before ending the call with the customer.",
},
},
required: ["message"],
},
},
}];
return functions;
}
### Tool Call Extraction PatternAI Evy
11/20/2025, 8:31 PMjavascript
let funcCall: FunctionCall;
let funcArguments = "";
for await (const event of events) {
if (event.choices.length >= 1) {
let delta = event.choices[0].delta;
if (!delta) continue;
if (delta.toolCalls.length >= 1) {
const toolCall = delta.toolCalls[0];
if (toolCall.id) {
if (funcCall) {
break;
} else {
funcCall = {
id: toolCall.id,
funcName: toolCall.function.name || "",
arguments: {},
};
}
} else {
funcArguments += toolCall.function?.arguments || "";
}
}
}
}
## Webhook Security
You can verify webhooks using the x-retell-signature header with your Retell API Key [(6) ]() :
javascript
import { Retell } from "retell-sdk";
if (
!Retell.verify(
JSON.stringify(req.body) ,
process.env.RETELL_API_KEY,
req.headers["x-retell-signature"] as string,
)
) {
console.error("Invalid signature") ;
return;
}
## Limitations in Available Documentation
The sources do not provide:
- Explicit JSON schemas for every field with required/optional designations
- Detailed appointment booking tool request/response schemas
- Tool schema validation behavior
- Explicit timezone handling rules or automatic conversion logic
- Behavior for partial/ambiguous data in tool calls
- Complete field-by-field descriptions for all webhook payloads
For these specific technical details not covered in the documentation, I recommend:
- Visit [Contact Sales]()
- Visit
Would you like me to provide a general answer about common API integration patterns for the questions not fully covered in the documentation?
---
**AI Evy
11/20/2025, 8:31 PMAI Evy
11/20/2025, 8:31 PMclientnexus_71205
11/20/2025, 8:44 PMAI Evy
11/20/2025, 8:44 PMAI Evy
11/20/2025, 8:44 PMcustom_analysis_data object is part of the call_analysis response [(1) ]() :
json
{
"call_analysis": {
"call_summary": "The agent called the user to ask question about his purchase inquiry. The agent asked several questions regarding his preference and asked if user would like to book an appointment. The user happily agreed and scheduled an appointment next Monday 10am.",
"in_voicemail": false,
"user_sentiment": "Positive",
"call_successful": true,
"custom_analysis_data": {}
}
}
The custom_analysis_data object can store your custom analysis fields, but the sources don't provide a complete schema with examples for symptoms, urgency levels, customer notes, or tags.
The collected_dynamic_variables object becomes available after the call ends :
json
{
"collected_dynamic_variables": {
"last_node_name": "Test node"
}
}AI Evy
11/20/2025, 8:44 PMAI Evy
11/20/2025, 8:44 PMAI Evy
11/20/2025, 8:44 PM