Prerequisites
- A voice agent already created — see Create a Voice Agent
- A knowledge base with at least one trained source — see Add Sources
Why attach a knowledge base?
By default, a voice agent answers based solely on its system prompt and the LLM’s training data. For product-specific questions, the agent may hallucinate incorrect details or say it doesn’t know. Attaching a knowledge base enables Retrieval-Augmented Generation (RAG): before the LLM responds, Swiftsell searches your knowledge base for relevant content and injects it into the LLM’s context. This means the agent can give accurate, up-to-date answers drawn directly from your documentation, FAQs, or product data. Example: A caller asks “Do you offer free shipping on orders over $50?” — with a knowledge base containing your shipping policy page, the agent retrieves the relevant section and answers accurately.Attach a knowledge base to an agent
- Open the voice agent and go to the Knowledge Base tab.
- From the dropdown, select the knowledge base you want to attach.
- Click Save.
How retrieval works
When a caller’s message arrives:- Swiftsell performs a semantic search against the attached knowledge base.
- The most relevant chunks (passages from your sources) are retrieved.
- Those chunks are prepended to the LLM’s context as reference material.
- The LLM generates a response grounded in that material.
Tips for good retrieval results
Write clear, factual source content. The knowledge base is only as good as what you put in it. Well-structured FAQs and product pages retrieve better than dense legal documents. Keep sources up to date. If your pricing or policies change, re-crawl the relevant pages or re-upload the file. Stale content leads to incorrect answers. Test with real questions. After attaching the knowledge base, call the agent and ask the kinds of questions your customers actually ask. Review the transcript to see whether the retrieved content was relevant. Combine with system prompt guidance. Tell the agent in the system prompt to prefer the knowledge base for specific topic areas:Related pages
- Knowledge Base Overview — understand sources, training status, and limits
- Add Sources — add domains, URLs, and files to a knowledge base
- AI Agent block — attach a knowledge base to a WhatsApp bot node