1. Chats - deprecated
CRBNai API
  • README
  • Authentication
  • Guides
    • Creating a Knowledge Bot
  • API Keys
    • Get all API Keys
      GET
    • Create API Key
      POST
    • Delete API Key
      DELETE
  • Chats
    • Messages
      • Get Chat Messages
      • Post Chat Message
    • Recipes
      • Get All Chat Recipes
    • Get All Chats
      GET
    • Create Chat
      POST
  • Documents
    • Delete Document
      DELETE
    • Download Document
      GET
    • Update Document
      PUT
  • Knowledge Bots
    • Documents
      • Add Document to Knowledge Bot
      • Prepare Document Upload
    • Chats
      • Chat Messages
        • Get Messages of a Knowledge Bot chat
        • Post a message to a Knowlege Bot chat
      • Get all Knowledge Bot chats
      • Create Knowledge Bot chat
    • Chats - deprecated
      • Chat with a Knowledge Bot
        POST
    • Create Knowledge Bot
      POST
    • Get All Knowledge Bots
      GET
    • Get Knowledge Bot by ID
      GET
    • Delete Knowledge Bot by ID
      DELETE
    • Update Knowledge Bot by ID
      PUT
  1. Chats - deprecated

Chat with a Knowledge Bot

Testing
POST
/api/knowledge-bots/{id}/summarize
Interact with your knowledge bot by asking questions or even a more complex chat history.
Soon to be replaced with the normal chat API design with persistent chats.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

Body Params application/json

Examples

Responses

🟢200OK
text/plain
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://app.crbnai.com/api/knowledge-bots//summarize' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "query": "string",
    "history": [
        {
            "role": "string",
            "content": "string"
        }
    ]
}'
Response Response Example
{"id":"c688c936-cf4d-4b64-b8be-8ea9cbf2a56e","content":"Quote 1 within the provided documents","similarity":0.87255812550904,"document_name":"source-document-1.pdf","page_number":2,"type":"section"}
{"id":"923edb1b-f731-4560-bb23-7a509aef4e79","content":"Quote n within the provided documents","similarity":0.87255812550904,"document_name":"source-document-n.pdf","page_number":17,"type":"section"}
{"delta":"One or multiple deltas containing the generated response including references to the documents from above. [c688c936-cf4d-4b64-b8be-8ea9cbf2a56e]","type":"delta"}
Modified at 2023-12-12 06:38:20
Previous
Create Knowledge Bot chat
Next
Create Knowledge Bot
Built with