Teach an AI agent with a knowledge base
Give an AI agent your FAQs, prices and policies so it answers from your own content instead of guessing.
Each AI agent has its own knowledge base: the documents it reads before replying. Add your FAQs, price lists, delivery rules and policies here, and the agent answers from them.
An agent's knowledge base with documents, chunks and retrieval hits
Before you begin
- Create the agent first. See AI agents.
- You need the Owner or Admin role.
- Prepare plain text. Files must be
.txtor.md. Copy text out of PDFs or Word files and paste it in.
Where to find it
Go to Grow → AI Agents, open an agent and click Knowledge base at the top.
Paste text
- Click Add text.
- Enter a Document name, such as "Delivery charges · 2026".
- Paste your text under Content. Leave blank lines between paragraphs; they are used as break points.
- Click Add to knowledge base.
Upload files
- Click Upload files.
- Select one or more
.txtor.mdfiles. Each file can be up to 5 MB. - Wait while the button shows the upload progress.
Each document is split into chunks and indexed. Its Status shows Processing, then Indexed. If it shows Failed, click Re-chunk to try again.
Check what the agent will find
- Click Test retrieval.
- Type a question a customer would ask, for example "What is the delivery charge to Lahore?"
- Click Run and read the sections returned.
If nothing comes back, add a document that answers it, or use the words your customers use.
You can also test from the agent page. The Test playground shows Knowledge used for each test reply.
Choose how the agent reads it
On the agent page, under Memory and knowledge, set Knowledge base use:
- Search — the most relevant sections for each message: best for large catalogues and long FAQs.
- Whole manual — every reply reads all of it: best for a rulebook of steps, up to about 80,000 characters, so no rule is missed.
Keep it up to date
- To change a document, delete it and add the new version.
- Click Re-chunk (the circular arrows icon) to index a document again.
- Click Delete (the bin icon) and confirm to remove a document. This cannot be undone.
- The table shows Chunks and Hits for each document, so you can see which ones the agent really uses.
What happens next
Changes apply to the next reply. Adding documents costs nothing. With Whole manual, every reply sends the whole text to the AI model, so each reply uses more tokens on your AI provider's bill. Search sends only the matching sections.
Common questions
Can I upload a PDF or Word file? Not yet. Save it as text, or paste the text with Add text.
Why did the agent ignore my price list? Run Test retrieval with the customer's words. If the price section does not come back, rename headings to match how customers ask, or switch to Whole manual for a short rulebook.
Is the knowledge base shared between agents? No. Each agent has its own. Add the same document to each agent that needs it.
Does the agent see the knowledge base word for word? It sees the matching sections as written, so keep facts short and current.
Thank you. If you still need help, write to support@foxaf.com.