Workflows
A workflow is a graph of steps — agents doing work, humans approving it, tickets and escalations carrying the result — executed by an engine that remembers everything. Describe a flow in plain English and the designer drafts the graph; or run one of the ready-made playbooks every brand gets out of the box.
Anatomy of a workflow
A workflow definition is a set of nodes connected by edges. Each edge carries the outcome it follows, so the graph itself encodes the policy: what happens on success, on failure, on approval, on rejection, and on timeout.
Node types
| Node | What it does |
|---|---|
| Agent step | An agent executes an instruction with its tools. The step names the agent and the instruction; the agent uses its tool lane to do the work and its output is stored on the run. |
| Approval gate | A human operator approves or rejects. The run parks as “waiting”; the gate shows the relevant step output, and the operator’s decision (and identity) is recorded. Every gate has a timeout with its own edge. |
| Wait | The run parks until a timer elapses |
| Ticket | A Bluestuff (Jira) ticket is raised with the run context |
| Escalate | The escalation engine notifies the right humans |
Edge outcomes
Edges fire on success, failure, approved, rejected, timeout or always. Because failure is a first-class edge, a playbook can route around a degraded backend — for example, chaining a second audit step even when the first one failed, or sending an unanswered approval straight to escalation.
Parameters & templating
Workflows declare run parameters (for example brandKey, playerId, an amount threshold). Step instructions reference them as {{params.brandKey}} and reference earlier step results as {{steps.<id>.output}} — so an approval gate can show the operator exactly what the investigating step found.
Runs are memory
Every run snapshots the full plan when it starts, so editing a workflow never changes a run already in flight. Each step’s status, output and timing is stored; waits and approvals park the run durably — a server restart resumes it without losing anything.
Run a workflow, step by step
- 1Open AgentOS Admin → WorkflowsEach card shows the flow graph with its coloured approved / rejected / failure / timeout edges, the step list, and Run / Runs / Delete actions.
- 2Press Run and fill the parametersThe run form is generated from the workflow’s declared parameters — brand first, then whatever the playbook needs (a player id, a bet id, a spec). Required fields are marked; hints show the expected shape.
- 3Watch the run executeThe run view shows the live graph: the current step pulses, completed steps turn green, failed steps red. Each step card shows the agent’s full output as soon as it completes.
- 4Decide the approval gateWhen the run reaches a gate it parks as waiting and shows Approve / Reject buttons with the gate’s deadline. The gate text contains everything needed to decide — typically the investigating step’s findings and the exact proposed change.
- 5Follow the outcomeApproved and rejected paths both continue visibly: skipped branches are marked skipped, tickets show their issue key with a link, escalations show the chain they started. The decision line (
Decided by …) stays on the step. - 6Review historyThe workflow card’s Runs list holds every past run with status and timestamps; open any of them to see the full graph and outputs as they were.
Create a workflow in plain English
The New workflow button opens the designer. You describe the process the way you would brief a colleague; the designer drafts the graph — agents, waits, approvals, escalations — which you can review before saving.
- 1Describe the flowFor example: “When a player asks for manual KYC clearance: VAULT checks the KYC status and documents, an operator approves, then VAULT adds a cleared note; if rejected, escalate to the compliance team.”
- 2Review the draftCheck the steps, the agent assigned to each, the gate placement and the edge routing. Adjust the description and regenerate if it isn’t right yet.
- 3Save and runThe saved workflow appears as a card like any default playbook, with generated run parameters. Run it against a staging brand first, reject the gate, and verify the rejected path does what you expect.
Triggers
A workflow fires one of two ways. Manually: an operator starts it from the admin console and supplies the parameters. On site activity: the workflow subscribes to live platform events — deposits and failed deposits, withdrawal requests, logins, wagers, registrations, bet placement, settlement and rejections, casino gameplay, bonus events, self-exclusion requests and deposit-proof uploads — and starts itself the moment a matching event arrives, with parameters like the player id, brand, amount and transaction id filled in from the event.
Event triggers can be narrowed with a minimum amount (only wagers over a threshold, say), and nothing is dropped: each player has one run in flight per workflow at a time, repeat activity from the same player queues and starts the moment their current run finishes, and other players spin off their own runs immediately. Because every default playbook is brand-agnostic (brandKey is a run parameter), one definition serves your whole brand portfolio — an event-triggered workflow scoped to a brand reacts only to that brand’s events.