Data Rooms

What is a dataroom, and how can you manage it using API.

Data Rooms are individual chat threads that you can create at the left side of the Knowledge Bot. This is where you start a conversation with the Knowledge Bot. It is a secure, organized workspace where users can centralize and manage project-specific knowledge.

Each room includes:

  • Chat thread: Start conversations, ask questions, or use the Prompt Library and Workflows to speed up your prompt needs.

  • Data: Upload or connect files, links, databases, and other types of data inside that room. So answers from AI stay focused on that topic.

  • Settings: Control what knowledge is connected, what AI models (LLMs) are used, and how the room behaves.

Managing Data Room

A Data Room / Conversation must be created and managed within an Active Knowledge Bot (See Bot Relationship).

Creating a Data Room

We support creating a data room directly from the _id of a pre-defined (workshop) knowledge bot or from the _id of an active (dashboard) knowledge bot.

In case an active knowledge bot replicating the workshop knowledge bot is not yet created, a new one will be created and attached to the API Key owner. If there's already one, this active knowledge bot will then be used to create the new data room. All created data rooms will be attached to an active knowledge bot regardless.

To create a new data room, use the following endpoint:

Add Convo To Bot

post

Creates a new active bot if it doesn't exist and adds a new dataroom / conversation to that active bot.

This endpoint accepts both bot_id of a pre-defined bot and an active bot. In the case of a pre-defined bot, an active bot linked to this pre-defined bot will be fetched or created, and then used to link with the new data room.

The new data room is attached to the active bot, regardless.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
bot_idstringRequired
Body
dataroomIdany ofOptional
stringOptional
or
nullOptional
convoNameany ofOptional
stringOptional
or
nullOptional
defaultLanguageany ofOptionalDefault: English
stringOptional
or
nullOptional
sessionIdany ofOptional
stringOptional
or
nullOptional
isDefaultConvoNameany ofOptionalDefault: true
booleanOptional
or
nullOptional
isCompanyGptBotany ofOptionalDefault: false
booleanOptional
or
nullOptional
lengthPresetany ofOptional
string ยท enumOptionalPossible values:
or
nullOptional
enableGenerateImageany ofOptionalDefault: false
booleanOptional
or
nullOptional
enableGenerateVideoany ofOptionalDefault: false
booleanOptional
or
nullOptional
enableWebSearchany ofOptional
booleanOptional
or
nullOptional
webSearchTypeany ofOptional
string ยท enumOptionalPossible values:
or
nullOptional
webSearchConfigany ofOptional
or
nullOptional
modelany ofOptional
string ยท enumOptionalPossible values:
or
string ยท enumOptionalPossible values:
or
nullOptional
imageModelany ofOptional
string ยท enumOptionalPossible values:
or
nullOptional
agentany ofOptional
stringOptional
or
nullOptional
customAgentIdany ofOptional
stringOptional
or
nullOptional
isTemporaryany ofOptionalDefault: false
booleanOptional
or
nullOptional
isDefaultGreetingany ofOptionalDefault: true
booleanOptional
or
nullOptional
isDefaultDataroomany ofOptionalDefault: true
booleanOptional
or
nullOptional
networkany ofOptional
stringOptional
or
nullOptional
networkCapabilitiesany ofOptional
string[]Optional
or
nullOptional
Responses
200

Successful Response

application/json
post
/cortex/active-bot/{bot_id}/convo

The response contains the dataRoomId (convo_id) of the data room, and activeBotId of the active knowledge bot, which is required to access and manage data rooms. To retrieve details of a Data Room, use the following endpoint.

Get Convo Detail

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
convo_idstringRequired
Query parameters
messageany ofOptional
stringOptional
or
nullOptional
session_idany ofOptional
stringOptional
or
nullOptional
Responses
200

Successful Response

application/json
get
/cortex/conversation/{convo_id}

Updating a Data Room

There are few aspects of a data room can be configured with a value, or leave as null to skip, see below table:

Parameter
Type
Description

name

string | null

The name of the data room

knowledgeBase

string[] | null

List of databases to connect to the data room

knowledgeBaseDestinationInsight

string[] | null

List of target databases to contribute knowledges to. See Contributing Knowledge

enableWebSearch

boolean | null

Enable the bot to perform web search with Tavily engine to provide knowledge from the internet to the bot context (this option overrides other types of knowledge sources e.g. databases, file injection, insights, ...)

enableReranker

boolean | null

Enable reranking function using ms-marco-TinyBERT-L-2-v2 to rerank the fetched documents, provide more concise and relevant knowledges to the AI Model while reducing the context window used. This option will, however, increase processing time to get a response

enableAgentRetrieval

boolean | null

Enable the intent agent to filter the most relevant databases / folder before performing the search method to retrieve knowledge

Update Convo Detail

patch
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
convo_idstringRequired
Body
nameany ofOptional
stringOptional
or
nullOptional
knowledgeBaseany ofOptional
string[] ยท max: 30Optional
or
nullOptional
enableAutoResponseany ofOptional
booleanOptional
or
nullOptional
knowledgeBaseDestinationInsightany ofOptional
string[]Optional
or
nullOptional
enableWebSearchany ofOptional
booleanOptional
or
nullOptional
webSearchTypeany ofOptional
string ยท enumOptionalPossible values:
or
nullOptional
webSearchConfigany ofOptional
or
nullOptional
enableRerankerany ofOptional
booleanOptional
or
nullOptional
enableAgentRetrievalany ofOptional
booleanOptional
or
nullOptional
modelany ofOptional
string ยท enumOptionalPossible values:
or
string ยท enumOptionalPossible values:
or
string ยท enumOptionalPossible values:
or
nullOptional
imageModelany ofOptional
string ยท enumOptionalPossible values:
or
nullOptional
agentany ofOptional
stringOptional
or
nullOptional
customAgentIdany ofOptional
stringOptional
or
nullOptional
agentConfigany ofOptional
or
nullOptional
toolsConfigany ofOptional
string[]Optional
or
nullOptional
networkany ofOptional
stringOptional
or
nullOptional
networkCapabilitiesany ofOptional
string[]Optional
or
nullOptional
enableGenerateImageany ofOptional
booleanOptional
or
nullOptional
enableGenerateVideoany ofOptional
booleanOptional
or
nullOptional
lengthPresetany ofOptional
string ยท enumOptionalPossible values:
or
nullOptional
chatModeany ofOptional
string ยท enumOptionalPossible values:
or
nullOptional
dataroomIdany ofOptional
stringOptional
or
nullOptional
Responses
200

Successful Response

application/json
patch
/cortex/conversation/{convo_id}

Deleteing a Data Room

Deleting a dataroom removes all the chat history and injected files in that data room.

Delete Convo

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
convo_idstringRequired
Responses
200

Successful Response

application/json
delete
/cortex/conversation/{convo_id}

Last updated

Was this helpful?