dzei2234
10/20/2025, 2:56 PMAI Evy
10/20/2025, 2:57 PMAI Evy
10/20/2025, 2:57 PMAI Evy
10/20/2025, 2:57 PMAI Evy
10/20/2025, 2:57 PMAI Evy
10/20/2025, 2:57 PMdzei2234
10/26/2025, 5:34 PMAI Evy
10/26/2025, 5:34 PMAI Evy
10/26/2025, 5:34 PMjson
{
"retell_llm_dynamic_variables": {
"customer_name": "John Doe"
}
}AI Evy
10/26/2025, 5:34 PMoverride_dynamic_variables parameter in the Update Call API allows you to add or override dynamic variables during an active call [(3) ]() .
## Using Knowledge Base
The knowledge base feature allows you to provide additional context to your agent [(4) ]() . You can add custom text snippets to a knowledge base, with a maximum of 50 text snippets per knowledge base .
One community member suggested building your own API to load transcripts into the knowledge base, though they recommended filtering rather than loading all transcripts blindly [(5) ]() .
## Important Considerations
- Knowledge bases support URL sources (max 500 URLs) , text snippets (max 50) , and file uploads (max 25 files) [(4) ]()
- Knowledge base usage adds $0.005 per minute to call costs
- Each workspace includes 10 free knowledge bases
- The knowledge base retrieves relevant information automatically during calls using the transcript so far
For your specific use case of storing transcripts in Google Sheets and retrieving them for subsequent calls, you would likely need to build custom integration logic that:
1. Fetches relevant previous transcripts from your Google Sheet
2. Either injects them via dynamic variables when creating the call, or adds them to a knowledge base
The sources don't provide a built-in feature that automatically syncs Google Sheets with Retell AI for conversation history.AI Evy
10/26/2025, 5:34 PMAI Evy
10/26/2025, 5:34 PMdzei2234
10/26/2025, 5:39 PMAI Evy
10/26/2025, 5:39 PMAI Evy
10/26/2025, 5:40 PMPOST request to your endpoint with payload containing :
- agent_id (if the number has an inbound agent set)
- from_number (caller's number)
- to_number (your Retell number)
2. **Your Response**: You return a JSON response with optional fields :
- override_agent_id - route to a different agent
- override_agent_version - specify agent version
- dynamic_variables - inject call-specific context
- metadata - add custom metadata
3. **Call Processing**: Based on your response, Retell connects the call with your specified configuration .
## Configuration
Set up the webhook in your phone number settings by adding the inbound_webhook_url [(3) ]() [(4) ]() :
json
{
"inbound_webhook_url": "<https://example.com/inbound-webhook%22>
}
[(3) ]()
## Sample Request Payload
json
{
"event": "call_inbound",
"call_inbound": {
"agent_id": "agent_12345",
"from_number": "+12137771234",
"to_number": "+12137771235"
}
}AI Evy
10/26/2025, 5:40 PMjson
{
"call_inbound": {
"override_agent_id": "agent_12345",
"override_agent_version": 1,
"dynamic_variables": {
"customer_name": "John Doe"
},
"metadata": {
"random_id": "12345"
}
}
}
## Key Details
- **Timeout**: 10 seconds
- **Retries**: Up to 3 attempts if no 2xx status received
- **Security**: Verify using your Retell API Key
- **Call State**: The call object isn't created yet when the webhook fires
## Common Use Cases
You can use the inbound webhook to [(1) ]() [(5) ]() [(2) ]() [(6) ]() :
- Route different callers to different agents based on their phone number
- Look up caller information in your CRM/database
- Set personalized greetings using dynamic variables
- Reject calls selectively (respond without override_agent_id) [(1) ]()
The webhook operates at the phone number level, not the agent level, allowing one number to route to multiple agents based on caller context [(2) ]() .AI Evy
10/26/2025, 5:40 PMAI Evy
10/26/2025, 5:40 PM