https://retellai.com/?utm_source=discord&utm_medium=seo logo
We are integrating your AI agents with our schedul...
# ❓・ai-evy-support
c
@AI Evy We are integrating your AI agents with our scheduling platform. Before choosing between Nylas, Composio, or direct integration, we need to fully understand how Retail handles scheduling and data transfer. Please answer ALL questions in detail:
a
Thanks for tagging me @clientnexus_71205. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, I can provide information about how Retell AI handles scheduling integrations, specifically with Cal.com. However, the sources don't contain comprehensive technical details about direct API integration methods with Nylas, Composio, or custom scheduling platforms. ## What the Sources Cover Cal.com Integration Retell AI offers preset tools for Cal.com integration [(1) ]() . The platform provides two main functions: 1. Check Calendar Availability - allows the AI agent to query available time slots 2. Book Appointment - enables the agent to create appointments These functions are configured through the Retell AI dashboard by accessing the Functions section in your agent settings and filling out the required Cal.com API credentials and Event Type information . Known Integration Issue There is a documented issue where the Check Calendar Availability function may return incorrect availability, causing the agent to offer times when you're not actually available [(2) ]() . A community suggestion recommends checking the return value of the get availability function and using strategic prompting to ensure the agent only offers correct time slots . General Scheduling Capabilities Retell AI's appointment setter can handle booking calls, qualifying leads, and managing calendars across voice, SMS, and chat [(3) ]() . The platform integrates with your calendar, CRM, or telephony stack . ## What's Missing from the Sources The available documentation doesn't provide: - Technical specifications for direct API integration with custom scheduling platforms - Data transfer protocols and formats - Webhook configurations for scheduling events - Integratio
n details for Nylas or Composio specifically - Authentication methods beyond Cal.com API keys Would you like me to provide a general answer based on common API integration patterns, or would you prefer to reach out to Retell AI's support team for detailed technical integration documentation? For technical integration questions beyond what's documented, you can: - Visit [Contact Sales]() - Visit [)
​ To learn more, see the sources I considered: [[1] AI Scheduling Assistant with Cal.com | Retell AI](https://www.retellai.com/blog/cal-coms-preset-tools) [[2] Retell -> Cal.com Integration Problem](https://discord.com/channels/1186424376300679209/1343641187185328252) [[3] Retell AI Appointment Setter | Smart Scheduling for Businesses](https://www.retellai.com/ai-appointment-setter) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @clientnexus_71205. I'll get back to you soon.
c
@AI Evy 1. Appointment Booking When Retail books an appointment, which data fields do you send to our webhook? (start time, end time, timezone, description, attendees, custom notes, etc.) Can Retail natively call an external "check availability" tool before proposing times? Does Retail automatically handle timezone conversion (lead timezone vs provider timezone)? 2. Rescheduling & Cancelation Do you have built-in tools for rescheduling and canceling appointments, or must we create custom tools? 3. Contact Information Validation During calls, can Retail validate name, phone number, and email from the lead? If the lead gives new/different information, can Retail send this updated information back to us in the webhook? Does Retail support structured JSON output so we can easily map fields? 4. Webhook Behavior Please list all webhooks Retail supports (call_started, call_ended, call_transcript, call_summary, call_analyzed, etc.). Can we receive the raw transcript, summaries, and AI-analyzed JSON? Can Retail send a unified JSON object at the end with: appointment info + contact info updates + notes + flags + tags? 5. Tools Integration Can Retail call external APIs (Nylas/Composio) directly via tools during a call? How flexible is tool creation? (parameters, required formatting, validation rules) 6. Timezone Handling Do you always require the AI to confirm the customer's timezone? If not, can Retail infer timezone from phone number or IP? Does Retail automatically convert availability to the lead’s timezone? 7. Notes & Custom Data When the lead says something important (“I have tooth pain”), can Retail automatically extract this as structured notes? Can Retail generate additional tags (symptoms, urgency, etc.)? 8. Best Practice Recommendation For appointment booking workflows, do you recommend Nylas or Composio for better compatibility with Retail’s tool ecosystem?
a
### Answer I'll address each of your questions based on the available Retell AI documentation: ## 1. Appointment Booking Data fields sent to webhook: The available sources don't specify the exact fields Retell sends for appointment booking. However, you can update calls with
override_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) ]() . **Structured
JSON output:** Yes, Retell supports structured data extraction through dynamic variables and post-call analysis with custom fields (boolean, text, number, selector) [(3) ]() . ## 4. Webhook Behavior The sources mention several webhook events including
call.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) ]()
​ To learn more, see the sources I considered: [[1] Update Call](https://docs.retellai.com/api-references/update-call) [[2] Register Phone Call](https://docs.retellai.com/api-references/register-phone-call) [[3] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) ​
. The
custom_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?
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
c
@AI Evy We need exact technical details to design our integration — please answer every question with JSON schemas and explicit examples. Webhook & Call Payload Specifications (Non-Skippable) Please provide exact JSON schemas (not summaries, not descriptions) for ALL of the following webhook events: call.started call.ended call.analyzed call.summary transcript_object (with timestamps) transcript_with_tool_calls collected_dynamic_variables override_dynamic_variables final resolved state For each, include: Example full payload Field-by-field description Required vs optional fields Data types Appointment Booking Data — REQUIRED Fields When Retell books an appointment using a tool: What exact fields does Retell send to the webhook? What does Retell expect back from the tool? Provide example request & response JSON. Tool Calling Behavior We need explicit clarification: Does Retell validate tool schemas before calling? If the user gives partial or ambiguous data, how does Retell: Decide missing fields? Request clarification? Pass nulls? Provide an actual tool call JSON example including: Input schema Output schema The exact payload Retell sends to our API Timezone Handling We need explicit rules, not assumptions. Does Retell automatically convert user-spoken times? Does it infer timezone from: Phone number? IP address? User statement? If a user does not specify timezone, what happens? Provide a full example conversation that results in: Parsed date Parsed time Parsed timezone Final JSON sent to our webhook
a
Thanks for the follow-up, @clientnexus_71205. I'll get back to you soon.
### Answer I understand you need precise technical specifications for your integration. Based on the available Retell AI documentation, I can provide the following details: ## Webhook Event Types & Payloads Retell AI supports three primary webhook events [(1) ]() : 1.
call_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 :
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"
    },
    "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) ]() :
Copy code
json
[
  {
    "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 :
Copy code
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 Example
Copy code
json
{
  "event": "call_inbound",
  "call_inbound": {
    "agent_id": "agent_12345",
    "from_number": "+12137771234",
    "to_number": "+12137771235"
  }
}
### Response Payload Example
Copy code
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
Copy code
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 Pattern
Copy code
javascript
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) ]() :
Copy code
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? --- **
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
c
@AI Evy Contact Information Validation We need: Exact rules for emails (regex or validation logic) Exact rules for phone numbers Whether Retell attempts: Auto-correction Normalization Standard formatting (E.164) Provide examples of: Valid input Invalid input Final JSON extracted Custom Fields & Post-Call Analysis Please provide: JSON schema for custom_analysis_data Example using: symptoms urgency level customer notes tags Example where dynamic variables + analysis merge into one unified payload External API Calling We need confirmation of the following: Can Retell call our API multiple times in a single call session? Is the tool call synchronous or async? Maximum number of calls per conversation Example where Retell calls: checkAvailability Then createBooking Then verifyContact Include the exact JSON Retell sends. Scaling & Limitations Provide explicit numeric limits: Max tool calls per minute Max webhook retries Max dynamic variables Max payload size Max concurrent calls Max metadata size We cannot proceed without exact JSON examples, schemas, and specific limits. Please answer every question above without skipping.
a
Thanks for the follow-up, @clientnexus_71205. I'll get back to you soon.
### Answer I'll address each of your technical requirements based on the available Retell AI documentation: ## Contact Information Validation The available sources do not provide: - Explicit regex patterns for email validation - Phone number validation rules - Auto-correction or normalization behavior - E.164 formatting confirmation - Validation examples with input/output JSON ## Custom Fields & Post-Call Analysis Based on the documentation, the
custom_analysis_data
object is part of the
call_analysis
response [(1) ]() :
Copy code
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 :
Copy code
json
{
  "collected_dynamic_variables": {
    "last_node_name": "Test node"
  }
}
## External API Calling The sources confirm that Retell AI supports function calling to trigger external APIs, but do not specify: - Whether multiple tool calls can occur in a single session - Synchronous vs asynchronous behavior - Maximum number of calls per conversation - Sequential tool call examples (checkAvailability → createBooking → verifyContact) ## Scaling & Limitations The available documentation provides only one explicit limit: - **Webhook timeout**: 10 seconds with up to 3 retries - **Metadata size**: Up to 50kB The sources do not specify: - Max tool calls per minute - Max dynamic variables - Max payload size - Max concurrent calls --- The available documentation does not contain the detailed technical specifications, JSON schemas, validation rules, or numeric limits you require for your integration. For these critical technical details, you should: - Visit [Contact Sales]() - Visit Would you like me to provide a general answer based on common API integration patterns for the questions not covered in the documentation?
​ To learn more, see the sources I considered: [[1] Get Call](https://docs.retellai.com/api-references/get-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.