Create Knowledge Bot chat
POST
/api/knowledge-bots/{knowledgeBotId}/chatsRequest
Path Params
knowledgeBotId
string
required
Body Params application/json
external_id
string
optional
user_metadata
object
optional
system_prompt
string
optional
Optional system prompt that will be embedded in a larger proprietary prompt.
Example
{
"external_id": "tid_12542",
"user_metadata": {
"thread_id": "tid_12542"
},
"system_prompt": "Your name is Tom and you are an expert about the history of New York."
}
Request samples
Responses
OK(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
object {0}
Example
{
"created_at": "2023-11-28T23:22:39.717484+00:00",
"id": "kbc_01hgc3vt7b876qxvbf09qnw5m2",
"knowledge_bot_id": "kb_01ha1ntvyq68jxezgnkwr63wm1",
"last_message_at": "2023-11-28T23:22:39.717484+00:00",
"llm_config": {
"model": "gpt-35-turbo",
"vendor": "openai",
"defaults": {
"max_tokens": 2500,
"temperature": 0.5
}
},
"owner_id": "user_01ha1nt7y4ee0gh7p19qfyqm6p",
"updated_at": "2023-11-28T23:22:39.717484+00:00",
"user_metadata": null,
"external_id": "test"
}
Last modified: a year ago