https://retellai.com/?utm_source=discord&utm_medium=seo logo
can we set priority on our knowledge base document...
# ❓・ai-evy-support
s
can we set priority on our knowledge base documents @AI Evy
a
Thanks for tagging me @sunny1952_36896. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, there is no documented feature to set priority on knowledge base documents in Retell AI [(1) ]() [(2) ]() [(3) ]() . The knowledge base system uses vector embeddings to retrieve the most relevant chunks based on the conversation transcript, but there's no mention of manual priority settings for specific documents or sources [(1) ]() . The retrieval process automatically finds the most relevant information from your knowledge base during calls, but you cannot explicitly prioritize certain documents over others [(1) ]() [(3) ]() . If you need more control over which information gets retrieved, you might consider: - Organizing content more strategically within your knowledge bases - Creating separate knowledge bases for different contexts and linking them appropriately to specific agents or nodes Would you like me to provide a general answer about potential workarounds, or check out these potentially useful sources: - [Knowledge Base]() - [Add Knowledge Base Sources]()
​ To learn more, see the sources I considered: [[1] Knowledge Base](https://docs.retellai.com/build/knowledge-base) [[2] Add Knowledge Base Sources](https://docs.retellai.com/api-references/add-knowledge-base-sources) [[3] Simplify Support with Retell AI’s Knowledge Base | Retell AI](https://www.retellai.com/blog/knowledge-base-feature) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
im asking it a flow question which we have flows set up in our knowledge base but it s pulling wrong data from a document tha tis not relevant to the question @AI Evy
a
Thanks for the follow-up, @sunny1952_36896. I'll get back to you soon.
### Answer When your agent retrieves incorrect data from the knowledge base, you can adjust the retrieval settings to improve accuracy [(1) ]() . Configure KB Retrieval Settings: After connecting a knowledge base to your agent, you can adjust two key parameters : 1. **Chunks to retrieve**: The max number of chunks to retrieve from the KB, range 1-10 (Default: 3) 2. **Similarity Threshold**: Adjust how strict the system is when matching chunks to the context. A higher setting gives you fewer, but more similar, matches (Default: 0.6) For most cases, the recommended settings are 3 chunks and a 0.60 similarity threshold . If you're getting irrelevant data, try increasing the similarity threshold to be more strict about what gets retrieved . Best Practices to Improve Retrieval: - Prefer
.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 - Group related information within the same section so chunks remain cohesive and relevant - Avoid ambiguity and use specificity in references - include names, dates, units, and avoid ambiguous pronouns like
it
or
this
Node-Level Knowledge Bases: For Conversation Flow agents, you can configure knowledge bases at the node level, which will be combined with agent global knowledge bases to provide more accurate context for a specific topic . This can help ensure the right information is retrieved for specific parts of your flow . Note: There have been reported issues with knowledge base retrieval in conversation flows, where sometimes retrieval works and sometimes it doesn't [(2) ]() . If you continue experiencing problems, you may want to verify your knowledge b
ase is properly indexed and linked to your agent . **
​ To learn more, see the sources I considered: [[1] Knowledge Base](https://docs.retellai.com/build/knowledge-base) [[2] Knowledge base retrieval is not happening](https://discord.com/channels/1186424376300679209/1352014353922002975) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
how can we check for proper index @AI Evy
a
Thanks for the follow-up, @sunny1952_36896. I'll get back to you soon.
​ To learn more, see the sources I considered: [[1] Knowledge Base](https://docs.retellai.com/build/knowledge-base) [[2] Empower AI with Dynamic Knowledge Bases | Retell AI](https://www.retellai.com/features/knowledge-base) [[3] List Calls](https://docs.retellai.com/api-references/list-calls) [[4] Knowledge base bug](https://discord.com/channels/1186424376300679209/1395139321622958160) ​
### Answer Based on the available sources, there isn't a documented method to directly check if your knowledge base is properly indexed [(1) ]() . However, you can verify your knowledge base is working through testing: Test in the Playground: After adding your knowledge base to your agent, test it by asking related questions in the test LLM area [(2) ]() . The agent will automatically integrate the knowledge base content when responding . Check Retrieved Contents: After a call ends, you can access the
knowledge_base_retrieved_contents_url
field, which contains the response ID and the retrieved contents related to that response [(3) ]() . This URL shows what was actually pulled from your knowledge base during the call . Known Issues: There have been reported cases where agents only retrieve information from some knowledge bases while ignoring others, even when explicitly instructed [(4) ]() . In one case, an agent only accessed 2 out of 6 uploaded knowledge bases . If you're experiencing similar issues where the wrong documents are being retrieved, this may indicate a broader retrieval problem rather than an indexing issue . If testing shows your knowledge base isn't being accessed correctly, you might want to reach out to Retell AI support with your agent ID and knowledge base IDs for investigation . Would you like me to provide a general answer about potential troubleshooting steps, or check out these potentially useful sources: - [Knowledge Base]() - [List Calls]()
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
can you customize the chatbot how it appears on your website @AI Evy
a
Thanks for the follow-up, @sunny1952_36896. I'll get back to you soon.
### Answer Yes, you can customize the Retell chat widget's appearance on your website [(1) ]() . The widget supports several customization options through data attributes in the script tag . Available Customizations: 1. Widget Title - Custom chat window title using
data-title
2. Logo - Your logo image via
data-logo-url
3. Theme Color - Hex color code for widget theme using
data-color
(e.g., "#FFA07A") 4. Bot Name - Bot name for popup messages with
data-bot-name
5. Popup Message - Custom popup message before users open chat using
data-popup-message
6. Auto-open - Set to "true" to auto-open chat widget on page load using
data-auto-open
7. Popup Timing - Delay before showing popup using
data-show-ai-popup-time
(in seconds) Example Implementation:
Copy code
html
<script
  id="retell-widget"
  src="<https://dashboard.retellai.com/retell-widget.js%22>
  type="module"
  data-public-key="YOUR_RETELL_PUBLIC_KEY"
  data-agent-id="YOUR_CHAT_AGENT_ID"
  data-title="YOUR_CUSTOM_TITLE"
  data-logo-url="YOUR_LOGO_URL"
  data-color="YOUR_CUSTOM_COLOR"
  data-bot-name="YOUR_BOT_NAME"
  data-popup-message="YOUR_POPUP_MESSAGE"
  data-auto-open="false"
></script>
Important Limitation: The launcher button icon (robot icon) cannot be customized through the script settings [(2) ]() . The
data-logo-url
only changes the logo inside the chat window, not the launcher button itself . To use a custom launcher icon, you would need to build your own custom launcher using the Retell API .
​ To learn more, see the sources I considered: [[1] Retell Website Widget](https://docs.retellai.com/deploy/chat-widget) [[2] Chat Widget Customisation](https://discord.com/channels/1186424376300679209/1387925742007881979) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
the chatbot close box shows up on eververy page after we close it is there a way to make it show up once every 24 hours @AI Evy
a
Thanks for the follow-up, @sunny1952_36896. I'll get back to you soon.
### Answer Based on the available sources, there is no documented feature to control how frequently the chat widget popup appears after being closed, such as showing it once every 24 hours [(1) ]() . The chat widget does support popup timing controls through
data-show-ai-popup
and
data-show-ai-popup-time
attributes, but these only control the initial popup delay when a user first visits the page . There's no built-in functionality to manage popup frequency across multiple page visits or sessions . The widget automatically handles chat sessions and persists them in localStorage , but this doesn't include popup frequency management. Potential Workaround: Since the standard widget doesn't support this feature, you would need to implement custom JavaScript to track when the popup was last closed using localStorage or cookies, and conditionally control the widget's popup behavior based on that timestamp. However, this would require custom development beyond the standard widget configuration options [(1) ]() [(2) ]() . Would you like me to provide a general answer about potential custom implementation approaches, or check out these potentially useful sources: - [Retell Website Widget]() - [Chat Widget Customisation]()
​ To learn more, see the sources I considered: [[1] Retell Website Widget](https://docs.retellai.com/deploy/chat-widget) [[2] Chat Widget Customisation](https://discord.com/channels/1186424376300679209/1387925742007881979) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
i want to use the chatbot for my site but it gets annoying when they lose the box and it keeps loading again on every page how can i fix this @AI Evy
a
Thanks for the follow-up, @sunny1952_36896. I'll get back to you soon.
### Answer ### Answer Based on the available sources, the chat widget does automatically persist chat sessions in localStorage [(1) ]() , which should maintain the chat state as users navigate between pages. However, there's no documented built-in feature to control the popup behavior across multiple page visits or prevent it from reappearing after being closed . Available Controls: You can control the initial popup behavior using these attributes :
Copy code
html
<script
  id="retell-widget"
  src="<https://dashboard.retellai.com/retell-widget.js%22>
  type="module"
  data-public-key="YOUR_RETELL_PUBLIC_KEY"
  data-agent-id="YOUR_CHAT_AGENT_ID"
  data-show-ai-popup="true"
  data-show-ai-popup-time="5"
  data-auto-open="false"
></script>
-
data-show-ai-popup
- Set to "true" to enable popup messages -
data-show-ai-popup-time
- Seconds to delay before showing popup (default: 0) -
data-auto-open
- Set to "false" to prevent auto-opening on page load The Issue: These controls only manage the initial popup delay when a user first visits the page . They don't provide functionality to remember that a user closed the widget and prevent it from showing again across page navigations. To implement the behavior you're looking for (remembering the closed state across pages) , you would need custom JavaScript to track the widget state using localStorage or cookies, which goes beyond the standard widget configuration options [(1) ]() [(2) ]() . Would you like me to provide a general answer about potential custom implementation approaches? **
​ To learn more, see the sources I considered: [[1] Retell Website Widget](https://docs.retellai.com/deploy/chat-widget) [[2] Chat Widget Customisation](https://discord.com/channels/1186424376300679209/1387925742007881979) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.