POST
/
v1
/
sellits
/
{sellitId}
/
preview
/
startChat

Path Parameters

sellitId
string
required

Body

application/json
isStreamEnabled
boolean
message
string
isOnlyRegistering
boolean

If set to true, it will only register the session and not start the bot. This is used for 3rd party chat platforms as it can require a session to be registered before sending the first message.

sellit
object

If set, it will override the sellit that is used to start the chat.

startFrom
object
prefilledVariables
object

Response

200 - application/json
sessionId
string
required

To save and use for /continueChat requests.

sellit
object
required
lastMessageNewFormat
string

The sent message is validated and formatted on the backend. For example, if for a date input you replied something like tomorrow, the backend will convert it to a date string. This field returns the formatted message.

messages
object[]
required
input
object
clientSideActions
object[]

Actions to execute on the client side

logs
object[]

Logs that were saved during the last execution

dynamicTheme
object

If the sellit contains dynamic avatars, dynamicTheme returns the new avatar URLs whenever their variables are updated.

progress
number

If progress bar is enabled, this field will return a number between 0 and 100 indicating the current progress based on the longest remaining path of the flow.