CKit icon

CKit

Interact with Chatbot Kit API

Actions17

Flow → End

AI-generated

Summary

Ends the conversation, optionally sending a goodbye message first.

Inputs

  • byeMessage — Bye message to be send. Optional string parameter. If provided and non-empty, added to the conversation before ending.

Output shape

[] (empty array) on successful execution. Returns [originalInputData] if a byeMessage is provided but no conversation is found.

The operation always attempts to end the conversation via the backend, unless no conversation exists and a byeMessage was provided, in which case it returns the input data without ending.

Examples

Example 1: Simple end without goodbye message

Leave byeMessage empty or omit it. The node immediately ends the conversation and returns [] .

Example 2: End with goodbye message

Set byeMessage to 'Goodbye!'. If a conversation exists, the message is added to the conversation context, input is flushed, and the conversation ends via the backend. Returns [] .

Links

Discussion