Chatbot WebSocket API 0.5.1

WebSocket API for managing real-time chatbot connections and messaging.

Servers

  • wss://chatbot.live.prod.brandbrain.satalia.io/wssLive

    Live WebSocket API server.

    Security:
    • HTTP API key
      • Name: x-api-key
      • In: header
    • #Live

Operations

  • SEND $connect

    Client establishes a WebSocket connection.

    Establish a WebSocket connection.

    Operation IDestablishConnection

    Available only on servers:

    • #Connection Management

    Accepts the following message:

  • SEND $disconnect

    Client disconnects from the WebSocket.

    Disconnect from the WebSocket.

    Operation IDdisconnectConnection

    Available only on servers:

    • #Connection Management

    Accepts the following message:

  • SEND connection-info

    Clients request information about their WebSocket connection.

    Request connection information.

    Operation IDgetConnectionInfo

    Available only on servers:

    • #Connection Management

    Accepts the following message:

    Message IDconnectionInfoRequest.message
    object

    Examples

    {
      "action": "connection-info"
    }
    
    This example has been generated automatically.
  • RECEIVE connection-info

    Clients request information about their WebSocket connection.

    Receive connection information.

    Operation IDreceiveConnectionInfo

    Available only on servers:

    • #Connection Management

    Accepts the following message:

    Message IDconnectionInfoResponse.message
    object

    Examples

    {
      "connection_id": "string",
      "connected_at": "2019-08-24T14:15:22Z",
      "ttl": 1,
      "expires_at": "2019-08-24T14:15:22Z"
    }
    
    This example has been generated automatically.
  • SEND send-message

    Clients send messages to the chatbot.

    Send a message to the chatbot.

    Operation IDsendMessage

    Available only on servers:

    • #Messages

    Accepts the following message:

    Message IDsendMessage.message
    object

    Examples

    {
      "action": "send-message",
      "conversation_id": "cc71b11a-25cd-4c2d-9950-df2cc38e3407",
      "message_id": "d7d9d9fd-478f-40e6-b651-49b7f19878a2",
      "username": "string",
      "feature_id": "string",
      "content": "string",
      "document_ids": [
        "497f6eca-6276-4993-bfeb-53cbbbba6f08"
      ],
      "document_contexts": [
        "string"
      ],
      "role": "user",
      "message_datetime": "2019-08-24T14:15:22Z"
    }
    
    This example has been generated automatically.
  • RECEIVE send-message

    Clients send messages to the chatbot.

    Receive a message from the chatbot.

    Operation IDreceiveMessage

    Available only on servers:

    • #Messages

    Accepts the following message:

    Message IDreceiveMessage.message
    object oneOf

    Examples

    {
      "message_id": "d7d9d9fd-478f-40e6-b651-49b7f19878a2",
      "message_type": "INTERIM_THOUGHT",
      "content": "string",
      "role": "assistant",
      "message_datetime": "2019-08-24T14:15:22Z"
    }
    
    This example has been generated automatically.
  • SEND request-upload

    Clients request an upload link for sending files.

    Request an upload link.

    Operation IDrequestUpload

    Available only on servers:

    • #File Management

    Accepts the following message:

    Message IDrequestUpload.message
    object

    Examples

    {
      "action": "request-upload",
      "conversation_id": "cc71b11a-25cd-4c2d-9950-df2cc38e3407",
      "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
      "username": "string",
      "filename": "string",
      "mime_type": "text/plain",
      "size_bytes": 0
    }
    
    This example has been generated automatically.
  • RECEIVE request-upload

    Clients request an upload link for sending files.

    Server responds with an upload link.

    Operation IDuploadResponse

    Available only on servers:

    • #File Management

    Accepts the following message:

    Message IDupload_response.message
    object

    Examples

    {
      "upload_url": "string",
      "expires_in": 0
    }
    
    This example has been generated automatically.