# Sources

Unlock the full potential of your chatbot by integrating external sources such as websites and documents with an external LLM (Large Language Model) engine. This section guides you on how to effortlessly add sources to complement your chatbot's knowledge and capabilities.

Whether you want your chatbot to access real-time data, reference academic documents, or stay up-to-date with the latest news, our step-by-step instructions help you seamlessly connect these external resources to your chatbot. You'll be able to harness the vast knowledge of the LLM engine and make your chatbot an even more valuable asset to your users.

By the end of this guide, you will have a chatbot that not only understands user queries but can also provide accurate and up-to-date information from the web and various documents. Elevate your chatbot's capabilities with BotDistrikt and start delivering even more personalized and relevant responses.

To add a source:

1. Navigate to **Sources** on the left-hand navigation panel
2. Click **OpenAI** in "Link an LLM engine such as [OpenAI](https://flow.botdistrikt.com/bots/722/integrations/openai) to proceed."
3. The Dashboard navigates to **Integrations --> Artificial Intelligence --> OpenAI**
4. Add a valid OpenAI API and **Save.**

<figure><img src="/files/x4ZSTo3JuuJBHMglCA6e" alt=""><figcaption><p>Add OpenAI API key</p></figcaption></figure>

5. Ensure **Generate Embeddings for Text Responses** is toggled on.
6. Navigate (again) to **Sources** and the **Sources Dashboard** now includes the ability to add training websites/landing pages and document sources, specific to your bot.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.botdistrikt.com/features/sources.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
