Skip to main content

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

  1. Open Agents
  2. Select an agent
  3. Open the Workflows tab
From there you can list workflows, open the graph, run, simulate, and delete. Creating and editing the graph is done through Copilot chat (with that agent selected) or MCP Gateway tools — the Workflows tab is primarily for viewing and running.

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

  1. Open the workflow (or use Run from the list)
  2. Provide runtime inputs as JSON (merged over any stored defaults)
  3. 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)
  4. Click Run
When the run finishes, Copilot shows status feedback. In chat, Run Workflow tool cards show a green / yellow / red status indicator and the workflow name.

Run statuses

Simulate on the graph

After a successful run with step data:
  1. Click Simulate (or Simulate on graph from the run dialog)
  2. Watch steps light up from Start through the run path to End
  3. Pause to inspect any node’s details in the side panel
  4. Resume or Reset as needed
Simulate is the best way to demo and debug a workflow path without re-hitting live systems every time — pair it with Dry run for a fully safe rehearsal.

Human approval (HITL)

Workflows can include an approve node. When the run reaches it, status becomes waiting_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)
From MCP clients, call 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

Common apigene.* 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