Conversations
Compact Conversation
Compact a conversation into a checkpoint
post
/v1/conversation/{conversationId}/compact
Authorization
ChatBotKit API Secret * Required
HTTP Authorization Scheme: bearer
Path Parameters
conversationIdstring* Required
The ID of the conversation to compact
import { ChatBotKit } from '@chatbotkit/sdk'
const cbk = new ChatBotKit({
secret: process.env.CHATBOTKIT_API_KEY!
})
const response = await cbk.conversation.compact(
conversationId)
{"id":"string"}The conversation was compacted successfully