Built-in global variables

By writing expressions, you can access a set of global system variables that provide information about the conversation.

Each variable contains a JSON object that is taken from the message method input or output. For more information about these objects, see the API Reference information for the message method request and response.

These variables are special system objects that require syntax different from the standard variable notation. To reference any of these values in an expression, use the variable name by itself (not including ? or {} characters).

Built-in global system variables
Variable Description Expression example
input The input object from the most recent message request sent to the AI assistant. input.text
output The output object from the most recent message response. Currently, only output.debug is included. output.debug.turn_events[0]