Bobster2002
12/31/2025, 9:03 PMAI Evy
12/31/2025, 9:03 PMAI Evy
12/31/2025, 9:03 PMknowledge_base_retrieved_contents_url field that provides a URL to view the knowledge base retrieved contents. [(2) ]()
The Test LLM feature appears to have more detailed visibility into knowledge base retrieval compared to web call testing based on the changelog notes, but the sources don't explain the specific reasoning behind this difference.
Check out these potentially useful sources:
- [Knowledge Base]()
- [Platform Changelogs | Retell AI]()
- [List Calls]()
Would you like me to provide a general answer based on my knowledge instead?AI Evy
12/31/2025, 9:03 PMAI Evy
12/31/2025, 9:03 PMBobster2002
12/31/2025, 9:35 PMAI Evy
12/31/2025, 9:35 PMAI Evy
12/31/2025, 9:35 PM{{customer_name}} or other values captured via the Extract Dynamic Variable tool would not directly affect what gets retrieved from the knowledge base—only what's been said in the conversation transcript matters for retrieval.
Check out these potentially useful sources:
- [Knowledge Base]()
- [Extract Dynamic Variables]()
- [Platform Changelogs | Retell AI]()
Would you like me to provide a general answer based on my knowledge instead?AI Evy
12/31/2025, 9:35 PMAI Evy
12/31/2025, 9:35 PMBobster2002
12/31/2025, 9:40 PMAI Evy
12/31/2025, 9:40 PMAI Evy
12/31/2025, 9:41 PM.md (Markdown) files over `.txt`**—well-structured Markdown is chunked and retrieved more accurately. [(1) ]()
- Use clear, descriptive headings and keep each section focused and reasonably short. If a section becomes long, split it into multiple subsections.
- Write short paragraphs and lists to separate concepts; avoid walls of text.
- **Use correct file extensions**—one user found their KB wasn't retrieving properly because XML-formatted files had .md extensions, causing incorrect processing. [(2) ]()
### Content Best Practices
- Reformat tabular data (like CSVs) into FAQ-style entries (e.g., "What's the price of X?" → "$99") . [(3) ]()
- Split complex data into smaller, focused files.
- Group related information within the same section so chunks remain cohesive and relevant. [(1) ]()
- Avoid ambiguity—include names, dates, units, and avoid ambiguous pronouns like "it" or "this" because prior chunks may not be present.
### Node-Level KB (Conversation Flow)
- Assign specific knowledge bases to specific nodes in your conversation flow—this retrieves more accurate answers based on context and responds with lower latency by narrowing the search space. [(4) ]()
### Retrieval Settings
- Adjust Chunks to retrieve (1-10, default 3) and Similarity Threshold (default 0.6) in your agent's KB settings. A higher similarity threshold gives fewer but more similar matches. [(1) ]()
### Alternative Approach: Custom FunAI Evy
12/31/2025, 9:41 PMAI Evy
12/31/2025, 9:41 PMAI Evy
12/31/2025, 9:41 PMBobster2002
12/31/2025, 9:42 PMAI Evy
12/31/2025, 9:42 PMAI Evy
12/31/2025, 9:43 PMget_weather
- Description: Get weather for a city
- HTTP Method: POST
- Endpoint URL: Your server endpoint (e.g., `
2. Define parameters (JSON schema) :
json
{
"type": "object",
"required": [
"order_id"
],
"properties": {
"name": {
"type": "object",
"description": "",
"properties": {
"first_name": {
"type": "string",
"description": "User first name"
},
"last_name": {
"type": "string",
"const": "{{last_name}}"
}
}
},
"order_id": {
"type": "number",
"const": 1234
}
}
}
3. Server-side handler (TypeScript example) :
javascript
import { Retell } from "retell-sdk";
this.app.post("/check-weather", async (req: Request, res: Response) => {
if (
!Retell.verify(
JSON.stringify(req.body) ,
process.env.RETELL_API_KEY,
req.headers["x-retell-signature"] as string,
)
) {
console.error("Invalid signature") ;
return;
}
const content = req.body;
if (content.args.city === "New York") {
return res.json("25f and sunny") ;
} else {
return res.json("20f and cloudy") ;
}
}) ;AI Evy
12/31/2025, 9:43 PMlookup_price with a parameter for product_name
- Your endpoint queries your database/spreadsheet and returns the exact price
- The LLM calls this function when users ask about pricing, giving you deterministic results vs. KB retrieval
Key benefits:
- Response variables let you extract values from the API response and save them as dynamic variables for later use
- You can configure "Speak during execution" and "Speak after execution" behavior
- Function result is capped at 15000 charactersAI Evy
12/31/2025, 9:43 PMAI Evy
12/31/2025, 9:43 PM