## Create your knowledge base bot
Knowledge Base (KB) is an AI pwered tool that auto responds to frequently asked questions (FAQs) with precision by extracting information directly from the provided website URLs or uploaded documents.
When you input a website URL into the Knowledge Base, the bot extracts and utilizes the information from that URL or uploaded documents. This functionality enables the bot to generate automated, contextually appropriate responses.

Answer 4Ws - What, why, when, and where.
**Key features of KB**:
- Auto responds
- Summarises answers by referering multiple pages at a time
- Smart answering
- Excluding
:::note
* You need to configure knowledge base bot in Sandbox or Development environment.
* The free plan does not support document uploads. You need to upgrade your plan to upload files in Studio Knowledge Base and to view them on the platform.
* Knowledge Base supports the Bahasa language.
* Increase the **Document search threshold** value to improve the accuracy of the links generated. For more information, click [here](https://docs.yellow.ai/docs/platform_concepts/studio/tools#document-search-settings).
* When building your knowledge base bot, avoid adding multiple intents and flows that could potentially impact the confidence of the bot's responses.
:::
**Key Features of Knowledge base:**
* **Efficiency**: Achieves efficiency through automation, reducing manual bot creation efforts and ensuring real-time adaptation to website changes.
* **Customization**: Allows bots to be customized according to the unique structure and content of each website.
* **Scalability**: Easily scalable for applications ranging from small business websites to large-scale e-commerce platforms.
#### **Use cases**
* **Automated website FAQs**: Knowledge base can be utilized to create a bot that automatically responds to FAQs by extracting information directly from the website. This reduces the burden on customer support teams and ensures quick and accurate responses.
* **Product information retrieval**: Knowledge base allows the automated bot to retrieve the latest product details, availability, and pricing information directly from the website. This ensures that customers receive accurate and real-time information about the products they are interested in.
* **Dynamic content updates**: By integrating Knowledge base, the bot can be configured to pull the most recent content updates from the website. This ensures that users interacting with the bot receive the latest information without manual content management.
* **Interactive learning platforms**: Knowledge base can be employed to create a bot that guides learners through specific topics based on the content available on the website. The bot serves as an interactive learning assistant, responding to queries and providing information within the scope of the website's content.
#### KnowledgeBase vs. Doc Cog
Knowledge base is powered by Yellow.ai's exclusive Studio module (not GPT), it uses functionality similar to Document Cognition (Doc Cog) to support Knowledge base responses.
Aspect | Knowledge base | Doc Cog |
----|---|---|
Functionality | Provides automated responses by extracting information from website URLs or uploaded documents. | Retrieves precise information from its source when a user requests it.
Response to User Queries | Provides answers to queries and presents condensed summaries of information, enhancing user experience with additional context. |Retrieves precise information without providing additional context.
Purpose | Enhances user experience by providing quick, accurate, and contextually relevant information | Focused on delivering precise, direct information.
The following flowchart illustrates how the knowledge base bot works:

## Create knowledge base bot
To create knowledge base bot, follow these steps:
1. Go to **Studio** > **Knowledge base**.

2. Click **+Manage URL**.

3. Add your website URL and click **Save**.
<img src="https://imgur.com/Lip8YsN.png" alt="drawing" width="50%"/>
4. You can set up the welcome [flow](https://docs.yellow.ai/docs/platform_concepts/studio/build/Flows/journeys) or [document search](https://docs.yellow.ai/docs/platform_concepts/studio/build/nodes/action-nodes#14-document-search) node to organize the conversation structure. The flow may look like this:

5. Once the flow is created, you can preview the bot and start [testing](https://docs.yellow.ai/docs/platform_concepts/studio/build/Flows/test-flows) the flow. After testing the bot, you can [publish](https://docs.yellow.ai/docs/platform_concepts/studio/test-and-publish-bot/modes) it to Production or Live environment and [deploy](https://docs.yellow.ai/docs/platform_concepts/channelConfiguration/web-widget#deploy-chat-widget) it to your website.

How to integrate or add an URL to the KB
How to exclude specific URLs drom KB