Wiring and variables
What this page is — how values travel through a workflow: the five kinds of variable, the picker on each step's Wiring tab, custom values that mix text with variables, how a persona's variables are filled, and what happens when a value is missing or a reference is wrong.
What it is for — getting the right fact into the right step: the client's name from the form, the draft from step 1, the project's name from the project the run belongs to.
The problem it solves — a step that is not wired still runs. It simply works without the facts it needed, and the AI writes around the gap. Wiring is where most "the output ignored what I typed" complaints start, and most of them are visible before publishing if you know where to look.
Route: /org/ai-workflow-build/<id>/edit → a step → Wiring tab ·
Permission: Change your organisation's workflows: input form, steps, wiring, conditions and loops.
1. The five sources
Every variable is written in double braces as a source, a dot and a name. The picker writes them for you; you can also type them in a custom value.
| Source | Written as | Holds | Available |
|---|---|---|---|
| Inputs | {{inputs.client_name}} | The answer to an input-form field, by its key | In every step |
| Steps | {{steps.1.proposal_draft}} | The result of an earlier step: its number, then its output key, then optionally a field inside the result | In steps that run after that step |
| Project | {{project.name}} | A fact about the project the run belongs to | In every step |
| Organisation | {{org.sector}} | A fact about your organisation | In every step |
| Loop | {{loop.item}} | The current pass of a loop | Only in steps inside a loop |
Nothing else is a valid source. The builder refuses to save a value such as {{client.name}}
(Must start with: inputs, steps, project, org, or loop).
2. Why you would use it
- Write once, fill every time. The persona's instructions stay the same; wiring decides what goes into them on each run.
- Chain steps. A summary from step 1 becomes the input to a translation in step 2 and an email in step 3.
- Use what Orbit already knows. The project's name or master document needs no question on the form.
- Catch mistakes before anyone runs it. Check reports references to steps that do not exist, run later, or use an unknown source.
3. The Wiring tab, by step type
Open a step and choose Wiring on the left-hand tab rail. What appears depends on the step's type. If the step has no persona, utility or tool yet, the tab says Configure a Persona, Utility, or Tool in the Setup tab to see wiring options.
| Step type | Section | One picker per… |
|---|---|---|
| AI persona | Input Variables, then System Prompt | Variable the persona declares |
| Utility | Input Configuration (and, for the calendar-event utility, Event Metadata Fields) | Input the utility needs, labelled with its type |
| External tool | Tool Inputs (tool name) | Input the tool needs |
| Human review | — | No wiring |
4. The wiring picker
Click a picker to open its list.
| Part | What it does |
|---|---|
| Filter variables... | Narrows the list by label or by variable |
| Global Inputs group | One entry per input-form field, labelled like [Text - Input] Client name |
| System: Project group | Project facts — see section 8 |
| System: Organization group | Organisation facts — see section 8 |
| Previous Steps group | One entry per earlier step, [Step 1] Draft proposal (proposal_draft) |
| Step N: name (Detected Keys) groups | Fields found in an earlier AI step's expected output, when its step instructions describe a JSON result with named fields |
| Allowed values | For a utility input with a fixed list, the permitted values appear first under Allowed Values |
| Looking for something else? Enter Custom Value | Opens the Custom Value Builder — section 5 |
Each entry shows its label, the variable underneath and a type hint. Group headings collapse when clicked. Once chosen, the picker shows the label and the variable, with a copy icon on hover.
Only steps that run before the step you are wiring are offered. For inputs that expect a file, the project and organisation groups are left out.
5. Custom values
Enter Custom Value opens the Custom Value Builder, for a value that combines fixed text and variables, such as a subject line.
| Area | Use |
|---|---|
| Template Parts | A list of parts, each Text or Variable. Add Text and Add Variable append one; the arrows reorder; the bin removes one |
| Preview | The finished value, parts joined in order |
| Available Variables | Examples of each source; click one to add it as a part |
| Save Value / Cancel | Use the value, or leave the picker unchanged |
Example: Text Proposal for , Variable {{inputs.client_name}}, Text —, Variable
{{project.name}} gives Proposal for {{inputs.client_name}} — {{project.name}}. The Available
Variables list is a set of examples; type the exact key from your own form when it is not listed.
6. How persona variables are filled
A persona's instructions contain its own variables, such as {{client_name}} — no source, no dot.
The Input Variables section lists each one by name (underscores shown as spaces, with a red
star) and a chip with the variable to copy. The picker beside it decides what fills it on this step.
| On this step | The AI receives |
|---|---|
client_name ← {{inputs.client_name}} | The runner's answer in place of {{client_name}} |
client_name ← a custom value | The combined text |
client_name not mapped | {{client_name}} is left in the instructions as it is written |
The same persona can be wired differently in two steps or two workflows. Variables are declared on the persona — see Create and edit a persona.
Step instructions: overriding the persona's
Under System Prompt, tick Overwrite System Prompt to give this step its own instructions instead of the persona's. A box (Custom prompt instructions...) appears, with a + chip per persona variable that inserts it at the end. The persona's model and settings still apply; only the instructions change, and only for this step. When it is not ticked, the tab reads Using default System Prompt from Persona ….
Write the step instructions with the persona's variable names (the + chips), and wire those variables above. Unticking the box and saving discards the step's text and returns to the persona's instructions. The read-only viewer shows step instructions as Step instructions (override the persona's).
7. Missing values and invalid references
| Situation | When you find out | What happens |
|---|---|---|
| A form field left blank by the runner | At run time | The step receives an empty value |
{{inputs.x}} where the form has no field x | Check — a warning that does not block publishing | No answer exists to fill it, so the step does not get a value |
{{steps.4…}} from step 2 (a step that runs later) | Check — an error: which runs after this step | Cannot be published |
{{steps.9…}} where there is no step 9 | Check — an error: there is no step 9 | Cannot be published |
{{loop.item}} in a step outside a loop | Check — an error: outside a loop | Cannot be published |
An unknown source such as {{client.name}} | On Save Changes | Refused: Invalid variable root |
| Malformed braces or spaces inside a variable | On Save Changes | Refused: Invalid variable syntax |
| The output of a step that was skipped by its condition | At run time | Later steps get no value from it — see Conditions |
Steps are referred to by number. Dragging a step, inserting one before it or removing one does not
update {{steps.N…}} references in other steps. After any reordering, open the later steps' Wiring
tabs, then press Check.
8. Field reference — project and organisation values
These are filled from the project chosen for the run and from your organisation's settings.
| Variable | Filled with |
|---|---|
{{project.id}} | The project's identifier |
{{project.name}} | The project's name |
{{project.code}} | The project's code (type it; it is not in the picker) |
{{project.description}} | The project's description |
{{project.status}} | The project's status |
{{project.slug}} | The project's web slug |
{{project.metadata}} | The project's extra details, as structured text |
{{project.master_document_id}} | The project's master document, when one is set |
{{project.color_theme}} | The project's colour theme |
{{org.id}} | Your organisation's identifier |
{{org.industry_code}} | Your industry — filled with the industry's name, not its code |
{{org.industry_name}} | Your industry's name |
{{org.sector}} | Your sector |
The picker also lists project start date, budget and currency, and organisation metadata, brand name, tagline, website, support email, city, currency and logo. These are not filled when a workflow runs, so a step wired to one does not receive a value. Ask for the fact on the input form instead.
9. Loop variables
Inside a loop, {{loop.index}} is the pass number counting from 0, {{loop.iteration}} (also
{{loop.index_1}}) counts from 1, and {{loop.item}} is the current value. Loop-specific variables,
such as a date that moves on each pass, are named in the loop's settings and used as
{{loop.name}}. See Loops.
10. Worked example: from notes to a translated summary
Riverside Interiors' workflow has a form with site_notes_document (File) and language (Single
Select).
- Step 1 — Summarise (AI persona; output key
summary). Variablenotes_document←{{inputs.site_notes_document}}; variableclient←{{project.name}}. - Step 2 — Translate (AI persona; output key
translated). Variabletext← the Previous Steps entry[Step 1] Summarise (summary), which writes{{steps.1.summary}}; variablelanguage←{{inputs.language}}. - Step 3 — Save (Utility, save to Digital Assets). Its content input ←
{{steps.2.translated}}; its title input ← a custom valueSite summary — {{project.name}}.
Later the builder drags Translate above Summarise. Check now reports that step 1 uses
{{steps.1…}}, which runs after this step. She moves it back, and Check is clean.
11. Before this works
| Requirement | Without it |
|---|---|
| Change your organisation's workflows: input form, steps, wiring, conditions and loops. | The Wiring tab is read-only |
| The step's persona, utility or tool chosen on Setup | The Wiring tab has nothing to show |
| Input-form fields with correct keys | The Global Inputs group is empty or wrong — see Input form |
| Each step's Output Key set | Later steps cannot list it under Previous Steps |
12. Don't confuse this with…
| This | Is not |
|---|---|
{{client_name}} in a persona's instructions | {{inputs.client_name}}. The first is the persona's slot; the second is the workflow's form answer that fills it |
| Overwrite System Prompt on a step | Editing the persona. The override applies to one step; editing the persona changes every workflow that uses it |
| A warning in Check | An error. Warnings do not stop publishing — see Publish and lifecycle |
13. Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
The AI's text contains {{something}} literally | A persona variable is not mapped on this step | Map it under Input Variables |
| An earlier step is missing from Previous Steps | It has no Output Key, or it runs after this step | Set the key, or reorder |
| Step 3 suddenly uses the wrong result | Steps were reordered and references kept their numbers | Rewire, then Check |
| A brand name or website comes out empty | Those organisation entries are not filled at run time | Add a field to the input form |
| Save refused with Invalid variable root | A typed variable starts with something other than the five sources | Correct the source |
| The industry appears as a name, not a code | {{org.industry_code}} is filled with the name by design | Nothing to fix |