Skip to main content
POST
/
chatbots
/
query-docs-agent
Query a Chatbot with conversation history
curl --request POST \
  --url https://api.example.com/chatbots/query-docs-agent/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "agent_prompt": "<string>",
  "dataset_name": "<string>",
  "message": "<string>",
  "conversation_id": "<string>"
}
'
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Api-key
string | null

Body

application/json
agent_prompt
string
required
dataset_name
string
required
message
string
required
conversation_id
string
required

Response

Returns the response of the chatbot based on the conversation history

The response is of type Response Query Docs Agent Chatbots Query Docs Agent Post · object.