clientnexus_71205
11/28/2025, 9:45 PMAI Evy
11/28/2025, 9:45 PMAI Evy
11/28/2025, 9:45 PMAI Evy
11/28/2025, 9:45 PMAI Evy
11/28/2025, 9:45 PMclientnexus_71205
11/28/2025, 9:46 PMAI Evy
11/28/2025, 9:46 PMAI Evy
11/28/2025, 9:47 PMknowledge_base_ids to enable this feature. [(2) ]() [(3) ]() The knowledge base retrieval happens automatically for every response generation without needing prompt changes. [(1) ]()
You can configure retrieval settings using kb_config with parameters like top_k (number of results, default 3) and filter_score (minimum relevance score, default 0.6) . [(2) ]() [(3) ]()
## End Call Tool
To enable call termination, add the end call tool to your agent's general_tools array:
json
{
"type": "end_call",
"name": "end_call",
"description": "End the call with user."
}
[(2) ]() , [(3) ]()
This tool should be included in the general_tools configuration when creating or updating your Retell LLM. [(2) ]() [(3) ]()
## Appointment Booking
For appointment booking functionality, you can use the Cal.com integration tool in your agent's tools configuration:AI Evy
11/28/2025, 9:47 PMAI Evy
11/28/2025, 9:47 PMjson
{
"type": "book_appointment_cal",
"name": "book_appointment",
"description": "Book an annual check up.",
"cal_api_key": "cal_live_xxxxxxxxxxxx",
"event_type_id": 60444,
"timezone": "America/Los_Angeles"
}
[(2) ]() , [(3) ]()
This requires your Cal.com API key and the specific event_type_id for the appointment type. [(2) ]() [(3) ]()
## Phone Number Format
When creating phone calls, Retell requires E.164 format for both from_number and to_number. [(4) ]() The from_number must be a number purchased from or imported to Retell.
Your custom phone normalization logic should ensure numbers match this format before making API calls to Retell.AI Evy
11/28/2025, 9:47 PMclientnexus_71205
11/28/2025, 10:43 PMAI Evy
11/28/2025, 10:43 PMAI Evy
11/28/2025, 10:43 PMinbound_webhook_url in your phone number configuration [(4) ]() [(2) ]()
3. Webhook Specifications [(3) ]() [(4) ]()
- The webhook will POST the payload to your endpoint
- Timeout is 10 seconds
- Retries up to 3 times if no success status (2xx) is received
- You can verify webhook authenticity using your Retell API Key [(4) ]()
4. Deploy Your Endpoint [(1) ]()
For testing, you can use tools like ngrok to make your local endpoint accessible online.
## What You Need to Provide
You must provide:
- Your own webhook endpoint URL (Retell doesn't provide this - they seAI Evy
11/28/2025, 10:43 PMAI Evy
11/28/2025, 10:45 PMAI Evy
11/28/2025, 10:45 PMAI Evy
11/28/2025, 10:45 PMclientnexus_71205
11/28/2025, 10:45 PMAI Evy
11/28/2025, 10:45 PMAI Evy
11/28/2025, 10:45 PMAI Evy
11/28/2025, 10:45 PMwebhook_url field where you paste your endpoint URL. When you update the agent with this webhook URL, it binds webhook events for that specific agent to your specified URL and will ignore the account-level webhook for that agent.
You can also set webhook_timeout_ms (default is 10000ms if not set) .
Account-Level Webhooks [(2) ]()
There's also an account/workspace-level webhook configuration that applies to all agents unless overridden at the agent level.
## How Webhook URLs Work
The webhook URL field is where you enter YOUR server's endpoint URL - this is the URL that Retell will send POST requests to when events occur. [(3) ]() Retell doesn't provide you with a webhook URL; instead, you provide Retell with your own endpoint.
## Webhook Events
Once configured, your webhook will receive events for: [(2) ]()
- call_started - When a new call begins
- call_ended - When a call completes, transfers, or encounters an error
- call_analyzed - When call analysis is complete
## Webhook Specifications
The webhook will:
- POST the payload to your endpoint
- Timeout after 10 seconds
- Retry up to 3 times if no success status (2xx) is received
- Trigger events in order but non-blocking
## Security
You can verify webhook authenticity using the x-retell-signature header together with your Retell API Key. [(4) ]() Retell provides a verify function in their SDKsAI Evy
11/28/2025, 10:45 PMAI Evy
11/28/2025, 10:47 PMclientnexus_71205
11/28/2025, 10:47 PMAI Evy
11/28/2025, 10:47 PMjson
{
"type": "check_availability_cal",
"name": "check_availability",
"description": "Check available time slots for booking.",
"cal_api_key": "cal_live_xxxxxxxxxxxx",
"event_type_id": 60444,
"timezone": "America/Los_Angeles"
}
The tools can be configured in either general_tools (available in all states) or within specific states in the tools array (available only in that state) .AI Evy
11/28/2025, 10:47 PMgeneral_tools and any state-specific tools under states. [(1) ]() [(2) ]()
## Checking Tools via API
You can retrieve your Retell LLM configuration using the Get Retell LLM API endpoint to verify all 4 tools are properly configured. [(1) ]()
## Expected Tool Configuration
Based on your earlier message, you should see these 4 tools configured:
1. Knowledge Base Query - This is automatically enabled when you set knowledge_base_ids in your LLM configuration [(2) ]()
2. End Call Tool - Should appear in `general_tools`:
json
{
"type": "end_call",
"name": "end_call",
"description": "End the call with user."
}
[(1) ]() [(2) ]()
3. Book Appointment - Should appear in your tools array:
json
{
"type": "book_appointment_cal",
"name": "book_appointment",
"description": "Book an annual check up.",
"cal_api_key": "cal_live_xxxxxxxxxxxx",
"event_type_id": 60444,
"timezone": "America/Los_Angeles"
}
4. Check Availability - Should appear in your tools array:AI Evy
11/28/2025, 10:47 PMAI Evy
11/28/2025, 10:47 PM