Help center
Back to the app

Node variables

Extract values and see what a node knows along different paths.

A node's Variables tab shows what is known when the conversation arrives, what this node extracts, and where those values are used. The Variables page gives the same overview for the whole agent.

Variables in a conversation nodeVariables in a conversation node

Extract from the conversation

On a conversation node, choose Extract from conversation, name the value, pick its type and describe what to take. Types are text, number, yes/no and a list of allowed options.

For example, reason can be a list of book, move and cancel, with a description that tells them apart. For a yes/no confirmation, describe it as the person's explicit yes, and test both a yes and a no. A value stays empty until the person has said it.

Extract from a tool

Add the tool first, then choose Extract from tool result, pick a field of its answer and name the variable. For example, save the identifier a patient lookup returns as patientId. The fields to pick from are those of that tool's answer.

Check the paths

The tab marks values known on every path into the node, on only some paths, and values used here that nothing sets. For a warning, make each path into the node set the value, or route the conversation to a node that asks for it.

Use the same name and type for the same value everywhere. To clear values after a task, see Reset task values.