Overview
Workflows are executable multi-step graphs attached to an agent. Each workflow has nodes (actions, branches, joins, LLM steps, approvals, and outputs) connected into a path the Apigene engine runs from start to finish. Use workflows when you need a deterministic sequence — with branching, parallel joins, human approval, and a clear final result — rather than a free-form chat turn.Where to find them
- Open Agents
- Select an agent
- Open the Workflows tab
View the graph
Open a workflow to see the read-only graph:- Nodes are color-coded by type (action, condition, join, LLM, approve, output, and more)
- Click a node to inspect parameters and, after a traced run, step input/output
- Pan, zoom, search steps, and use the minimap to navigate large graphs
Run a workflow
- Open the workflow (or use Run from the list)
- Provide runtime inputs as JSON (merged over any stored defaults)
- Optionally enable:
- Include step data — keep per-step traces (required for Simulate)
- Dry run — walk the graph without live API / MCP / LLM side effects (approvals auto-pass)
- Click Run
Run statuses
Simulate on the graph
After a successful run with step data:- Click Simulate (or Simulate on graph from the run dialog)
- Watch steps light up from Start through the run path to End
- Pause to inspect any node’s details in the side panel
- Resume or Reset as needed
Human approval (HITL)
Workflows can include an approve node. When the run reaches it, status becomeswaiting_human and Copilot shows an approval card:
- Approve or Reject
- Optionally edit preview fields before approving
- The run continues via resume (same user who started the run)
resume_workflow with the run_id and decision.
Create and update workflows
Author workflows by asking Copilot (with the agent selected) to create or update them, or by calling MCP tools from Cursor, Claude, or other clients connected to:MCP tools (Agent mode)
See MCP Gateway Tools for parameter details.
Example: dry run with traces
Node types
Commonapigene.* node types:
Workflows should end in an output node so runners get a clear final result.
Tips for demos and production
- Prefer Dry run + Include step data when rehearsing
- Use Simulate to walk the path on the graph after the run
- Keep HITL steps for irreversible actions
- Store defaults in workflow
inputs; pass overrides at run time
Related
- Workflow History — org-wide run log, share, and simulation replay
- Agents — workflows live on an agent
- Tasks — scheduled prompts (not graphs)
- Skills — procedural guidance for agents
- MCP Gateway Tools — full tool reference
- MCP vs Agent Modes — workflows require Agent mode
