nithish_99915
08/07/2025, 10:22 AMAI Evy
08/07/2025, 10:22 AMAI Evy
08/07/2025, 10:23 AMauto_reconnect to true in the config event, and Retell will send ping_pong events to your server every 2 seconds to keep the connection alive .
json
{
"response_type": "config",
"config": {
"auto_reconnect": true,
"call_details": true
}
}
The ping_pong event structure includes a timestamp for calculating round-trip time :
json
{
"interaction_type": "ping_pong",
"timestamp": 1703302407333
}
## Real-time Call Updates
The LLM WebSocket also provides update_only events that send real-time updates about the call, including live transcript and turn-taking information . These events are sent whenever transcript updates occur - either when the user speaks or the agent speaks .
## Call Status Polling
You can also poll the call status using the Get Call API [(2) ]() . The call status will show:
- `registered`: Call id issued, starting to make a call
- `ongoing`: Call connected and ongoing
- `ended`: The underlying websocket has ended for the call
- `error`: Call encountered error
The LLM WebSocket with ping-pong events is the most reliable method for continuous heartbeat monitoring of ongoing calls.AI Evy
08/07/2025, 10:23 AMAI Evy
08/07/2025, 10:23 AMnithish_99915
08/13/2025, 8:18 AMAI Evy
08/13/2025, 8:18 AMAI Evy
08/13/2025, 8:18 AMopt_in_signed_url setting . When this option is enabled, the generated URLs include security signatures that restrict access and automatically expire after 24 hours .
## URL Structure
The recording_url follows this format :
"<https://retellai.s3.us-west-2.amazonaws.com/Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6/recording.wav%22>
## For Your Platform Integration
If you need to display call recordings directly in your platform, you should consider:
1. **With signed URLs enabled**: The URLs expire after 24 hours, so you'd need to refresh them periodically by making new API calls to get updated URLs
2. **Without signed URLs**: The URLs would be more persistent, but this reduces security
The recording_url is available after the call ends . You can retrieve it using the Get Call API endpoint at /v2/get-call/{call_id} .
For production use in your platform, you may want to download and store the recordings on your own infrastructure rather than relying on direct links, especially if you need long-term access or if you're using signed URLs.AI Evy
08/13/2025, 8:18 AMAI Evy
08/13/2025, 8:18 AMnithish_99915
08/13/2025, 8:21 AMnithish_99915
08/18/2025, 9:44 AMAI Evy
08/18/2025, 9:44 AMAI Evy
08/18/2025, 9:44 AMAI Evy
08/18/2025, 9:44 AMAI Evy
08/18/2025, 9:44 AMnithish_99915
08/19/2025, 8:26 AMAI Evy
08/19/2025, 8:26 AMAI Evy
08/19/2025, 8:26 AMknowledge_base_urls parameter [(1) ]() :
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
async function main() {
const knowledgeBaseResponse = await client.knowledgeBase.create({
knowledge_base_name: "Sample KB",
knowledge_base_urls: [
"<https://www.retellai.com%22,>
"<https://docs.retellai.com%22,>
],
}) ;
console.log(knowledgeBaseResponse.knowledge_base_id) ;
}
main() ;
Similarly, when adding sources to an existing knowledge base, you can use the knowledge_base_urls parameter [(2) ]() :
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
async function main() {
const knowledgeBaseResponse = await client.knowledgeBase.addSources({
knowledge_base_urls: [
"<https://www.retellai.com%22,>
"<https://docs.retellai.com%22,>
],
}) ;
console.log(knowledgeBaseResponse.knowledge_base_id) ;
}
main() ;AI Evy
08/19/2025, 8:26 AMAI Evy
08/19/2025, 8:26 AMAI Evy
08/19/2025, 8:26 AMnithish_99915
08/19/2025, 8:38 AMAI Evy
08/19/2025, 8:38 AMAI Evy
08/19/2025, 8:39 AMjavascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const knowledgeBaseResponse = await client.knowledgeBase.retrieve('kb_1234567890') ;
console.log(knowledgeBaseResponse.knowledge_base_id) ;
The response will show you the knowledge_base_sources array which contains all the sources that were processed . The status field will indicate whether the knowledge base is still "in_progress", "complete", or has encountered an "error" .
However, the available sources don't provide specific details about how URL crawling works or what determines which sublinks get included when you provide a main URL. The sources also don't explain crawling depth, exclusion rules, or why only one link might be processed from a domain.
I don't have enough information in the available sources to explain why your specific URL only resulted in one link being processed.
For this specific crawling behavior issue, I'd recommend:
Check out these potentially useful sources: [Get Knowledge Base]() , [List Knowledge Bases]()
Visit [Contact Sales]() or [) for more detailed support on crawling behavior.
Would you like a general answer based on my knowledge instead?AI Evy
08/19/2025, 8:39 AMAI Evy
08/19/2025, 8:39 AMnithish_99915
08/19/2025, 8:41 AMAI Evy
08/19/2025, 8:41 AMAI Evy
08/19/2025, 8:41 AMknowledge_base_sources array is showing as empty in your response, this suggests the knowledge base might still be processing (status: "in_progress") or there could be an issue with the crawling process [(3) ]() .
I don't have enough information in the available sources to provide the specific API parameters for enabling auto-crawling during knowledge base creation.
Check out these potentially useful sources: [Knowledge Base]() , [Create Knowledge Base]()
Visit [Contact Sales]() or [) for specific guidance on configuringAI Evy
08/19/2025, 8:41 AMAI Evy
08/19/2025, 8:41 AMAI Evy
08/19/2025, 8:41 AMnithish_99915
08/22/2025, 12:10 PMAI Evy
08/22/2025, 12:10 PMAI Evy
08/22/2025, 12:11 PMaddSources method [(1) ]() . The method does accept a knowledge base ID as the first parameter .
Here's how to use it:
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
// Add sources to existing knowledge base
const knowledgeBaseResponse = await client.knowledgeBase.addSources(
'kb_1234567890', // knowledge base ID as first parameter
{
knowledge_base_urls: [
"<https://www.example.com%22,>
"<https://www.retellai.com%22>
]
}
) ;
[(2) ]()
The SDK method signature is client.knowledgeBase.addSources(knowledgeBaseId, { ...params }) which returns a KnowledgeBaseResponse [(1) ]() . The first parameter is the knowledge base ID, and the second parameter contains the sources you want to add [(2) ]() .
You can add different types of sources including:
- knowledge_base_texts - text content with titles
- knowledge_base_files - files (limit 25 files, 50MB each)
- knowledge_base_urls - URLs to be scraped and addedAI Evy
08/22/2025, 12:11 PMAI Evy
08/22/2025, 12:11 PMnithish_99915
08/22/2025, 12:50 PMAI Evy
08/22/2025, 12:50 PMAI Evy
08/22/2025, 12:50 PMknowledge_base_name parameter, but you also need to include at least one of the following source types :
- knowledge_base_texts - text content with titles
- knowledge_base_files - files to upload
- knowledge_base_urls - URLs to be scraped
Here's the correct way to create a knowledge base with just a name and some content :
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const knowledgeBaseResponse = await client.knowledgeBase.create({
knowledge_base_name: "Sample KB",
knowledge_base_texts: [
{
title: "Sample Text",
text: "Your text content here"
}
]
}) ;
The internal server error you're experiencing is likely because you're only providing the knowledge_base_name without any actual content sources [(2) ]() . Other users have reported similar 500 internal server errors when the request body is incomplete or missing required source data .
To fix this, you need to add at least one source type to your knowledge base creation call [(1) ]() .AI Evy
08/22/2025, 12:50 PMAI Evy
08/22/2025, 12:50 PMnithish_99915
08/29/2025, 12:03 PMAI Evy
08/29/2025, 12:03 PMAI Evy
08/29/2025, 12:03 PMjavascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
await client.conversationFlow.delete('conversation_flow_id') ;
A 404 error typically indicates that the conversation flow ID doesn't exist or isn't accessible with your current API key . To troubleshoot:
1. Verify the conversation flow exists - Use the Get Conversation Flow API to confirm the ID is valid [(2) ]() :
javascript
const conversationFlowResponse = await client.conversationFlow.retrieve('conversation_flow_386741e0affe') ;
console.log(conversationFlowResponse.conversation_flow_id) ;
2. Check API key permissions - Ensure your API key has access to this conversation flow [(1) ]()
3. Verify the ID format - The conversation flow ID should be the complete identifier as returned from creation or listing operations
If the Get Conversation Flow call also returns 404, then the conversation flow ID either doesn't exist or isn't accessible with your current credentials [(2) ]() .AI Evy
08/29/2025, 12:03 PMAI Evy
08/29/2025, 12:03 PMnithish_99915
09/03/2025, 6:11 AMAI Evy
09/03/2025, 6:11 AMAI Evy
09/03/2025, 6:11 AMAI Evy
09/03/2025, 6:11 AMAI Evy
09/03/2025, 6:11 AM