https://retellai.com/?utm_source=discord&utm_medium=seo logo
the agent is not checking the knowledge base durin...
# ❓・ai-evy-support
s
@AI Evy the agent is not checking the knowledge base during a call. How can we makes sure it does
a
Thanks for tagging me @Sanjay. I'll look through relevant sources and get back to you shortly.
### Answer If your agent isn't accessing the knowledge base during calls, here are a few things to check: 1. Publish the Agent After making changes, ensure you've clicked the Publish button (top right of the dashboard) . [(1) ]() If you're testing inbound calls, you can also set the agent to draft mode in the Phone Numbers tab to ensure both web and phone calls use the same agent version. 2. Verify Knowledge Base is Linked Confirm the knowledge base is properly linked to your agent. Knowledge bases can be linked via the dashboard or API using the
knowledge_base_ids
field. [(2) ]() [(3) ]() 3. Check Knowledge Base Content Quality - Ensure the URLs used for scraping are still accessible and valid. [(4) ]() - If URLs are no longer reachable, the KB content may be unreliable—consider creating a new KB with valid URLs. 4. Consider KB Size Having too many web pages (e.g., ~500 URLs) in a knowledge base can make it harder for the agent to retrieve relevant information effectively. [(1) ]() How KB Works When a knowledge base is linked, the agent automatically retrieves relevant information before responding—no prompt changes are needed. The system uses the transcript so far to find the most relevant chunks from the KB. [(2) ]() If you're still having issues, could you share the call ID so we can investigate further?
​ To learn more, see the sources I considered: [[1] Inbound Calls Not Accessing Knowledge Base (Urgent)](https://discord.com/channels/1186424376300679209/1440295109286428713) [[2] Knowledge Base](https://docs.retellai.com/build/knowledge-base) [[3] Get Conversation Flow](https://docs.retellai.com/api-references/get-conversation-flow) [[4] Agent making mistakes!](https://discord.com/channels/1186424376300679209/1385707795709563110) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
@AI Evy After updateing the knowledge base, do I need to publish the agent?
a
Thanks for the follow-up, @Sanjay. I'll get back to you soon.
### Answer No, you do not need to republish your agent after updating the knowledge base. [(1) ]() When a knowledge base is linked to an agent, the agent automatically retrieves information from it before responding—no prompt changes or republishing are required. The knowledge base operates independently: during creation, sources are chunked, embedded, and stored in a vector database. During calls, the system uses the transcript to find relevant chunks and feeds them to the LLM as context. If you enable auto-refresh for URL sources, the system will re-fetch all URLs every 24 hours automatically to ensure the latest content is reflected.
​ To learn more, see the sources I considered: [[1] Knowledge Base](https://docs.retellai.com/build/knowledge-base) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.