Skip to content

Capture Variables in Agent Node

Capture variables can be defined in three different ways, each serving a specific use case.

Fixed Value

Hardcode a static value

Referred

Reference an existing variable

AI Derived

Capture dynamically through conversation

AI Derived Variables Configuration

AI Derived variables are automatically captured through the conversation between the agent and the user based on the description you provide.

For Master Agents:

  • No need to explicitly mention variable capture in the agent prompt
  • Simply add the variable name and provide a clear description
  • The agent will automatically extract and store the value during conversation

For Child Agents:

  • You must specify in the prompt which session variable to store the captured value

Provide detailed descriptions including data type and format requirements:

Variable Name: phone_number
Description: A valid 10 digit phone number with country code and a '+'
Referred Variables Configuration

Referred variables allow you to copy the value from an existing session variable. This is useful when you need to pass data between agent nodes or reuse existing values.

Simply select the source variable from the available session variables.


Fixed Value Variables Configuration

Fixed Value variables contain static, hardcoded values that remain constant throughout the workflow.

  1. Value: Enter the static value for the variable
  2. Description (optional): Add a description for your reference