It can also hold files: price lists, menus, manuals and policies that
are too long for those fields. The agent searches them during a call.
An agent uses one knowledge base, set with
knowledge_base_id. Several agents
can share the same one. The agent’s mascot answers from it too, on
the share link and the website widget.
The console does all of this under Knowledge, at
voice.wixzel.com/knowledge.
Write one by hand
Draft one from a website
POST /v1/knowledge-bases/import reads a website, its home page and up to three
pages it links to, and answers with a draft. Nothing is saved. Check the
draft, fix anything that is wrong, then create it with the same fields:
source_url along when you create it, so the console can show where it
came from and read the site again later.
Importing takes 10 to 60 seconds and is not charged. Each account can import 5
websites, then one a minute. A website that cannot be reached answers 422 website_unreadable; one with nothing to learn from answers 422 nothing_to_learn.
Draft one from a document
POST /v1/knowledge-bases/import-file does the same for one document: PDF,
DOCX, TXT, MD, CSV or HTML, up to 10 MB. Upload it as multipart file, or send
JSON { "url": "..." } to fetch it. Nothing is saved, and the answer is a
draft like the one above, with source_url null.
Files
Add documents to a knowledge base, and every agent using it can search them during calls. The agent does not read them in full on every reply: when a caller asks something the three fields do not cover, it calls its built-insearch_knowledge tool, gets the few passages that match best, and answers
from those.
processing. Reading it takes a few seconds, then it is
ready, with its pages and the number of passages (chunks) the agent can
search. A file that cannot be read is failed, with the reason in error.
- PDF, DOCX, TXT, MD, CSV and HTML, up to 10 MB each, 20 files per knowledge base.
- Scanned PDFs, with no text in them, are read as images.
- Only the text is kept, cut into passages. The file itself is not stored, so there is nothing to download again.
- Deleting the knowledge base deletes its files.
tool_calls of type knowledge, with the
question the agent asked.
Give it to an agent
"knowledge_base_id": null to take it away again. Deleting a knowledge
base removes it from every agent that used it.
Agents made from a website
POST /v1/agents/generate with a website_url makes an agent and reads the
site in the background. The agent gets a knowledge base drafted from the site,
saved straight away. Edit it afterwards like any other.
POST /v1/agents/{id}/mascot/generate and a website_url, keeps the agent’s
knowledge base as it is: the website only sets the look. Send
"refresh_knowledge": true to rewrite the knowledge base from the website
instead. That also changes what the agent says on phone calls. If the agent has
no knowledge base, one is made from the website and given to it. See
Mascots.

