#Knowledge bases
A knowledge base holds entries, and an entry is Markdown your coding agent writes through the Vatio MCP. Vatio does not read websites: if the answer lives on a page, put what the agent needs in an entry.
| MCP tool | What it does |
|---|---|
write_knowledge_entry | Writes one entry: base, name, the Markdown as content; the same name replaces it. A base that does not exist yet is created and added to the agent's knowledge |
read_knowledge | With nothing, every base and its entries, and whether each is indexed yet. With base and name, one entry's Markdown, exactly as Vatio holds it. With history: true, that entry's versions, newest first; with version, the text of one of them |
delete_knowledge_entry | Removes one entry, or with whole_base: true a whole base |
A write or a delete reaches your team at once and everyone once the tests
that pass today pass on it, like every change to the agent
(Versions). Use one base per set of entries you want kept
apart. In the inbox, the owner, developers and the team write the same
entries on the Knowledge page. The team (supervisor) keeps all of it:
creating a base, writing, reading and deleting entries, and deleting a base.
If the agent does not exist yet, connect the MCP, run npx @vatio-ai/skills in your app's project, then /vatio in Claude Code. It reads the docs, FAQs and policies it finds in the project, proposes what becomes knowledge and asks you what the code does not answer. To add a topic later, ask your coding agent in plain words, for example: "Add a knowledge entry about shipping: delivery times, costs and the order cut-off. Ask me for anything you can't find in the project."
The first write to a base adds it to the agent's knowledge. Give the agent knowledge_lookup, and the line that tells it when to search, with update_agent:
{ "workspace": "acme", "instructions": "Search knowledge_lookup before answering questions about Acme's policies.\nIf the results do not answer the question, say so.", "tools": ["knowledge_lookup"], "knowledge": ["docs"]}knowledge replaces the whole list. A base named there must already exist —
a misspelled name is refused rather than quietly becoming an empty base.
Removing a reference does not delete its content.
#Knowledge, instructions or a tool
An answer can come from three places. Choose by how fast the fact changes.
| Put it in | When | Example |
|---|---|---|
instructions | Rules, the order of steps, what never to say, which tool does which job | "Never quote a shipping cost that is not in the knowledge" |
| Knowledge | Facts that change slowly and take paragraphs to explain | Return policy, delivery zones, brewing guides |
| A tool | Data that can change by the hour, or belongs to one person | Stock, today's price, free slots, an order's status |
If the answer could be wrong by this afternoon, it comes from a tool that calls your API. Knowledge is not a cache of your catalog. Long facts kept out of the prompt also keep the prompt short, so rules do not get buried.
#How retrieval works
- A base holds entries, and the agent lists the bases it reads in its
knowledge. - An entry's title comes from its
# heading. Each##heading starts a section that is searched on its own. - The agent searches with the built-in
knowledge_lookuptool, enabled in itstools. It receives the sections that match the question, not the whole entry. - When nothing matches, the tool says so, and the instructions decide what the agent does next. Without a line such as "if the results do not answer, say so", a model is tempted to fill the gap.
- An entry can be searched once its sections are embedded.
read_knowledgesays which are ready. - Your team's version answers from an entry as soon as it is written; everyone else's once the change reaches them.
A base the agent cannot reach needs both the base in the agent's knowledge and knowledge_lookup in its tools.
#Entries
write_knowledge_entry puts Markdown under a name in a base, creating the
entry or replacing what is there:
{ "workspace": "acme", "base": "docs", "name": "refunds", "content": "# Refunds\n\n## How long a refund takes\nRefunds reach the card 5 to 10 business days after we receive the item."}name is lowercase letters, digits, - or _; left out, it comes from the
title. The entry's title comes from its own # heading unless title says
otherwise. Headings divide an entry into searchable sections; write each one
so it can answer a question on its own. To change an entry, read it with
read_knowledge (base and name), edit the Markdown and write it whole again.
Use read_knowledge with no arguments to check which entries are ready to answer from.
Indexing is asynchronous: an entry shows as ready once its sections have been
embedded. Test retrieval in a conversation afterwards.
#Write entries that answer on their own
A section that leans on another one answers badly, because the agent gets sections, not the entry in order. This entry reads fine top to bottom and fails as search results:
# Shipping
We ship nationwide. Details below.
## More infoSame as above, but longer for Alaska and Hawaii.Free over the amount we mentioned.This one answers from any section:
# Shipping
## Delivery timesOrders ship from Portland. Delivery takes 2-4 business days to thecontiguous US and 5-8 business days to Alaska and Hawaii.
## Shipping costFree on orders over $60. Below that, $6.50 to the contiguous US and$14 to Alaska and Hawaii.
## Order cut-offOrders paid before 1 p.m. Pacific on a business day leave the same day.- One entry per topic. Make every
##heading a question a customer asks, with the whole answer under it. - No "see above", "as mentioned" or "details below".
- Write out numbers, conditions and exceptions.
- Use the customer's words: "Delivery times", not "Fulfillment SLA".
- Never put a credential in knowledge.
#Delete
delete_knowledge_entry deletes one entry: from your team's version at
once, and from everyone's once the tests that pass today pass without it.
With whole_base: true and no name it deletes the whole base and every
entry in it, and the agent stops reading it; that cannot be undone. In the
inbox, Delete base on the base's page does the same. A base
created anywhere, the MCP or the inbox, is added to the agent's knowledge
at once, the same way.
#The business writes it on WhatsApp
With knowledge_write, the business teaches its agent by talking to it: what
it says in its own WhatsApp conversation becomes an entry, and
knowledge_lookup finds it in every conversation after, with every contact.
{ "workspace": "acme", "instructions": "Search knowledge_lookup before saying you don't know. When the business tells you something any customer may ask again, write it with knowledge_write.", "tools": ["knowledge_lookup", "knowledge_write"], "knowledge": ["docs"]}- Only the team. The tool is for the
supervisorrole and up: it is offered in a WhatsApp conversation with someone on the team, a developer or the owner who verified their number on their account (Access) and nowhere else, so a customer cannot write what the agent tells the next one. Called from anywhere else it is refused. - One entry per topic, found by its title. Writing a title that exists
replaces that entry;
remove: truedeletes it. Each write is a version in the entry's history, from "the agent", so a bad one is undone like any other. - Who gets it. In a conversation on your own WhatsApp number, with the
version everyone has, the entry reaches everyone at once, the way a
supervisor's answer does. In one of your team's conversations with the
newest version (Vatio's shared number), it lands on that version and
reaches everyone with it, once the tests pass. With several bases in its
knowledge, the agent names one. - Entries, not a cache. Its instructions keep it from writing what your other tools answer (stock, prices, orders) or what matters to one customer.
This is knowledge, the business's own word for everyone. What the agent learns about one person is memory, kept on that contact.
A question the agent cannot answer can go to the team the same way: see Ask the team, keep the answer.
#Versions
Every change to an entry is kept as a numbered version of it, with who made it and from where. On the inbox's Knowledge page, the owner, developers and the team write and delete entries on the newest version, and the owner and developers create bases. A member with the old read-only viewer role reads the entries everyone's version answers from, and their versions. A change made there goes through the tests like any other. A wrong entry can also be fixed by reporting the reply that used it, which your coding agent fixes and tests, or directly through the MCP.
A write always lands on the newest version and goes out with it, like any change to the agent (Deployments):
write_knowledge_entry(or the inbox's Knowledge page) writes the entry; your team's version answers with it at once.- Until everyone has it,
get_statusshows the changetesting(orheld, when a test failed on it). - Once the tests that pass today pass on it, everyone's version answers from it too, together with whatever else changed in the agent.
When the version everyone has changed the same entry meanwhile (a supervisor teaching the agent on WhatsApp, say), the later of the two writes stays. Nothing is refused, and there are no conflicts to resolve.
#History
The inbox's Knowledge page lists every version of an entry that reached
everyone, newest first, and shows what changed between versions.
read_knowledge with history: true lists an entry's versions (who wrote
each, from where, and when) and, with version, reads one:
{ "workspace": "acme", "base": "docs", "name": "refunds", "version": 3 }Going back is writing the old text again, which becomes the newest version:
with Edit on the entry in the inbox, or write_knowledge_entry.
#Test a change
write_knowledge_entry: your team has it at once.chat_with_agentwith "How long does shipping take to Denver?": the reply lists the knowledge lookup the agent made and what came back.run_tests, thenget_test_results: replays every reported reply and test on the newest version.get_status: everyone has it once the tests that pass today pass on it.
If the answer is missing, check read_knowledge: an entry still indexing cannot be found yet. In the inbox, each reply in one of your team's conversations (marked Team in Conversations) shows the knowledge it read.
A write that breaks a reported reply or a test that passes today is held: your team keeps it, and everyone else keeps the entries they had until another change fixes it, the test is removed, or a run of the tests passes. A workspace with no tests gets every write at once. See When a test holds a change.
#Example
Lupine Tea sells loose-leaf tea through its web store, with the agent in the store's chat. Its shop base holds four entries: shipping, returns, brewing and storage. Prices and stock are not in it, because they change every day: a check_stock tool reads them from the store's API.
Its agent's instructions, with tools ["check_stock", "knowledge_lookup"] and knowledge ["shop"]:
Shipping, returns, brewing and storage: search knowledge_lookupfirst. If it does not answer, say so and offer to pass the questionto the team. Never quote a shipping cost or time that is not in theknowledge.
Stock and prices: call check_stock. Never state a stock level or aprice that check_stock did not return.In December the carrier announces new rates. The owner asks their coding agent to update the cost section of shipping. The team has the new rates at once and tries them with chat_with_agent; a few minutes later the tests pass on the change, and every customer gets the new rates.
#Frequently asked questions
#Can the agent learn from my website?
No. Vatio does not read websites, and the agent cannot follow a link to read a page. Write what the agent needs into an entry.
#Can non-developers change the knowledge base?
Yes. Everyone on the team (supervisor) writes and deletes entries in the inbox's Knowledge page and through the MCP, like a developer, and teaches the agent from their own WhatsApp when it has knowledge_write. When a reply gets a fact wrong, they can also report it with what it should have said; the coding agent fixes the entry, which is tested before everyone gets it.
#What happens if someone changes an entry I also changed?
The later write stays. Your change goes out with the newest version once its tests pass, unless someone wrote the same entry on the version everyone has after you did, such as a supervisor teaching the agent on WhatsApp: then theirs stays. Nothing is refused. See Versions.
#How do I undo a knowledge change?
Write the old text again: the entry's history (read_knowledge with history: true, or Versions on the entry in the inbox) has it. That write is a new version, and it goes out like any other change.