POST
/
assistant
/
{botstackId}
/
message
curl --request POST \
  --url https://workflow.botstacks.ai/assistant/{botstackId}/message \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --data '{
  "waitForResponse": true,
  "message": "<string>",
  "userId": "<string>"
}'

Headers

x-api-key
string
required

The API key

Path Parameters

botstackId
string
required

UUID of the botstack assistant

Body

application/json
Hey so...
message
string
required

The message to send to the assistant

waitForResponse
boolean

should the api wait for a response or return it later

userId
string

The current user ID. This is used to maintain a the chat conversation. If not provided, it is treated as a new conversation.

Response

200

Successful response