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:
| Group | What it holds | Example |
|---|---|---|
| Input Fields | Your 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 Outputs | An earlier Step's result, in a workflow. | The brief an Agent step wrote. |
| User Knowledge | A value from your Member's profile. See User Knowledge Fields. | Their ideal client description. |
| Run Details | Details 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:
| Answer | Inserted as |
|---|---|
| Text, Number, Select and others | The answer as given. |
| Multi-Select | The choices, separated by commas. |
| Checkbox | "Yes" or "No". |
| Dynamic Choice | The text of the option your Member chose. See Dynamic Choice Fields. |
| File Upload | The 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}}.
| Step | The variable holds |
|---|---|
| Agent | Its result. With Pause for Human Review, the result your Member approved, with their edits. For a chat agent, the whole conversation. See Agent Step. |
| Compute | The plain number. With Format the Result checked, a second variable, such as Monthly Budget (Formatted), holds the formatted one. See Compute Step. |
| Webhook | What 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.
| Variable | What it holds | Where it works |
|---|---|---|
| Run Date | The 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 Name | The first word of your Member's name. | Greetings. |
| App Name | Your App's name. | Greetings. |
| Today's Date | Today's date, such as Friday, November 20, 2026. | Greetings. |
| Last Active Date | The last day before today your Member used the App. | Greetings. |
| Last Tool Used | The 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.
| Place | Input Fields | Step Outputs | User Knowledge | Run Details |
|---|---|---|---|---|
| Agent Agent Instructions | Yes | - | Attached fields | - |
| Form agent Output Name | Yes | - | Attached fields | Run Date |
| Chat agent Welcome Message | - | - | Text profile fields | Built-ins |
| Agent step Agent Instructions | Yes | Yes | Attached fields | - |
| Chat agent in an Agent step: Opening Message | - | Yes | Text profile fields | Built-ins |
| Asset Name on an Agent or Info Step | Yes | Yes | - | Run Date |
| Info Step Content (Optional) | Yes | Yes | Not filled in yet | - |
| Condition Step Expression | Yes | Yes | - | - |
| Compute Step Formula | Yes | Yes | - | - |
| Save to Profile Step Expression | Yes | Yes | - | - |
| Webhook Step Fields, Headers (Optional) and Body | Yes | Yes | - | - |
| Workflow Start Screen Description | - | - | Yes | - |
| Workflow Completion Text | Yes | Yes | Yes | - |
| Member Welcome on Member Home | - | - | Text profile fields | Built-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:
- Agent instructions: see Creating and Configuring an Agent and Agent Step.
- Welcome Message: see Chat Agent Settings.
- Start Screen Description and Completion Text: see Workflow Settings. The start screen shows before the workflow runs, so it can't use answers or Step results.
- Member Welcome: see Member Home and Onboarding.
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.
| Place | What happens |
|---|---|
| Agent Instructions in an agent | It's left blank. |
| Agent Instructions in an Agent step | The 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 Welcome | The 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 Steps | It counts as empty text, or 0 in math. |
| Everywhere else | It'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.