ReferenceVariables

Variables

Insert your Member's answers, earlier Step results and profile data into instructions and text, and see which variables each place fills in.

Put What You Know About Your Member Into Your Tools

A variable is a placeholder that ThoughtFlow fills in when a tool runs: your Member's answer, an earlier Step's result, a value from their profile, or the date. Variables are how a tool feels made for each Member. An instruction like "Write a plan for" followed by the business name variable becomes a plan for Bright Path Coaching. You add them with Insert Variable, which appears next to most text boxes in the agent and workflow editors. This page covers what each kind of variable holds, and which ones each place fills in.

Insert a Variable

Click where it goes

Click in the text at the spot where the value belongs.

Open the list

Click Insert Variable, next to the box's label.

Choose it

Choose a variable from its group. It appears in the text as a pill.

The list shows only the groups that place offers. If there's nothing to offer yet, it says "Add input fields or attach user knowledge fields to insert variables."

Kinds of Variables

The list groups variables under these headings:

GroupWhat it holdsExample
Input FieldsYour Member's answer to a question. In a workflow, these are questions from earlier Human Input and Opt-In Steps.Their answer to "What's your business called?"
Step OutputsAn earlier Step's result, in a workflow.The brief an Agent step wrote.
User KnowledgeA value from your Member's profile. See User Knowledge Fields.Their ideal client description.
Run DetailsDetails about the run or the Member, such as the run date or their first name.Today's date.

Input Fields

An answer is inserted as text:

AnswerInserted as
Text, Number, Select and othersThe answer as given.
Multi-SelectThe choices, separated by commas.
Checkbox"Yes" or "No".
Dynamic ChoiceThe text of the option your Member chose. See Dynamic Choice Fields.
File UploadThe file's name, such as "[Attached file: notes.pdf]".

See Input Field Types.

Step Outputs

These Steps give later Steps a variable, named after the Step Name. A Step named Draft Brief gives {{draft_brief}}.

StepThe variable holds
AgentIts result. With Pause for Human Review, the result your Member approved, with their edits. For a chat agent, the whole conversation. See Agent Step.
ComputeThe plain number. With Format the Result checked, a second variable, such as Monthly Budget (Formatted), holds the formatted one. See Compute Step.
WebhookWhat the other system sent back. Filled in only when an App Admin or App Editor runs the workflow; empty for your Members. See Webhook Step.

Condition, Human Input, Opt-In, Info and Save to Profile Steps don't appear under Step Outputs. A Human Input or Opt-In Step's answers appear under Input Fields instead.

A variable's name comes from the Step's name: lowercase, with spaces and punctuation turned into underscores. If you rename a Step, update every Step that uses its variable. The old variable no longer finds anything.

User Knowledge

User Knowledge variables hold your Member's profile values. In an agent, and in an Agent step, only the fields you attached under Knowledge Sources are listed. A Knowledge Log field holds its entries. See Agent Knowledge.

Run Details and Built-In Variables

The built-in variables work in greetings: a chat agent's Welcome Message, the Opening Message of an Agent step that runs a chat agent, and Member Welcome on Member Home.

VariableWhat it holdsWhere it works
Run DateThe date the run started, such as 2026-11-20, in your Member's time zone.Asset names: Output Name on a form agent and Asset Name on a Step.
First NameThe first word of your Member's name.Greetings.
App NameYour App's name.Greetings.
Today's DateToday's date, such as Friday, November 20, 2026.Greetings.
Last Active DateThe last day before today your Member used the App.Greetings.
Last Tool UsedThe name of the last tool your Member ran in the App.Greetings.

Visitors on a share link who aren't signed in get only App Name and Today's Date.

Where Each Kind Works

Each place offers only the kinds it fills in, with two exceptions, covered below the table: User Knowledge on an Info Step, and a Webhook Step's result.

PlaceInput FieldsStep OutputsUser KnowledgeRun Details
Agent Agent InstructionsYes-Attached fields-
Form agent Output NameYes-Attached fieldsRun Date
Chat agent Welcome Message--Text profile fieldsBuilt-ins
Agent step Agent InstructionsYesYesAttached fields-
Chat agent in an Agent step: Opening Message-YesText profile fieldsBuilt-ins
Asset Name on an Agent or Info StepYesYes-Run Date
Info Step Content (Optional)YesYesNot filled in yet-
Condition Step ExpressionYesYes--
Compute Step FormulaYesYes--
Save to Profile Step ExpressionYesYes--
Webhook Step Fields, Headers (Optional) and BodyYesYes--
Workflow Start Screen Description--Yes-
Workflow Completion TextYesYesYes-
Member Welcome on Member Home--Text profile fieldsBuilt-ins

User Knowledge isn't filled in on an Info Step yet. Insert Variable on an Info Step's Content (Optional) still lists it, but those variables come out blank. Leave them out of the text. See Info Step.

A Webhook Step's result is listed under Step Outputs wherever Step results are offered, but it comes out blank when your Members run the workflow. It's filled in only for an App Admin or App Editor. See Webhook Step.

Some places show an empty User Knowledge heading in the list, such as a Condition Step's Expression. Nothing can be inserted from it there.

More about each place:

When a Variable Has No Value

A variable has no value when your Member skipped the question, their profile field is empty, or the Step that fills it didn't run, such as a Step on a Condition branch the run didn't take.

PlaceWhat happens
Agent Instructions in an agentIt's left blank.
Agent Instructions in an Agent stepThe AI receives the variable's name in curly brackets instead of a value. Make sure each variable comes from a Step every run passes through.
Greetings: Welcome Message, Opening Message and Member WelcomeThe line with the variable is left out, or the fallback is used. For First Name, only the name and its comma are removed, so "Welcome back, Dana!" becomes "Welcome back!". See Fallbacks.
Condition and Compute StepsIt counts as empty text, or 0 in math.
Everywhere elseIt's left blank.

Fallbacks

In a greeting, when you choose a variable, you can add a Fallback (Optional): the text used when your Member has no value, such as "friend" in "Hi, friend". A fallback can be up to 60 letters, numbers, spaces and . , ' ! ? -

If one of your profile fields has the same name as a built-in variable, the list hides it and uses the built-in one. A note at the bottom of the list says which fields are hidden.

Tips for Using Variables

  • Insert the answers that matter most. An agent receives every answer, but a variable puts one exactly where your instructions need it.
  • Use a Compute Step's formatted variable in text your Members read, and its plain one in conditions and formulas.
  • Name Steps for what they produce. A Step named Ideal Client Profile gives {{ideal_client_profile}}, which reads well in every Step after it.
  • Check the result with Preview. A variable that comes out blank or unfilled is easiest to spot in a real run.