Skip to main content

Send a message

To initiate a chat, don't provide a sessionId and enter any message.

Continue the conversation by providing the sessionId and the message that should answer the previous question.

Set the isPreview option to true to chat with the non-published version of the typebot.

Path Parameters
typebotId string โ€” REQUIRED
Request Body โ€” REQUIRED
message string โ€” REQUIRED

The answer to the previous question

sessionId string

Session ID that you get from the initial chat request to a bot

isPreview boolean
Responses
200

Successful response

Schema
messages object[]
type string

Possible values: [text, image, video, embed, audio]

content
input
logic object
redirectUrl string
codeToExecute object
content string
args object[]
id string
value
integrations object
chatwoot object
codeToExecute object
content string
args object[]
id string
value
googleAnalytics object
trackingId string
category string
action string
label string
value number
sessionId
typebot
default

Error response

Schema
message string
code string
issues object[]
message string