# Knowledge base AI

<figure><img src="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2Fa0fWVZiyef6W0wcXv2qa%2FScreenshot%202024-08-20%20at%2013.19.08.png?alt=media&#x26;token=b93e99b2-75e9-47d9-b417-6c50bb4c5456" alt=""><figcaption></figcaption></figure>

A knowledge base is a store of information or data that is available to draw on. It can be constituted of different pieces of content (e.g. URLs, files).&#x20;

It goes in two steps:

1. First, you [add the content](https://docs.chatlayer.ai/navigation/knowledge-base-ai/add-content-to-your-kbai) that your bot will scrape to retrieve the answer to the customer's question.&#x20;
2. Second, you [build a flow](https://docs.chatlayer.ai/navigation/knowledge-base-ai/build-your-kbai-flow) to display that answer.&#x20;

By using the Chatlayer Knowledge base AI's generative AI technology, your bot will be able to answer to questions based on your content and in context.

<figure><img src="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2F08j6MoLjbJmlYBZxjSpg%2FScreenshot%202024-08-20%20at%2014.01.35.png?alt=media&#x26;token=8dba5b34-1bbc-4afd-bfe1-adb221948158" alt="" width="329"><figcaption><p>Example of an FAQ flow using KBAI.</p></figcaption></figure>

{% hint style="warning" %}
You can use Knowledge base AI for free if you ask it under 50 questions per month. If you would like to use more than that, please [contact us](https://docs.chatlayer.ai/support/get-in-touch).
{% endhint %}

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>KBAI template bot</strong></td><td>Make your KBAI flow with a ready-made bot.</td><td></td><td><a href="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FfiiE5haHAEsXAwCnnngD%2FScreenshot%202024-08-20%20at%2011.42.47.png?alt=media&#x26;token=fdaf386d-847d-4642-bb20-639529c86a6a">Screenshot 2024-08-20 at 11.42.47.png</a></td><td><a href="../../start-quickly/bot-templates#knowledge-base-ai">#knowledge-base-ai</a></td></tr><tr><td><strong>Create your KBAI flow</strong></td><td>A step-by-step guide on how to make your FAQ flow using KBAI.</td><td></td><td><a href="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FxaKq6gk58YB79Xs1p9x7%2FScreenshot%202024-08-20%20at%2011.50.58.png?alt=media&#x26;token=26ea8f31-952a-46d3-bb1c-9c22fcb331b5">Screenshot 2024-08-20 at 11.50.58.png</a></td><td><a href="knowledge-base-ai/build-your-kbai-flow">build-your-kbai-flow</a></td></tr><tr><td><strong>Use tags to limit your content</strong></td><td>Tell your bot where to look for an answer.</td><td></td><td><a href="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2F7AaiOywoe8QFT2uTsCSE%2FScreenshot%202024-08-20%20at%2011.51.35.png?alt=media&#x26;token=1233ccf5-9d41-46f3-b1db-2862315c104f">Screenshot 2024-08-20 at 11.51.35.png</a></td><td><a href="knowledge-base-ai/use-tags-to-limit-your-kbai-content">use-tags-to-limit-your-kbai-content</a></td></tr><tr><td><strong>Manage handover</strong></td><td>Tips on how to manage human handover using KBAI.</td><td></td><td><a href="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FEKPtWXrZSRaWdmzXuHLE%2FScreenshot%202024-08-20%20at%2011.52.22.png?alt=media&#x26;token=8f9f9db7-b3d9-4961-9bd8-04d0bf5dc497">Screenshot 2024-08-20 at 11.52.22.png</a></td><td><a href="knowledge-base-ai/manage-handover-where-kbai-is-unsatisfactory">manage-handover-where-kbai-is-unsatisfactory</a></td></tr><tr><td><strong>Analytics</strong></td><td>Track your KBAI performance.</td><td></td><td><a href="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2Fe2gDhwbWvOBsGkxw9YGk%2FScreenshot%202024-08-20%20at%2011.53.36.png?alt=media&#x26;token=1efc61fd-b5ea-4b95-a4c3-8d41f632f635">Screenshot 2024-08-20 at 11.53.36.png</a></td><td><a href="../analytics/conversations#knowledge-base-ai">#knowledge-base-ai</a></td></tr><tr><td><strong>Display your KBAI source URL in a button</strong></td><td>Display a "Read more" button.</td><td></td><td><a href="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FnrJZhRYmxnfippUqMq1u%2FScreenshot%202024-08-20%20at%2015.38.41.png?alt=media&#x26;token=bc3b09d3-9bfe-45ad-9bf1-48aa10739e6a">Screenshot 2024-08-20 at 15.38.41.png</a></td><td><a href="knowledge-base-ai/use-your-kbai-source-url-in-a-button">use-your-kbai-source-url-in-a-button</a></td></tr></tbody></table>

<details>

<summary>⭐️ How to make your KBAI non-generative</summary>

Setting up a non-generative knowledge base AI means that:

* your bot will not use any external LLM providers to generate answers
* you will only be able to give .csv files in a specific format as KBAI content
* your bot will be able to understand multiple sentences from your users (i.e. natural language understanding from the AI engine is taking place)
* but your bot will answer only the sentence that you defined as an answer (i.e. the bot answers are **not** generated)

To make your bot non-generative:

1. Go to your **Settings** tab.
2. Under **Generative AI**, turn off the **Turn on generative AI** features toggle.

![](https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FC8HkZjxCVgX5bEPphY8T%2FScreenshot%202024-08-20%20at%2013.29.11.png?alt=media\&token=a32c271b-3a34-4f42-8c60-8f415fc71698)

3. Click **Save**.

</details>

## Build a powerful, hybrid bot

Bots can become really powerful if you use a mix of[ intents ](https://docs.chatlayer.ai/navigation/natural-language-processing-nlp/intents)(answers designed by your team) and knowledge base (AI-driven answers). In this sense, your bot will be hybrid because it uses answers generated both by humans and machine.&#x20;

* If you connect your **Knowledge base AI** Action block to your **Not Understood** block and add no other content to your bot, all questions from users will be answered directly by your knowledge base AI.
* If you have other intents in your bot, the intents will be triggered whenever there is a match with the expression from a user. Only when something is said by the user that isn't a match with any intent, the **Not Understood** block and thus knowledge base AI will be triggered. Get more inspiration on in our [handover with KBAI article](https://docs.chatlayer.ai/navigation/knowledge-base-ai/manage-handover-where-kbai-is-unsatisfactory).
