# Knowledge Bots API

## 🇬🇧 English

- [Welcome](https://api.docs.blockbrain.ai/readme.md)
- [Quick Setup](https://api.docs.blockbrain.ai/getting-started/getting-started.md): Quick setup for the Blockbrain API
- [Create an API Key](https://api.docs.blockbrain.ai/getting-started/getting-started/api-keys.md): Setup credentials for authenticating with Blockbrain Knowledge Bots services.
- [Create a Knowledge Bot (by UI)](https://api.docs.blockbrain.ai/getting-started/getting-started/create-knowledge-bot.md): Setting up a Knowledge Bots through the Blockbrain UI
- [Create Knowledge Bot (by API)](https://api.docs.blockbrain.ai/getting-started/getting-started/create-knowledge-bot/create-knowledge-bot.md): Setting up a Knowledge Bots
- [Create a Dataroom](https://api.docs.blockbrain.ai/getting-started/getting-started/add-convo-to-bot.md): Create a dataroom and start working with your bot
- [Interact with Bot](https://api.docs.blockbrain.ai/getting-started/getting-started/interact-with-bot.md): Interacting with a bot inside a dataroom / conversation
- [Upload and Work with Files](https://api.docs.blockbrain.ai/getting-started/getting-started/upload-and-work-with-files.md): Upload a file to a data-room and work with it
- [Executing Library Prompts](https://api.docs.blockbrain.ai/getting-started/getting-started/executing-library-prompts.md): Working with the predefined prompts from the prompt library. (Agent Tasks)
- [Knowledge Management](https://api.docs.blockbrain.ai/getting-started/knowledge-management.md): Manage Knowledge using File Uploads
- [Create a Database](https://api.docs.blockbrain.ai/getting-started/knowledge-management/create-a-database.md): Databases are the heart of our Retrieval-Augmented Generation (RAG) system.
- [Create Folders](https://api.docs.blockbrain.ai/getting-started/knowledge-management/create-a-database/create-folders.md): Use Folders to organization by project, topic, or knowledge domain.
- [Upload Documents to DBs](https://api.docs.blockbrain.ai/getting-started/knowledge-management/upload-documents-to-dbs.md): Use Knowledgebases and Folders to upload your documents and files to.
- [Save & Contribute Insights](https://api.docs.blockbrain.ai/getting-started/knowledge-management/save-and-contribute-insights.md): Insights are a durable knowledge artifacts that was captured from a conversation.
- [Workflows](https://api.docs.blockbrain.ai/getting-started/workflows.md): Task Automation through Workflows
- [Create a Workflow (by UI)](https://api.docs.blockbrain.ai/getting-started/workflows/create-a-workflow-by-ui.md): Visually creating a workflow through Blockbrain is recommended.
- [Run a Workflow](https://api.docs.blockbrain.ai/getting-started/workflows/run-a-workflow.md): Run a pre-defined workflow using the API
- [Get a Workflow Results](https://api.docs.blockbrain.ai/getting-started/workflows/get-a-workflow-results.md): Retrieve the results of the workflow and it's steps
- [Save Workflow Results](https://api.docs.blockbrain.ai/getting-started/workflows/save-workflow-results.md): Persist the workflow output for further tasks.
- [Cortex](https://api.docs.blockbrain.ai/concepts/cortex.md): All about the core element of the Blockbrain API, the Blockbrain Cortex.
- [Knowledge Bots](https://api.docs.blockbrain.ai/concepts/knowledge-bots.md): All about Knowledge Bots, the core feature of Blockbrain's Knowledge Bots Platform
- [Prompt Library](https://api.docs.blockbrain.ai/concepts/knowledge-bots/prompts.md): What are our Prompts, and how can you manage it using API.
- [Data Rooms](https://api.docs.blockbrain.ai/concepts/data-room.md): What is a dataroom, and how can you manage it using API.
- [Streaming](https://api.docs.blockbrain.ai/concepts/streaming.md): How to work with our Server-Sent Events (SSE)
- [Document Databases](https://api.docs.blockbrain.ai/concepts/knowledge-base.md): Databases are the heart of our Retrieval-Augmented Generation (RAG) system.
- [Insight](https://api.docs.blockbrain.ai/concepts/insight.md): Insights are a durable knowledge artifacts that was captured from a conversation.
- [Contributing Knowledge](https://api.docs.blockbrain.ai/concepts/insight/contributing-knowledge.md): Contribute your work to a databases, enriching your organization's knowledge
- [Workflows](https://api.docs.blockbrain.ai/concepts/workflows.md): Workflows orchestrate multi-step operations across agents, tools, and knowledge assets to deliver repeatable, governed outcomes
- [Email Classification](https://api.docs.blockbrain.ai/integration-best-practices/email-classification.md): The purpose of this flow is to provide a step-by-step guide to integrating the Blockbrain API for automated email classification.
- [Sales Opportunities](https://api.docs.blockbrain.ai/integration-best-practices/sales-opportunities.md): The purpose of this flow is to provide a step by step guide to integrating the Blockbrain API for automated sales signal detection and opportunity generation.
- [Tender Analysis](https://api.docs.blockbrain.ai/integration-best-practices/tender-analysis.md): The purpose of this flow is to provide a step‑by‑step guide to integrating the Blockbrain API for automated tender (TED) ingestion, lot evaluation and insight creation.
- [Changelog](https://api.docs.blockbrain.ai/changelog/changelog.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
This site has an agentic ask interface you may use to query the documentation dynamically by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://api.docs.blockbrain.ai/index.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.
