Complete Conversation
Complete the next message in a conversation
post
/v1/conversation/complete
Authorization
ChatBotKit API Secret * Required
HTTP Authorization Scheme: bearer
Request Body * Required
Request Body Schema: application/json
messagesarray
An array of messages to be added to the conversation
typestring
The type of the message
textstring
The text of the message
metaobject
Meta data information
botIdstring
The ID of the bot this configuration is using
curl -X POST "https://api.chatbotkit.com/v1/conversation/complete" \-H "Authorization: Bearer $CHATBOTKIT_API_SECRET" \
-H "Content-Type: application/json" \
--data-binary @- << EOF {"messages":[{],"type":"string","text":"string",}"meta":"object"} EOF"botId":"string"
{"text":"string","usage":{"token":"number"}}
The next message in the conversation completed successfully