anton333_50203
12/02/2025, 9:46 AMAI Evy
12/02/2025, 9:46 AMAI Evy
12/02/2025, 9:46 AM.md (Markdown) files over .txt as well-structured Markdown is chunked and retrieved more accurately :
- Use clear, descriptive headings and keep each section focused and reasonably short
- Write short paragraphs and lists to separate concepts; avoid walls of text
- Group related information within the same section so chunks remain cohesive and relevant
- Use specificity in references - include names, dates, units, and avoid ambiguous pronouns like it or this
Ensure Agent is Published:
Make sure you've published your agent after making knowledge base changes [(2) ]() . The publish button is in the top right of the agent editor .
Add Prompt Instructions:
If you want to prevent the LLM from generating information not found in the knowledge base, you can add this to your agent prompt [(1) ]() :AI Evy
12/02/2025, 9:46 AMOnly answer using the information in ## Related Knowledge Base Contexts.
If ## Related Knowledge Base Contexts is missing or does not contain relevant information, respond:
"There is no related information in knowledge base."
**AI Evy
12/02/2025, 9:47 AMAI Evy
12/02/2025, 9:47 AManton333_50203
12/02/2025, 10:02 AMAI Evy
12/02/2025, 10:02 AMAI Evy
12/02/2025, 10:02 AM.md (Markdown) files are preferred over .txt because well-structured Markdown is chunked and retrieved more accurately .
For agent prompts (both global prompts and node instructions) , the Prompt Engineering Guide recommends using a sectional structure with clear delimiters like ///## to organize different parts of your prompt [(2) ]() . This structured approach helps with organization, reusability, and LLM comprehension .
The recommended prompt structure uses sections like :
- ///## Identity
- ///## Style Guardrails
- ///## Response Guidelines
- ///## Task Instructions
This sectional format is different from Markdown - it's a way to organize your prompt text for better LLM processing .AI Evy
12/02/2025, 10:03 AMAI Evy
12/02/2025, 10:03 AManton333_50203
12/02/2025, 10:03 AMAI Evy
12/02/2025, 10:03 AMAI Evy
12/02/2025, 10:04 AM[IDENTITY], [ROLE] heading style can work, but Retell AI's documentation specifically recommends using ///## as section delimiters for better LLM comprehension [(1) ]() [(2) ]() .
The recommended format is :
///## Identity
You are a friendly AI assistant for [Company Name].
Your role is to [specific purpose].
///## Style Guardrails
Be concise: Keep responses under 2 sentences unless explaining complex topics.
Be conversational: Use natural language, contractions, and acknowledge what the caller says.
///## Response Guidelines
Return dates in spoken form: Say "January fifteenth" not "1/15".
Ask one question at a time: Avoid overwhelming the caller with multiple questions.
///## Task Instructions
[Specific steps the agent should follow]
This sectional approach with ///## delimiters offers several benefits [(1) ]() :
- **Reusability**: Sections can be adapted across different agents
- **Maintainability**: Easy to update specific behaviors without affecting others
- **Clarity**: LLMs process structured information more accurately
While your [IDENTITY], [ROLE] format provides structure, switching to the ///## delimiter style aligns with Retell AI's tested best practices and may improve your agent's reliability [(1) ]() [(2) ]() .
**AI Evy
12/02/2025, 10:04 AMAI Evy
12/02/2025, 10:04 AManton333_50203
12/02/2025, 10:10 AMAI Evy
12/02/2025, 10:10 AMAI Evy
12/02/2025, 10:10 AM///## followed by a space and then title case (first letter capitalized) , not all caps [(1) ]() [(2) ]() .
The documented format shows [(1) ]() :
///## Identity
You are a friendly AI assistant for [Company Name].
///## Style Guardrails
Be concise: Keep responses under 2 sentences unless explaining complex topics.
///## Response Guidelines
Return dates in spoken form: Say "January fifteenth" not "1/15".
///## Task Instructions
[Specific steps the agent should follow]
Another example from the documentation uses [(2) ]() :
///## Identify
You are a friendly AI assistant for Retell AI. ....
///## Style Guardrails
Be concise: ...
///## Response Guideline
Return dates in their spoken forms: ...
///## Task
1. Greet the user
...
So the format is ///## + space + Title Case (like "Identity", "Task", "Style Guardrails") , not all caps [(1) ]() [(2) ]() .
Sources:
[(1) ]() , [(2) ]()AI Evy
12/02/2025, 10:10 AMAI Evy
12/02/2025, 10:10 AManton333_50203
12/02/2025, 10:11 AMAI Evy
12/02/2025, 10:11 AMAI Evy
12/02/2025, 10:11 AM///## section delimiter format applies to both Global Prompts and Node Prompts in conversation flow agents [(1) ]() .
The documentation shows that the Global Prompt field is where you "specify the agent's persona, identity, guardrails, etc." and this text "will be available in every node" . The structured format with ///## delimiters helps organize this information effectively.
For node-level prompts (node instructions) , the same structured approach with clear section delimiters is recommended for consistency and LLM comprehension. In conversation flow, each node has an instruction field where you can define specific prompts for that step [(2) ]() .
According to a community discussion, when both are present, Node Prompts take precedence over the Global Prompt . The best practice is to use the Global Prompt for tone, identity, and general rules, while using Node Prompts for specific actions or logic per step .
So yes, you can use the ///## Title Case format in both your Global Prompt and individual Node instructions for consistent, well-structured prompts throughout your conversation flow agent.
**AI Evy
12/02/2025, 10:11 AMAI Evy
12/02/2025, 10:11 AManton333_50203
12/02/2025, 10:45 AMAI Evy
12/02/2025, 10:45 AMAI Evy
12/02/2025, 10:45 AMAI Evy
12/02/2025, 10:45 AMOnly answer using the information in ## Related Knowledge Base Contexts.
If ## Related Knowledge Base Contexts is missing or does not contain relevant information, respond:
"There is no related information in knowledge base."
4. Optimize Your Knowledge Base Source Format
Ensure your "Pricing Policy" section follows best practices :
- Use .md (Markdown) files over .txt - well-structured Markdown is chunked and retrieved more accurately
- Use clear, descriptive headings and keep each section focused and reasonably short
- Write short paragraphs and lists to separate concepts; avoid walls of text
- Group related pricing information within the same section so chunks remain cohesive
- Use specificity - include exact prices, dates, and avoid ambiguous pronouns like "it" or "this"
5. Verify Agent is Published
Make sure you've published your agent after making knowledge base changes - the publish button is in the top right of the agent editor [(3) ]() .
Try implementing node-level KB first (if using Conversation Flow) , as this targets the exact information needed at that specific conversation step [(1) ]() [(2) ]() .AI Evy
12/02/2025, 10:46 AMAI Evy
12/02/2025, 10:46 AManton333_50203
12/02/2025, 10:46 AMAI Evy
12/02/2025, 10:46 AMAI Evy
12/02/2025, 10:46 AMOnly answer using the information in ## Related Knowledge Base Contexts.
If ## Related Knowledge Base Contexts is missing or does not contain relevant information, respond:
"There is no related information in knowledge base."AI Evy
12/02/2025, 10:46 AM.md (Markdown) files over .txt - well-structured Markdown is chunked and retrieved more accurately
- Use clear, descriptive headings and keep each section focused and reasonably short
- Write short paragraphs and lists to separate concepts; avoid walls of text
- Group related pricing information within the same section so chunks remain cohesive
- Use specificity - include exact prices, dates, and avoid ambiguous pronouns like "it" or "this"
4. Strengthen State Transition Logic
In your multi-prompt agent, ensure the state transition logic is clear [(2) ]() . You can make the pricing check more explicit:
2. IF "price_mentioned" == "false", you MUST inform the user about pricing using the "Pricing Policy" section.
- This is critical and non-negotiable.
- Retrieve pricing information from ## Related Knowledge Base Contexts.
- Mention evening/weekend rates only if their preferred time falls in those periods.
- Mention VAT only if applicable to this booking.
5. Verify Agent is Published
Make sure you've published your agent after making knowledge base changes - the publish button is in the top right of the agent editor [(1) ]() .
The combination of adjusting retrieval settings, adding explicit prompt instructions, and optimizing your knowledge base format should significantly improve the agent's ability to retrieve and use your "Pricing Policy" section .
**AI Evy
12/02/2025, 10:46 AMAI Evy
12/02/2025, 10:46 AManton333_50203
12/02/2025, 10:51 AMAI Evy
12/02/2025, 10:51 AMAI Evy
12/02/2025, 10:52 AMAI Evy
12/02/2025, 10:52 AMAI Evy
12/02/2025, 10:52 AManton333_50203
12/02/2025, 10:53 AMAI Evy
12/02/2025, 10:53 AMAI Evy
12/02/2025, 10:53 AMAI Evy
12/02/2025, 10:55 AMAI Evy
12/02/2025, 10:55 AManton333_50203
12/08/2025, 9:58 AMAI Evy
12/08/2025, 9:58 AMAI Evy
12/08/2025, 9:58 AM{{variable_name}}) are supported inside knowledge base content itself (e.g., inside uploaded files, URLs, or text snippets) . [(1) ]() [(2) ]() [(3) ]() [(4) ]() [(5) ]()
Dynamic variables are documented as working in prompts, begin message, tool configurations, call handling, and webhook URL, not in knowledge base entries. [(1) ]()
So, from the docs we have, you **should not rely on dynamic placeholders inside KB content**—they are not described as a supported feature there. [(1) ]() [(2) ]() [(3) ]() [(4) ]() [(5) ]()AI Evy
12/08/2025, 9:58 AMAI Evy
12/08/2025, 9:58 AManton333_50203
12/08/2025, 12:37 PMAI Evy
12/08/2025, 12:37 PMAI Evy
12/08/2025, 12:37 PMAI Evy
12/08/2025, 12:37 PMAI Evy
12/08/2025, 12:37 PManton333_50203
12/08/2025, 12:42 PMAI Evy
12/08/2025, 12:42 PMAI Evy
12/08/2025, 12:42 PMAI Evy
12/08/2025, 12:42 PMAI Evy
12/08/2025, 12:42 PM