Workflow Runs page
The Workflow Runs page is where you start multi step agent runs and follow them, and where you manage everything around them. That covers saved workflows, triggers, failed steps, human approvals, templates, config promotion between gateways, and the queue workers that run steps. Open it at /ui/workflows. It sits in the left nav in the AI Gateway group under Agentic, after Agents. The nav shows it to proxy admins, proxy admin viewers, org admins, internal users and internal viewers. When an admin limits the pages internal users can see (the enabled_ui_pages_internal_users UI setting), internal users and org admins only see it if it is on that list. The page checks the same roles itself, and anyone else who opens the URL sees "Workflows is only available to admin users." Every tab sits behind a Spanway Enterprise license feature, listed per tab below, and the gateway checks the same features on every call.
The page has up to nine tabs, Runs, Saved workflows, Triggers, Variables, Dead letters, Approvals, Templates, Environments and Workers. Environments shows only for proxy admins, proxy admin viewers and org admins, and Workers only for proxy admins and proxy admin viewers. The open tab is kept in the URL as ?tab= with one of runs, definitions, triggers, variables, dead_letters, approvals, templates, environments or workers, so you can link to a tab. An unknown or hidden tab falls back to Runs.
When a tab's license feature is missing, the tab shows a notice titled with the tab's name followed by "needs a Spanway Enterprise license" and names the missing features. If your license is an enterprise license that lacks them, it says to ask sales@spanway.ai to add them. Otherwise it says a license that includes them unlocks the screen. Both versions link to Get a trial license.
Scenario
An operations lead wants a weekly incident summary produced by two agents, started by a schedule, with a human sign-off before anything is posted, and a clear view of what failed when it fails. All of it is set up from this page. The lead saves the plan on Saved workflows, adds a Schedule trigger on Triggers, gates the posting step with a policy on Approvals, and on Monday morning reads the run on Runs, approves the posting step, and checks Dead letters when a step gave up.
Steps
-
Open Workflow Runs under Agentic in the left nav, or go to
/ui/workflows. Each tab is also reachable with?tab=, for example/ui/workflows?tab=triggers. -
On Runs click Start run, pick Run as key, fill Workflow type, add steps with Add step and click Start run to try the plan once. The sheet sends the same request as this call.
curl -X POST http://localhost:4000/v1/workflows/runner/start \-H "Authorization: Bearer sk-my-key" -H "Content-Type: application/json" \-d '{"workflow_type": "incident-summary", "input": {"service": "checkout"}, "mode": "sequential", "run_budget_usd": 2.0,"steps": [{"key": "research", "target": {"kind": "a2a_agent", "agent_id": "research-agent"}, "message": "List the incidents for {{input.service}} in the last week", "budget_usd": 1.0},{"key": "write", "target": {"kind": "custom_agent", "custom_agent_id": "writer-agent"}, "message": "Write a short summary of: {{steps.research.output}}", "budget_usd": 0.5}]}' -
Once the plan works, save it. On Saved workflows click New saved workflow, paste the version JSON and click Save workflow.
-
On Triggers click New trigger, pick Schedule, enter the cron expression and time zone, pick the saved workflow and version, the key it runs as and a run budget, and save.
-
On Approvals, Policies, click New policy and gate the posting step on the team admins. On Monday open Requests, read the request and approve it.
-
Click the run's row on Runs to open the run drawer, and when a step failed for good open Dead letters, read the error and click Requeue after fixing the cause.
Expected result
The start call answers 200 with the run and its steps, and the run appears at the top of the Runs table with a blue running dot. The saved workflow shows on Saved workflows with Latest version 1, the trigger shows its Next fire time, and every Monday a new run appears without anyone clicking. The gated step waits with the status Awaiting approval until the request on Approvals is approved, and the run drawer then shows the step as Succeeded with its spend. Step statuses read Pending, Running, Waiting, Awaiting approval, Succeeded, Failed, Cancelled, Skipped or Blocked.
Runs tab
Needs Workflow runner. The header reads Workflow Runs, "Durable state tracking for agents and automated workflows".
| Control | Type | What it does |
|---|---|---|
| Start run | Button | Opens the Start a workflow run sheet. Hidden for view only roles. Without Workflow runner it is replaced by "Starting runs needs a Spanway Enterprise license with Workflow runner." |
| Search | Text field | Filters runs by any visible text, placeholder "Search runs…". |
| Refresh | Button | Loads the runs again. |
| Filters | Button | Opens the Filters drawer with Status (All statuses, Pending, Running, Paused, Completed, Failed, Cancelled) and Type (text, "Filter by type…"). |
The table shows the newest 100 stored runs plus runs from the workflow runner, newest first, 50 or 100 to a page.
| Column | Meaning |
|---|---|
| Run | A status dot, the run title (or its workflow type) and the first 8 characters of the run id. |
| Type | The workflow type. |
| Status | The run's state, with a coloured dot. Blue is running, amber is paused, green is completed, red is failed, grey is pending or cancelled. |
| Created | How long ago the run started. |
Click a row to open the run drawer.
Run drawer
The drawer has close, a Run ledger link that opens the run in the Run Ledger page, and Refresh. A summary card shows the title, the short id, the workflow type, the status, when it was created, and any metadata the run carries, with long values cut at 120 characters behind more and less.
For runs that did not come from the workflow runner, users who can write also see Set status, a dropdown of the six statuses, and Save status, which is enabled once you pick a different status. It overwrites the stored status of that run.
Three collapsible sections follow.
| Section | What it shows |
|---|---|
| Steps | Only for workflow runner runs. The step table and run actions, described below. Open by default. |
| Timeline | Every recorded event as a bar on a time scale, with its type, step, sequence number, time and data in a tooltip. Started and succeeded steps are green, failed steps red, blocked steps and waiting hooks amber. Open by default. "No events recorded" when empty. |
| Messages | The run's messages with their role and time. "No messages" when empty. |
Steps section
A line names the run as Sequential or Graph, how many steps may run at once, and the run budget. The step table refreshes every 3 seconds while the run is live.
| Column | Meaning |
|---|---|
| Step | The step key, and "after ..." with the steps it waits for. |
| Agent | The agent, custom agent or saved workflow the step calls. A saved workflow step also shows its version and a link to its child run, which opens the child inside the drawer with a breadcrumb back to the parent. |
| Status | pending, running, waiting, awaiting_approval, succeeded, failed, cancelled, skipped or blocked, with the error code under it when the step failed. |
| Attempt | The attempt number out of the maximum, and Show attempts of ... when attempt history is available. |
| Spend | Spend out of the step budget with a small meter that turns red at the budget. A saved workflow step shows its child run's spend. |
| Time | How long the step ran. |
The attempts list shows each attempt's number, how it started (first try, retry, reclaimed after a lost lease, resumed, replay, pinned data or reused from the original run), its status, "agent not called" when the agent was never reached, the error code, cost, duration and the next retry time. Users who can write see Pin output of attempt N on succeeded attempts whose full output was captured. Pinning saves that output so a later replay can use it instead of calling the agent. The button then reads Pinned.
Run actions are shown to users who can write, and only on the top level run.
| Control | When it shows | What it does |
|---|---|---|
| Cancel run | Pending, running or paused runs | Cancels the run right away, with no confirmation. |
| Resume run | Failed or cancelled runs | Resumes the run from where it stopped. |
| The failure handler already ran, resume anyway | After the gateway refuses a resume because a failure handler already ran | You must tick it before Resume run is enabled again. |
| Replay from a step | Failed, cancelled or completed runs, with Workflow history, replay and pinned data licensed | Opens the Replay from a step sheet. |
A Replay lineage box shows when the run is a replay or has been replayed, with links to the related runs and a Test run badge for replays that used pinned data. Without Workflow history, replay and pinned data the section shows "Attempt history, replay and pinned data needs a Spanway Enterprise license" and the attempt lists and replay button are hidden.
Start a workflow run sheet
The sheet reads "The gateway runs each step against an agent as the key you pick, with its own budget and timeout."
| Control | Type | What it does |
|---|---|---|
| Run as key | Dropdown, required | One of your own keys. The run uses its model access and budget. "Pick the key the run should use" if empty. |
| Builder and JSON | Tabs | Build the plan with fields, or paste the whole plan as JSON in Plan (JSON). |
| Workflow type | Text field | A free name that groups runs, for example for approval policies. |
| Order | Dropdown | One after another or By dependencies. |
| Run budget (USD, optional) | Text field | The run stops once it has spent this much. |
| Steps at once | Text field, default 4 | The most steps that run in parallel. |
| Input (JSON) | Text area, default {} | The run input. Must be a JSON object. |
| Add step | Button | Adds a step. Each step but the last has Remove step .... |
| Start run | Button | Starts the run and closes the sheet. |
Each step has these fields.
| Control | Type | What it does |
|---|---|---|
| Step key | Text field, default step-1 and so on | The step's name, used for dependencies and output references. |
| Step type | Dropdown | A2A agent, Custom agent or Saved workflow. Saved workflow reads "(enterprise)" and is disabled without Sub-workflows and Saved workflows licensed. |
| Agent id | Text field | The agent or custom agent id, with your registered agents suggested. |
| Message | Text area | What the step sends. It can reference the run input and earlier step outputs with input.<field> and steps.<key>.output placeholders in double braces. |
| Saved workflow and Version | Dropdowns | For a saved workflow step. Halted workflows are listed as "(halted)" and cannot be picked. The version defaults to the latest. |
| Inputs (JSON) | Text area, default {} | For a saved workflow step. Text values are templates and other JSON values pass as they are. |
| Budget (USD) | Text field, default 1 | The step's spend cap. |
| Timeout (s) | Text field, default 300 | The step's time limit. |
| Depends on | Text field | Only with By dependencies. Comma separated step keys this step waits for. |
| Retries | Field group | Attempts (default 1), First wait (s) (default 2), Longest wait (s) (default 60), All attempts (s) (no limit by default) and checkboxes for what to retry on, Agent unreachable, Rate limited, Timed out, Agent error, Lease lost and Approval unavailable. Agent unreachable, Rate limited and Approval unavailable are ticked by default. Not shown for saved workflow steps. |
On failure sets what happens when the run fails. When the run fails is Do nothing (default), Send an alert with an Alert level of Low, Medium or High (default High), or Run a failure handler. A failure handler takes Handler budget (USD) (default 1), Handler steps (JSON list) and Also send a failure alert (ticked). The note under the box says the alert also goes to your alerting channels, that it only arrives when workflow_run_failed is in general_settings.alert_types, and that Spanway Cloud refuses it, so untick it there. The handler gets the failed step, its error code and the run id, never the run's outputs. Retries and On failure are disabled without Workflow retries and dead letters licensed, with a note saying so.
The sheet checks the form before sending and shows the first problem in red, for example "Input must be a JSON object" or "... inputs must be a JSON object". When the gateway refuses a plan because of one step, the error appears under that step.
Replay from a step sheet
The sheet reads "Starts a new linked run as the key you pick. Steps before the one you pick reuse their output, and the original run stays as it was."
| Control | Type | What it does |
|---|---|---|
| Run as key | Dropdown, required | One of your own keys. |
| Replay from | Dropdown | The step to start from, each listed with its status. |
| Use the original inputs and Edit the inputs | Radio | Editing shows Run input (JSON, blank keeps the original) and a Message for ... (blank keeps the original) for each agent step that will run again. |
| Pinned data | Field group | For each other step, Output of ... offers Run or reuse it as usual, a pinned output by label and size, or Pin this text instead with a text box. A pinned step is not run, its output feeds the later steps, and the replay is marked as a test run. Delete pin ... deletes the selected pin right away. |
| Run budget (USD, optional) | Text field | Spend cap for the replay. |
| Start replay | Button | Starts the replay and opens it in the drawer. |
Saved workflows tab
Needs Saved workflows. Saved workflows are versioned plans with typed inputs and outputs. Every version is kept, so a run of one version always gets the same steps.
| Control | Type | What it does |
|---|---|---|
| New saved workflow | Button | Opens the New saved workflow sheet. Hidden for view only roles. |
| Column | Meaning |
|---|---|
| Name | Click to open the workflow. |
| Visible to | private, team or org. |
| Latest version | The newest version number. |
| New runs | allowed, or stopped when a proxy admin halted it. |
| Updated | When it last changed. |
The New saved workflow sheet saves version 1. Later changes add new versions and never edit this one.
| Control | Type | What it does |
|---|---|---|
| Name | Text field, required | "Give the workflow a name". |
| Description | Text field | Optional. |
| Who can see and run it | Dropdown, default Only me | Only me, A team or My organization. A team workflow needs you to be one of that team's admins. Only proxy admins can share with an organization, and the workflow then belongs to your organization so people in other organizations never see it. |
| Team id | Text field | Required for A team. |
| Version (plan, input_contract, output_contract and outputs as JSON) | Text area | The version as one JSON object. It starts with a one step example. It must contain a plan. |
| Save workflow | Button | Saves the workflow. Errors show under the field. |
The workflow sheet shows its Id, Visible to, New runs and the version's Content hash, a Version picker, the Inputs from the input contract, the full Plan, and Used by, the other saved workflows that call this one (with a count of ones you cannot see). Compare and restore has Compare version N with, a dropdown of the other versions. Picking one shows a table with Where (for example plan.steps[write].message), What (Added, Removed or Changed) and the value in each version, and comparing changes nothing. When the version on screen is older than the latest, users who can write also see Make version N the latest again, which asks "Restore version N?" and says that it saves a copy as the next version and deletes nothing. Restore saves it, and Cancel backs out. Users who can write see Add a version, which opens the editor on the current version. Save as version N adds it and Cancel drops it. Only the workflow's owner, an admin of its team or a proxy admin can add a version, and the gateway refuses anyone else.
Proxy admins see Proxy admin actions. Stop new runs halts the workflow so no new run can start it, and Allow new runs again lifts that. Delete asks for a second click on Delete ... and every version, and Keep it backs out. Deleting removes the workflow and all its versions and cannot be undone. Everyone else reads "Only a proxy admin can stop new runs of a saved workflow or delete it."
Triggers tab
Needs Workflow runner and Workflow triggers. A trigger starts one version of a saved workflow from a signed webhook, a schedule, a gateway event, a chat message or a form.
| Column | Meaning |
|---|---|
| Name | Click to open the trigger. |
| Kind | Signed webhook, Schedule, Gateway event, Chat message or Form. |
| Starts | The saved workflow id and version it starts. |
| State | on or off. |
| Next fire | The next scheduled fire, for schedules. |
New trigger (hidden for view only roles) opens the trigger sheet. The same sheet edits a trigger.
| Control | Type | What it does |
|---|---|---|
| Name | Text field, required | "Give the trigger a name". |
| Description | Text field | Optional. |
| What starts it | Dropdown, default Signed webhook | The trigger kind. It cannot change after the trigger is made. |
| Who sends it | Dropdown, default Standard Webhooks | Webhooks only, and it cannot change after the trigger is made. Standard Webhooks signs the webhook-id, webhook-timestamp and the body, so old or repeated deliveries are refused, and is the one to prefer. X-Hub-Signature-256 is for apps that send X-Hub-Signature-256: sha256=<hex>, an HMAC of the body alone. Paste the whole whsec_ secret into the app. A repeated body returns the first fire. Slack mentions, Microsoft Teams messages, Outlook mail and calendar, Gmail and Google Calendar take events straight from those services, see Slack, Teams, mail and calendar triggers. |
| Slack workspace id, Microsoft tenant id or Pub/Sub subscription | Text field | Connected services except Google Calendar, and required for them. Events from any other workspace, tenant or subscription are refused, so a copy of your app installed elsewhere cannot start the workflow. |
| Who may start it (JSON: sender id to gateway user id) | Text area | Connected services only. Maps each Slack member id, Microsoft Entra object id or mailbox address to a gateway user. Anyone not listed is refused, nothing of their message is kept, and the fire history shows source_denied. The run still uses the trigger's key. |
| Where it listens (JSON: channel, mailbox or calendar id to the gateway users who may read it) | Text area | Connected services only. Only events from these places start the workflow, and only when the mapped sender may read that place and can see the trigger. |
| Signing secret from the service | Password field | Slack and Teams only, and only when creating. The Slack app's signing secret or the Teams security token. It is stored encrypted and never shown again. |
| Push audience and Push service account | Text fields | Gmail only. The audience and service account of the Pub/Sub push subscription. A push signed for anything else is refused. |
| Largest body accepted, in bytes | Number, default 65536 | Webhooks only. Bigger requests are refused before the signature is checked. |
| Cron schedule | Text field, default 0 9 * * 1-5 | Schedules only. Five fields, minute hour day month weekday. |
| Time zone | Text field, default UTC | Schedules only. An IANA time zone name. |
| When the previous run is still going | Dropdown | Schedules only. Skip this fire (default) or Start another run. |
| Whose events it hears | Dropdown | Events only. Only mine (default), My organization (org admins) or The whole gateway (proxy admins). |
| Subscriptions (JSON list) | Text area | Events only. Each entry names an event type and may add filters. The available event types are listed below the field with a description. |
| Seconds to wait for the reply (0 to 60) | Number, default 30 | Chat only. After this the reply says the run is still going. |
| Form title and Form fields (JSON list) | Text field and text area | Forms only. Each field has a kind (text, long_text, number, select or boolean), a name and a label. The title is required. |
| Saved workflow | Dropdown, required | Only saved workflows you can see are listed. Picking one fills in its latest version. |
| Version | Number, required | The trigger keeps starting this version until you change it. |
| Input mapping (optional JSON) | Text area | Maps each workflow input to a path in the fire, such as payload.ticket.id. |
| Run as key | Dropdown | Webhooks, schedules and events only, and required for them. One of your own keys. Unattended runs use its model access and budget. When editing, leaving it empty keeps the bound key. |
| Run budget in USD | Number | Required for webhooks, schedules and events, optional otherwise. Each run stops once it has spent this much. Must be more than 0. |
| Most fires per minute | Number, default 60 | Fires above this rate are refused and show in the fire history. |
| Who can see it | Dropdown, default Only me | Only me, A team or My organization. People who can see a chat or form trigger can use it with their own key. A team trigger needs you to be an admin of that team, and only proxy admins can share with an organization. An organization trigger is seen only inside the organization it runs in. |
| Team id | Text field | Required for A team. |
| Create trigger or Save trigger | Button | Saves the trigger. |
When you create a signed webhook, a notice above the list shows the signing secret and the URL to send signed requests to. Copy the secret then, because it is shown only once.
Trigger sheet
The trigger sheet lists Kind, Starts, State (with the reason when off), Next fire, Webhook URL, Secret ends with, Run budget and Failures in a row.
For chat triggers, users who can write get Send a message with a Message, Run as key and Send. For form triggers they get the form itself with each field (optional ones are marked), Run as key and Submit. The reply shows the run status, the run id and any outputs. If you have no keys, the key picker says to create one on the Virtual Keys page first.
Users who can write also see Manage.
| Control | What it does |
|---|---|
| Edit | Opens the trigger sheet in edit mode. |
| Turn off and Turn on | Switches the trigger. Turning it on is only offered to whoever may operate it. |
| Replace the secret from the service and Replace secret | Slack and Teams triggers only, in place of Rotate signing secret. Paste the new secret after the service changed it. The old one keeps verifying for one hour. Gmail triggers have neither, because Google signs every push. |
| Rotate signing secret | Webhooks except Slack, Teams and Gmail. Opens a confirmation, Rotate the signing secret of followed by the trigger name, which says "A new secret is shown once. The old secret keeps working for one more hour, then every sender still signing with it is refused, so update them before then." Rotate secret makes the new secret and shows it once, with the time the old one stops. Cancel keeps the current secret. |
| Delete | Asks for a second click on Delete ... and its fire history, with Keep it to back out. Runs it already started keep going. It cannot be undone. |
| Sample payload for a test fire (JSON) and Send a test fire | Webhooks, schedules and events. Queues a fire with your payload, which shows in the fire history once the dispatcher runs it. |
A webhook, schedule or event trigger runs as somebody's key. Only that person or a proxy admin can turn it on, rotate its secret or send a test fire. Anyone else reads that they can edit it to bind their own key instead.
Fire history lists each fire's Received time, Status, Outcome and a Run link to the run ledger, with Newer and Older to page.
Variables tab
Needs Saved workflows. Variables are non-secret values shared by every saved workflow of an organization. A step message reads one as {{vars.name}}, and a run is refused when a step uses a variable the organization has not set.
Pick the organization with Organization, which lists the organizations you belong to. Members can read its variables. The table shows each variable as {{vars.<name>}} with its Value and when it was Updated. A proxy admin or an admin of that organization also sees Edit ... and Delete ... per row and the Set a variable form. Everyone else reads "Only a proxy admin or an admin of this organization can set or delete its variables."
| Control | Type | What it does |
|---|---|---|
| Variable name | Text field | A lowercase letter, then up to 63 lowercase letters, digits or underscores. Setting an existing name replaces its value. |
| Value | Text area | Plain text up to 4,000 characters. Values that look like keys or tokens are refused, so keep secrets in credentials. |
| Save variable | Button | Saves the variable. |
Deleting a variable asks for confirmation. Runs that already started keep the value they were given, and new runs of a workflow whose steps use it are refused until it is set again.
Dead letters tab
Needs Workflow runner and Workflow retries and dead letters. A dead letter is a step that failed for good after its retries.
| Control | Type | What it does |
|---|---|---|
| Show | Dropdown, default Open | Open, Requeued, Discarded or All. |
| Previous page and Next page | Buttons | Page through the list. |
| Column | Meaning |
|---|---|
| Step | The step key. |
| Workflow type | The run's workflow type. |
| Error | The final error code. |
| Attempts | How many attempts were made. |
| State | open, requeued or discarded. |
| Failed at | When it was dead lettered. |
| Actions | Open dead letter for ... opens the detail sheet. |
The Dead letter sheet shows the step, error, error detail, spend, state, an Open the run ledger link and the list of attempts. Step input and output are never shown. For open dead letters, users who can write see Requeue, which runs the step again, and Discard with an optional Reason for discarding. Both act right away and close the sheet. If a failure handler already ran, the gateway refuses the requeue until you tick The failure handler already ran, requeue anyway.
Approvals tab
Needs Human approval. It has two inner tabs, Requests and Policies.
Requests
The list shows requests you raised or may decide, and refreshes every 15 seconds. A workflow step waiting for approval resumes once every lane approves, and one rejection stops it.
| Control | Type | What it does |
|---|---|---|
| Show | Dropdown, default Waiting for a decision | Waiting for a decision, Approved, Rejected, Expired, Cancelled, Used or All. |
Each request card names the subject, either a workflow step (step, workflow type and agent) or a tool call (tool, MCP server and whether it is read only), and its status. It lists each approval lane with its policy, approvals so far out of those needed, level and status, and when the request expires. Details for ... opens the detail sheet and Open run ... opens the run in the run ledger. For pending requests, users who can write see Note (optional), Approve and Reject. The gateway decides whether you may approve, and the requester never counts as an approver.
The approve and reject links the gateway sends in approval_requested alerts open this tab. After you sign in, a box titled Approve request ...? or Reject request ...? explains that nothing is recorded until you confirm. Add a Note (optional) and press Confirm approve or Confirm reject, or Dismiss to leave without deciding. The gateway checks that the link is signed, has not expired and that you are an approver for the request right now, and each approver can use a link once. A link that cannot be parsed shows "This approval link cannot be read". See approval links.
The detail sheet shows the status, who asked, when it was raised and when it expires, and every decision so far with its note. A tool call that a guardrail flagged also shows Why a guardrail sent this call here, with the reason in plain words, for example "The user did not ask for this action", and the guardrail's name, so you know what to look for in the arguments before you approve. While the request is pending, its requester or a proxy admin sees Withdraw this request. Why you are withdrawing it is required and kept in the audit log, and Withdraw request refuses the waiting step or tool call.
Policies
The tab lists the approval policies in your scope. Proxy admins manage any policy, org admins the policies of their organization and team admins those of their team. Each card shows the policy's state, Applies to, Needs approval, Approvers, Expires after, Escalation and Last saved by. Users who can write see Edit and Delete. Delete asks for a second click on Delete ..., with Keep it to back out. A note says only the authority that saved it, or someone above, can change or delete it.
New policy opens the policy editor. Requests already raised keep the rules they started with.
| Control | Type | What it does |
|---|---|---|
| Name | Text field, required | "Give the policy a name". |
| Description (optional) | Text field | Optional. |
| Applies to | Dropdown, default whole gateway | The whole gateway (proxy admins), One organization (org admins of it or proxy admins) or One team (admins of it or above). You can only pick a scope you administer. |
| Organization id or Team id | Text field | Required for an organization or team scope. |
| What needs approval | Dropdown | Workflow steps, Named MCP tools, Every write tool on an MCP server or Tool calls a guardrail flagged. The last one holds MCP calls that a guardrail such as write action alignment judged doubtful, so a person decides instead of the call being blocked. Without such a policy a flagged call is blocked. |
| Agent ids and Workflow types | Text fields | Workflow steps only. Comma separated and optional. Empty matches any. |
| MCP server id | Text field | Required for Named MCP tools and Every write tool on an MCP server. Optional for Tool calls a guardrail flagged, where empty covers every MCP server. |
| Tool names | Text field | Named MCP tools only. Comma separated. Empty matches every tool. |
| Approvers (JSON list) | Text area | 1 to 20 approvers. Kinds are proxy_admins (the default), requester_team_admins, user, team_admins and team_members, and every approver must sit inside the scope. |
| Approvals needed | Number, default 1 | 1 to 3 different people. The requester never counts. |
| Time limit in seconds | Number, default 3600 | 60 to 604800. The request expires after this and the step or tool call is refused. |
| Escalation (optional JSON list, up to 3 levels) | Text area | Adds approvers when nobody decided in time. Each level has after_seconds from 60 to 604800 and its own approvers. Each level must start later than the one before and before the time limit. |
| On (an off policy matches nothing) | Checkbox, on | Turns the policy on or off. |
| Create policy or Save policy | Button | Saves the policy. |
Templates tab
Needs Workflow templates, Custom agents and Saved workflows. Templates are ready made workflows built from custom agents. Installing one creates its agents and saved workflow under your name, with your model and toolset.
The Catalog shows a card per template with its title, category, summary, agents, the connectors each agent needs or can use, and "Needs Lens tracing on the gateway." when it does. See what ... installs opens a sheet with every agent it creates (title, key, description and instructions), its steps with their budgets and order, and the total run budget. Install ... is shown to users who can write.
The Install ... sheet says how many custom agents it will create and that you need the same rights as creating them by hand.
| Control | Type | What it does |
|---|---|---|
| Model | Text field, required | The model the template's agents use, with your models suggested. |
| Name (optional) | Text field | A name for the install. |
| Who can use it | Dropdown, default Only me | Only me, My team or My organization. Only proxy admins can share an install with an organization, and the install, its agents and its workflow then belong to your organization. |
| Toolset id (optional) | Text field | An MCP toolset for the agents. |
| Install template | Button | Installs it. A notice then names any optional connectors it can do more with. |
The Installed table lists each install's Name, Template, Status (with Update available for ... when a newer template exists), Agents, Workflow and actions. Users who can write see Run ..., which needs Workflow runner, and Uninstall ..., which asks for Confirm uninstall of ... or Keep it. Uninstalling deletes the install and its agents. Only a proxy admin's uninstall also deletes its saved workflow. It cannot be undone.
Run ... opens a sheet that starts the installed version of the saved workflow. It asks for Run as key, one field per workflow input (with required and type checks) and Run budget (USD, optional), then Start run.
Clicking an install name opens its sheet with the template, status, model, who can use it, the saved workflow, and each custom agent with its revision. When an update is available, users who can write see Update available with Also replace agents I edited since install (off by default, so an agent you changed by hand stops the upgrade) and Upgrade to the current template. Upgrading keeps your model, toolset, name and sharing and adds a new version of the saved workflow. Only the install's owner, an admin of its team or a proxy admin can upgrade it. If the upgrade drops write tools a proxy admin had given the agents, the result says which.
Environments tab
Needs Environments and Git promotion. Shown to proxy admins, proxy admin viewers and org admins. It promotes config from one gateway to the next through Git. Proxy admins manage the whole gateway, and an org admin manages the team custom agents of their organization.
| Control | Type | What it does |
|---|---|---|
| Organization id | Text field | Leave empty for the whole gateway (proxy admins), or enter an organization you administer. |
| Show this scope | Button | Loads that scope. Org admins see nothing until they enter an id. |
The scope view lists Environment (the gateway's environment name, or a note to set general_settings.environments.name first), Scope, Second person approval, Plans expire after and Kinds it can promote.
Users who can write see Export and plan.
| Control | Type | What it does |
|---|---|---|
| Export bundle | Button | Downloads this environment's promotable config as one JSON bundle with no ids, owners or secrets. |
| Bundle file to plan (JSON from an export) | File picker | Loads a bundle file into the text box. |
| Or paste the bundle | Text area | The bundle JSON. |
| Delete objects an earlier apply made that the bundle no longer has | Checkbox, off | Prune. Only touches objects of kinds the bundle lists that an apply created or last wrote. |
| Plan against ... | Button | Compares the bundle with this environment and makes a plan. It changes nothing. Needs an environment name. |
Plans lists each plan with Review plan ..., its Status (and "has problems" when it cannot be applied), Changes as new, changed and deleted counts, Made by and Made. The plan sheet shows who made and decided it, the Git Commit, Ref and Bundle path the bundle was planned from when it carried them, a Working tree warning when it had uncommitted changes, when it expires, every change with field level before and after values and any problems, the Secret references and whether each resolves here, and the Apply result once applied.
Next step offers Approve plan, Apply plan and Reject plan with an optional Note, which is kept on the plan and in the audit log. When second person approval is required, the person who made the plan cannot approve it, and a plan made by a key with no user cannot be approved at all. A plan with problems cannot be applied. Applied, rejected, failed, expired and superseded plans are final. View only roles read "Your role can read plans but not approve, reject or apply them."
Managed objects lists everything an apply wrote, each marked as applied, changed since the last apply, or deleted outside an apply.
Workers tab
Needs Workflow runner. Shown to proxy admins and proxy admin viewers. It refreshes every 10 seconds.
The top row shows Mode (Queue workers or In the gateway, this pod's role, and "runner off" when disabled), Running steps, Ready to run with the age of the oldest, and Waiting with the age of the oldest.
| Column | Meaning |
|---|---|
| Worker | The worker's host name. |
| Role | The worker's role. |
| Steps | Running steps out of capacity. |
| State | Draining, finishing its steps before it stops, No heartbeat for over a minute, Running steps or Idle. |
| Last heartbeat | How long ago it last checked in. |
Agents stopped by the kill switch lists halted agents and when they stopped. Proxy admins (not viewers) see Let runs use ... again, which lets workflow runs call that agent again right away, with no confirmation.
Empty, error and disabled states
Each list has its own empty text, such as "No workflow runs yet", "No saved workflows yet", "No triggers yet", "No dead letters", "No approval policies in your scope yet", "Nothing installed yet", "No plans yet" and "No worker has checked in". View only users read versions that say items shared with them show here. A gateway license refusal on any list shows the license notice for that tab, and any other error shows the gateway's message in red.
If the runs cannot be loaded, the table shows "Couldn't load workflow runs" followed by the reason and "This is not an empty list. Check your connection and permissions, then retry." Retry loads the list again. If the license cannot be read at all, each tab stays hidden behind a notice titled with the tab's name followed by "is hidden until the license can be checked", which says the Admin UI could not read the gateway's license and asks you to reload the page or ask a proxy admin to check that GET /health/license answers. The gateway still checks the license on every call.
Write controls are hidden for view only roles, and lists show "Your role can view ... but not change them. Ask a proxy admin for a role that can write if you need to."
Differences by role and license
| Who | What changes |
|---|---|
| Proxy admin | Every tab and every write control, including Proxy admin actions on saved workflows and Let runs use ... again on workers. |
| Proxy admin viewer | Every tab including Environments and Workers, read only. Start, edit, delete and decide controls are hidden. |
| Org admin | All tabs except Workers. Environments works for an organization they administer. |
| Internal user | Runs, Saved workflows, Triggers, Variables (read only unless they admin the organization), Dead letters, Approvals and Templates, with write controls. The gateway limits sharing and editing to what they own or admin. |
| Internal viewer | The same tabs as an internal user, read only. |
| Tab | License features |
|---|---|
| Runs | Workflow runner. Retries and failure handlers need Workflow retries and dead letters. Saved workflow steps need Sub-workflows and Saved workflows. Attempt history, pinning and replay need Workflow history, replay and pinned data. |
| Saved workflows | Saved workflows. |
| Triggers | Workflow runner and Workflow triggers. |
| Variables | Saved workflows. |
| Dead letters | Workflow runner and Workflow retries and dead letters. |
| Approvals | Human approval. |
| Templates | Workflow templates, Custom agents and Saved workflows. Running an install needs Workflow runner. |
| Environments | Environments and Git promotion. |
| Workers | Workflow runner. |
Errors
| What you see | What it means | Fix |
|---|---|---|
| "Workflows is only available to admin users." | Your role cannot open the page. | Sign in as a proxy admin, admin viewer, org admin or internal user. |
| A tab "needs a Spanway Enterprise license" | The license lacks the features the tab names. | Ask sales@spanway.ai to add them, or get a trial license from the link. |
| A tab "is hidden until the license can be checked" | The Admin UI could not read GET /health/license. | Reload the page or ask a proxy admin to check the gateway answers that route. |
| "Input must be a JSON object" or "... inputs must be a JSON object" in the start sheet | The Input (JSON) or a saved workflow step's Inputs (JSON) field is not an object. | Fix the JSON before Start run. |
| An error shown under one step in the start sheet | The gateway refused the plan because of that step, for example an agent you may not call. | Fix the step named, or start the run with a key granted that agent. |
| "Couldn't load workflow runs" | The list request failed. | Check your connection and permissions and click Retry. |
| "Your role can view ... but not change them." | A read only role. | Ask a proxy admin for a role that can write. |
| A trigger shows State off with a reason | Too many fires failed in a row and the trigger turned itself off. | Read Fire history, fix the cause and click Turn on. |
| "Your role can read plans but not approve, reject or apply them." | A read only role on Environments. | A proxy admin or org admin with scope authority decides. |
| Approve plan missing on a plan you made | Second person approval is required and you made the plan. | Ask another admin to approve it. |
Related
- Workflow runs and the workflow runner explain the Runs tab.
- Saved workflows cover the Saved workflows and Variables tabs.
- Workflow triggers cover the Triggers tab.
- Workflow templates cover the Templates tab.
- Human approval covers the Approvals tab.
- Environments cover the Environments tab.
- Custom agents are the agents the steps call.
- Run ledger shows what a run did and cost.