Section 2.2: Adding Knowledge to Your Agent β
Your chatbot worksβbut it's giving generic answers. Let's teach it about YOUR business by uploading your FAQ, policies, and product information!
Why Knowledge Matters β
Right now, your AI is like a friendly assistant who doesn't know anything about your company. It can have conversations, but it can't answer specific questions like:
- "What's our refund policy?"
- "Do we ship to Canada?"
- "What ingredients are in product X?"
The solution: Give your AI a knowledge baseβa collection of documents it can search before answering.
π‘ What You'll Learn
By the end of this section, you'll have:
- β Added a knowledge base to your chatbot
- β Uploaded your company documents
- β Connected knowledge to your AI
- β Tested responses with YOUR information
Step 1: Add a Knowledge Base Column β
First, we need a place to store your company information.
Here's how:
- Go back to your "Customer Conversations" table
- Click "+ Add Column"
- Choose "Knowledge Base" from the column types
- Look for it in the "Remember Things" category
- Set the Column Name to:
knowledge - Set the Column Label to: "Company Knowledge"
- Click "Add Column"
Add Knowledge Base Column
Store documents and information for your AI
Text
Store text, names, messages
Knowledge Base
Store searchable documents
Remember ThingsAbout Knowledge Base Columns
This column will store documents, FAQs, policies, and other information that your AI can search through. You'll be able to upload PDFs, text files, or add web pages.
What just happened? You created a special column that stores documents and text that your AI can search through. Think of it as your AI's reference library!
π‘ π‘ Think of It Like This
Your knowledge base is like giving your AI a filing cabinet full of information. When a customer asks a question, the AI can quickly flip through the files to find the right answer.
Step 2: Upload Your Information β
Now let's fill that knowledge base with your company information.
You have three options:
Option 1: Upload Documents (Easiest) β
Upload PDF files, Word documents, or text files:
- Click on the "Company Knowledge" column cell (in any rowβit's the same for all rows)
- Click "Upload Documents"
- Drag and drop your files or click to browse:
- FAQ documents
- Product guides
- Policy documents
- Support manuals
- Click "Upload"
Manage Knowledge Base
Upload documents, add web pages, or type information
Drag and drop files here
or click to browse
Supported: PDF, Word (.docx), Text (.txt), Markdown (.md)
Uploaded Documents (3)
FAQ_2024.pdf
245 KB
Return_Policy.docx
89 KB
Product_Guide.pdf
1.2 MB
π‘ Pro Tip
Start with your FAQ document! It's usually the best source for common customer questions and answers.
3 documents in knowledge base
Supported formats: PDF, Word (.docx), Text files (.txt), Markdown (.md)
Option 2: Add Web Pages β
Pull information directly from your website:
- Click "Add from URL"
- Paste the URL of your FAQ page, product page, or help center
- Click "Import"
- The system will extract the text content
Great for: Public-facing content on your website
Option 3: Type Directly β
For quick information that's not in a document:
- Click "Add Text Content"
- Type or paste your information
- Give it a title (e.g., "Return Policy")
- Click "Save"
Great for: Short answers, quick facts, internal notes
π‘ β¨ Pro Tip
Start with your FAQ! It's usually the best source of customer questions and answers. Upload it first, then add other documents as needed.
Step 3: Connect Knowledge to Your AI β
Now we need to tell your AI to search the knowledge base before answering.
Here's how:
- Click on the "AI Answer" column header
- Select "Edit Column"
- Scroll to the "Knowledge Search" section
- Toggle "Search Knowledge Base" to ON
- Select "Company Knowledge" from the dropdown
- Set "Number of sources to use" to 3 (default is good)
- Update your AI instructions to:
You are a helpful customer service assistant.
Search the knowledge base for information before answering.
If you find relevant information, use it in your answer.
Always be clear and friendly.- Click "Save Configuration"
Configure AI Assistant with Knowledge
Set up knowledge search for accurate responses
AI will search your documents before answering
More sources = more context, but slower responses
The AI will search "Company Knowledge" and use the top 3 most relevant pieces of information to answer questions.
Ready with Knowledge Search! β¨
Your AI will now search your knowledge base before responding, giving accurate answers based on YOUR company information.
What just happened? Now, every time your AI sees a question:
- It searches your knowledge base for relevant information
- It reads the top 3 most relevant pieces of information
- It uses that information to craft an accurate answer
- It responds to the customer
Step 4: Test with Specific Questions β
Time to see the difference!
Here's how:
Click "+ Add Row" in your table
In the "Customer Question" column, type a question YOUR knowledge base can answer:
- If you uploaded an FAQ: "What's your return policy?"
- If you added product info: "What ingredients are in [product name]?"
- If you added shipping info: "Do you ship to [country]?"
Press Enter and watch!
Customer Conversations
With knowledge search enabled
| Customer Question | AI Answer | Status |
|---|---|---|
What's your return policy? | Our return policy allows returns within 30 days of purchase. Items must be in their original packaging and unused. To initiate a return, please contact our support team with your order number. Refunds are processed within 5-7 business days after we receive the returned item. π Sources used:
| Complete |
π Notice the Difference!
- βThe AI gave a specific answer based on YOUR return policy (30 days, original packaging, 5-7 day refund)
- βThe response cites which documents it used (Return_Policy.pdf, FAQ_2024.pdf)
- βNo generic answerβthis is accurate, company-specific information!
What you'll see:
- The AI searches your knowledge base
- It finds the relevant document/section
- It crafts an answer using YOUR information
- The response includes a reference to where it found the information
Try asking the same question without knowledge: Add a new column without knowledge search enabled and compare! You'll see the difference immediately.
π‘ π The Magic Moment
Your AI just answered a question using YOUR specific business information! It's no longer giving generic answersβit knows about your company!
Understanding Knowledge Search β
Let's break down what's happening behind the scenes:
The Flow:
- Customer asks: "What's your return policy?"
- AI searches knowledge base for: "return policy"
- AI finds relevant sections from your uploaded documents
- AI reads the top 3 most relevant sections
- AI crafts an answer based on what it found
- AI responds with accurate information
Why this is powerful:
- β Answers are always accurate (based on your docs)
- β Answers stay up-to-date (update docs, answers update)
- β AI cites sources (shows where it found the info)
- β No hallucinations (AI uses real information, not guesses)
Managing Your Knowledge Base β
Your knowledge base isn't staticβyou can update it anytime!
Adding More Documents β
- Click the "Company Knowledge" column cell
- Click "Manage Knowledge Base"
- Click "+ Add Document"
- Upload or paste new information
Updating Existing Documents β
- Go to "Manage Knowledge Base"
- Find the document you want to update
- Click "Edit" or "Replace"
- Upload the new version
- All future AI answers will use the updated information!
Removing Outdated Information β
- Go to "Manage Knowledge Base"
- Find the document to remove
- Click "Delete"
- Confirm removal
π‘ β οΈ Important
When you update or remove documents, future answers will reflect those changes. However, previous answers in existing rows won't automatically updateβonly new questions will use the new information.
Best Practices for Knowledge Bases β
1. Keep It Organized β
Name your documents clearly:
- β "Return Policy - Updated 2024"
- β "Product Catalog - Electronics"
- β "Document1.pdf"
- β "Untitled.docx"
2. Use Clear Language β
Your knowledge base documents should be:
- Clear and concise
- Well-formatted with headings
- Free of jargon or abbreviations
- Written for customer understanding
3. Keep It Updated β
Set a reminder to:
- Review knowledge base monthly
- Update when policies change
- Add new products/services immediately
- Remove discontinued items
4. Test New Content β
After uploading new documents:
- Ask test questions about the new information
- Verify AI finds and uses it correctly
- Adjust if needed
5. Don't Overload β
Start with:
- FAQ (most important!)
- Key policies (return, shipping, privacy)
- Top 5-10 products
Add more as needed. Too many documents can slow down searches.
Advanced Tips β
Multiple Knowledge Bases β
You can create multiple knowledge bases for different purposes:
- "Product Info" - Technical specifications, features
- "Policies" - Returns, shipping, terms of service
- "Support Guides" - Troubleshooting, how-tos
Configure your AI to search specific knowledge bases based on the question type!
Knowledge Base Priorities β
If your AI is giving answers from the wrong documents:
- Make sure document titles are descriptive
- Add a "priority" or "importance" tag to critical documents
- Remove or archive outdated documents
Source Attribution β
Enable "Show Sources" in your AI configuration to have the AI cite where it found information:
Example response:
"According to our Return Policy (updated Jan 2024), you can return items within 30 days of purchase. Returns must be in original packaging and unused."
Source: Return Policy - Section 2.1
What's Next? β
Your AI now has knowledge! But what if you want it to DO things, not just SAY things?
In the next section, you'll learn how to:
- Give your AI tools (search contacts, send emails, create tickets)
- Make your AI take actions based on conversations
- Build multi-step workflows
Continue to Section: Giving Your Agent Tools β
Quick Troubleshooting β
"My AI isn't using the knowledge base"
- Check that "Search Knowledge Base" is enabled in AI column settings
- Verify you selected the right knowledge base column
- Make sure documents are fully uploaded
"The AI says it can't find information"
- Check that your documents contain the information
- Try rephrasing the question
- Verify documents uploaded successfully
"The answer is from old information"
- Update the document in your knowledge base
- Test with a NEW row (old rows keep old answers)
"Knowledge search is slow"
- Too many documents? Consider splitting into multiple knowledge bases
- Very large documents? Break them into smaller sections
- Check your upload finished completely
π Congratulations! β
You just:
- β Added a knowledge base to your chatbot
- β Uploaded your company documents
- β Connected knowledge to your AI
- β Tested accurate, specific responses
Your AI agent is now significantly smarter! It knows about YOUR business and can answer questions accurately based on YOUR information.
This is huge! Most chatbots give generic, unhelpful answers. Yours now gives accurate, company-specific information automatically.
Ready to make your agent even more powerful? Let's give it tools in the next section!
Previous: Creating Your First Chatbot
Continue to Section: Giving Your Agent Tools β