Skip to main content

Knowledge base

A knowledge base is a powerful tool that allows you to curate and manage documents from multiple sources, such as web pages, file uploads, and external knowledge bases. Use knowledge bases to enhance your AI agent, ensuring it delivers accurate and reliable responses to user queries.

note

A single knowledge base can be used by multiple AI agents.

How do knowledge bases work?​

When a user sends a message, the AI agent searches the connected knowledge base. It finds the fragments that are most relevant to the message, and it writes the reply from these fragments and from its guidelines. The search option of the AI agent sets when the search runs:

  • Search on every message is the default. Moveo searches the knowledge base before each reply.
  • Search only when needed: the AI agent calls the search_knowledge_base tool only when a question needs your documents. Voice calls always use this option.

The AI agent uses only published content. Draft content is available in the test chat. See Publish.

Knowledge base and guidelines​

When a document and the guidelines of the AI agent say different things, the AI agent follows the guidelines. The reply prompt gives priority to the guidelines and to the session information, and it uses the documents as sources. Keep facts in the knowledge base, and keep behavior and tone in the guidelines. If a fact in a document is wrong, fix the document. Do not add a guideline that contradicts it.

Creating a knowledge base​

  1. Navigate to Knowledge in the top navigation bar.
  2. Select Create.
  3. Enter the Knowledge base title and select its Language. You cannot change the language later.
  4. In What would you like to start with?, select FAQ, Documents, Webpages, or External sources, and add the first content.

Your new knowledge base now appears in the Knowledge base list.

The Create knowledge base dialog with a title, the language, and the first type of content.The Create knowledge base dialog with a title, the language, and the first type of content.

Search a knowledge base​

To test what the AI agent finds for a query, search the knowledge base directly.

Open the knowledge base and use Test. See Test.

Connecting a knowledge base​

Connect a knowledge base to your AI agent using one of the following methods:

From knowledge base details​

The Details panel of a knowledge base lists the AI agents that use it.

  1. Open the knowledge base.
  2. If you do not see the Details panel, select the info icon next to Test.
  3. Next to Connected AI Agents, select +, then select the AI agents.
The Details panel of a knowledge base with two connected AI agents and the button to connect more.The Details panel of a knowledge base with two connected AI agents and the button to connect more.

AI agent knowledge​

It is also possible to connect a knowledge base to an AI agent from the AI agent's Guidelines tab. To do this, see Knowledge base.

Fragments​

Fragments are small chunks of text, typically around 400 words, extracted from the provided content. These segments enable the AI to efficiently analyze and interact with the information.

Each fragment consists of approximately 400 words. For reference, 2,500 fragments correspond to roughly 250–300 pages of content.

Adding live instructions​

Enhance AI agent responses by dynamically providing real-time user data through the live_instructions context variable. This allows the AI to incorporate live details, such as transaction history, user preferences, or other relevant information.

One way to achieve this is by creating a webhook that fetches the necessary user data from your system and formats it into live instructions. You can then connect this webhook to your AI agent. See this guide for more information.

Guidelines and best practices​

For optimal performance, follow our best practices guide.