Skip to main content

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.

SourceWritten asHoldsAvailable
Inputs{{inputs.client_name}}The answer to an input-form field, by its keyIn 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 resultIn steps that run after that step
Project{{project.name}}A fact about the project the run belongs toIn every step
Organisation{{org.sector}}A fact about your organisationIn every step
Loop{{loop.item}}The current pass of a loopOnly 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 typeSectionOne picker per…
AI personaInput Variables, then System PromptVariable the persona declares
UtilityInput Configuration (and, for the calendar-event utility, Event Metadata Fields)Input the utility needs, labelled with its type
External toolTool Inputs (tool name)Input the tool needs
Human review—No wiring
Figure 1 — 1 Wiring tab, 2 Input Variables, 3 Copy chip, 4 System Prompt.

4. The wiring picker​

Click a picker to open its list.

PartWhat it does
Filter variables...Narrows the list by label or by variable
Global Inputs groupOne entry per input-form field, labelled like [Text - Input] Client name
System: Project groupProject facts — see section 8
System: Organization groupOrganisation facts — see section 8
Previous Steps groupOne entry per earlier step, [Step 1] Draft proposal (proposal_draft)
Step N: name (Detected Keys) groupsFields found in an earlier AI step's expected output, when its step instructions describe a JSON result with named fields
Allowed valuesFor a utility input with a fixed list, the permitted values appear first under Allowed Values
Looking for something else? Enter Custom ValueOpens 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.

Figure 2 — 1 Filter, 2 Global Inputs, 3 System: Project, 4 System: Organization, 5 Previous Steps, 6 Enter Custom Value.

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.

AreaUse
Template PartsA list of parts, each Text or Variable. Add Text and Add Variable append one; the arrows reorder; the bin removes one
PreviewThe finished value, parts joined in order
Available VariablesExamples of each source; click one to add it as a part
Save Value / CancelUse 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.

Figure 3 — Four parts joined into one value; the Preview shows the result: (1) the parts of the value, (2) add fixed text, (3) add a value, (4) what it will look like, (5) the values to choose from, (6) save.

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 stepThe AI receives
client_name ← {{inputs.client_name}}The runner's answer in place of {{client_name}}
client_name ← a custom valueThe 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​

SituationWhen you find outWhat happens
A form field left blank by the runnerAt run timeThe step receives an empty value
{{inputs.x}} where the form has no field xCheck — a warning that does not block publishingNo 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 stepCannot be published
{{steps.9…}} where there is no step 9Check — an error: there is no step 9Cannot be published
{{loop.item}} in a step outside a loopCheck — an error: outside a loopCannot be published
An unknown source such as {{client.name}}On Save ChangesRefused: Invalid variable root
Malformed braces or spaces inside a variableOn Save ChangesRefused: Invalid variable syntax
The output of a step that was skipped by its conditionAt run timeLater steps get no value from it — see Conditions
Moving steps does not renumber references

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.

VariableFilled 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
Some picker entries have no value at run time

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).

  1. Step 1 — Summarise (AI persona; output key summary). Variable notes_document ← {{inputs.site_notes_document}}; variable client ← {{project.name}}.
  2. Step 2 — Translate (AI persona; output key translated). Variable text ← the Previous Steps entry [Step 1] Summarise (summary), which writes {{steps.1.summary}}; variable language ← {{inputs.language}}.
  3. Step 3 — Save (Utility, save to Digital Assets). Its content input ← {{steps.2.translated}}; its title input ← a custom value Site 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​

RequirementWithout 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 SetupThe Wiring tab has nothing to show
Input-form fields with correct keysThe Global Inputs group is empty or wrong — see Input form
Each step's Output Key setLater steps cannot list it under Previous Steps

12. Don't confuse this with…​

ThisIs 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 stepEditing the persona. The override applies to one step; editing the persona changes every workflow that uses it
A warning in CheckAn error. Warnings do not stop publishing — see Publish and lifecycle

13. Troubleshooting​

SymptomCauseFix
The AI's text contains {{something}} literallyA persona variable is not mapped on this stepMap it under Input Variables
An earlier step is missing from Previous StepsIt has no Output Key, or it runs after this stepSet the key, or reorder
Step 3 suddenly uses the wrong resultSteps were reordered and references kept their numbersRewire, then Check
A brand name or website comes out emptyThose organisation entries are not filled at run timeAdd a field to the input form
Save refused with Invalid variable rootA typed variable starts with something other than the five sourcesCorrect the source
The industry appears as a name, not a code{{org.industry_code}} is filled with the name by designNothing to fix