CKit2 icon

CKit2

Base node for the next generation Chatbot Kit integration

Actions18

Context → GetContext

AI-generated

Summary

Retrieve the current conversation context, optionally including the previous node's output in the context.

Inputs

  • Add Prev Node to Context — Boolean flag to include the output of the previous node in the context.
  • Node Name — Name of the previous node, required if adding the previous node's output to the context.

Output shape

a single JSON object representing the current conversation context wrapped in a standard message structure

If there is no active conversation context available, the output JSON will contain an empty context. The output format is standardized using the node's internal buildStdMessage method.

Examples

Example 1: Getting the current context of an ongoing conversation

Set 'Add Prev Node to Context' to false or leave it unset; the node returns the current context state.

Links

Discussion