How To Add A Knowledge Base To Your Vapi Agent (5 Tips For A Smarter AI)
β
A knowledge base can significantly enhance the performance and accuracy of your AI assistant, making it more effective in responding to inquiries and handling complex tasks. This guide will walk you through what a knowledge base is, how to add one in Vapi, and tips to optimise it for maximum efficiency.
β
What Is a Knowledge Base?
A knowledge base is a collection of documents that your AI can reference to provide better answers and perform tasks more effectively. Think of it as the AI's "brain" or a library it can consult.
β
Key Benefits of a Knowledge Base:
- π― Improved Accuracy: Access to detailed information allows the AI to deliver precise answers to user queries.
- β‘οΈ Enhanced Capabilities: The AI can tackle more complex tasks by drawing from relevant background information.
β
How to Add a Knowledge Base in Vapi
Step 1: Upload Documents
- Navigate to the Files section in your Vapi dashboard under the Platform menu.
- Click Choose File, select the document (PDF, text file, or Word document), and upload it.
- You can upload documents that contain frequently asked questions, troubleshooting guides, or any other relevant content.
Step 2: Assign the Knowledge Base to Your Assistant
- Go to your Assistant in Vapi and select the one you want to enhance.
- Under the model configuration, choose the files you just uploaded.
- The assistant will now have access to these documents to improve its responses.
β
What to Include in Your Knowledge Base
π‘ Focus on adding content that your customers or users frequently ask about. This will allow your AI to provide the most valuable and specific answers.
βExamples:
- Customer Support AI: FAQs, troubleshooting guides, refund and return policies.
- Sales AI: Pricing details, discount information, sales scripts, case studies, and testimonials.
β
5 Tips for an Effective Knowledge Base
β
1. Structure Your Knowledge Base for Performance
A KB can include multiple documents, but itβs better to focus on quality and relevance rather than uploading everything you have.
- Use multiple documents for different topics (e.g., company information, pricing, FAQs).
- Keep the content concise and relevant to avoid overloading the AI.
- Splitting content ensures the AI can quickly access and extract the most appropriate information.
β
2. Simplify the Information
- Use headers, bullet points, and lists for clarity.
- This formatting helps the AI identify patterns and extract relevant data efficiently.
- Avoid overly detailed or dense information, as it may slow down response times.
β
3. Optimise Prompts for Knowledge Base Usage
Provide clear instructions on how the AI should use the knowledge base:
- What to include in the prompt:
- Define the role of the KD and list the available documents (e.g., "Company Overview," "Pricing Details").
- Instruct the AI to use the appropriate document to answer queries concisely.
- Define a fallback scenario: If the knowledge base lacks an answer, the AI should politely inform the user and avoid guessing.
β‘οΈ Example:
#Knowledge base
You have access to the following documents in the knowledge base:
- Company overview
- product details and prices
- faqs
- delivery and returns
Use the appropriate document to answer customer questions accurately and effectively. Provide responses in a clear and concise format, breaking down steps when necessary.
If the Knowledge base does not contain an answer, politely inform the user that you dont have access to that information at the moment. Always prioritise the most relevant KB entries and avoid guessing.
β
4. Regularly Update Your Knowledge Base
Its important to remember that the documents you are uploading are static and will need to be updated regularly.
π‘ Tip: Set a calendar reminder to review and update your KB every month, so it stays fresh and relevant.
β
5. Use Call Logs to Identify Gaps
π‘ Tip: Review call logs and transcripts in Vapi to identify questions asked by your customers, that the assistant couldn't answer.
Those insights offer great places to expand your KB content. Update the knowledge base to address these gaps, improving the AI's effectiveness over time.
β
Why Regular Updates Matter
AI assistants rely on accurate, current information to provide reliable answers. Regular updates to your knowledge base ensure your AI always has the latest and most relevant data to support users effectively.
By following these steps and tips, you can create a powerful, optimised knowledge base for your AI assistant in Vapi, enhancing its ability to serve your customers and streamline your operations.
β