Macros workspace
Build reusable sequences with a defined input and output contract.
AlphaA macro packages a sequence so multiple automations or other macros can call the same logic. Its inputs and outputs make that reusable contract explicit.
Workspace elements
| Callout | Element | Purpose |
|---|---|---|
| 1 | Macro list | Selects the reusable macro to edit. The list context menu also provides duplicate, delete, import and export commands. |
| 2 | Add and Import Script | Add creates an empty macro. Import Script loads a compatible macro script into the project. |
| 3 | Macro settings | Name identifies the macro, Description documents its purpose, On step error sets the default failure policy, and Export Script saves the selected macro. |
| 4 | Macro Inputs | Defines values a caller can pass. Name becomes the input path, Type controls validation and editing, Required makes the value mandatory, Default supplies a fallback, Description documents it, and Remove deletes the row. |
| 5 | Macro Outputs | Defines values returned to the caller. Name identifies the output, Expression reads the result from macro context, Required validates its presence, Description documents it, and Remove deletes the row. |
| 6 | Automations / Macros | Shows every Call Macro step that currently references this macro, including its owner and step name. |
| 7 | Sequence / Graph | Switches between editing the macro sequence and inspecting its graph. |
| 8 | Step list | Shows the ordered and nested steps executed when the macro is called. Use + Add and row actions exactly as in the Automation workspace. |
| 9 | Step Details | Edits action-specific fields and the common execution settings of the selected step. |
| 10 | Insert Field | Browses Event, Payload, Vars, Stats, Runtime, Inputs and Outputs paths that can be inserted into the active field. |
How a caller uses the contract
A Call Macro step supplies values for the declared inputs. Inside the macro, those values are available under input.*. Output expressions are evaluated when the macro returns and become available to the caller. Keep names stable after a macro is already used, and check the Automations / Macros table before making breaking changes.
Sequence controls
The macro sequence uses the same Add Step chooser, nesting, Step Details, Graph View and side panels as an automation. See the Automation workspace sequence guide and Side panels instead of learning a second editor.