Appearance
Workflows
Preview In design with early-access customers. Interfaces may change before general availability.
Define your own multi-step workflows: when something happens, have agents do the work, call your systems, and ask the right person for approval.
yaml
id: invoice-intake
owner_team: finance
trigger:
gmail:
query: "has:attachment subject:(invoice)"
mailbox: ap@acme.com
steps:
- agent: extract
instruction: Extract supplier, amount, due date and PO number from the attachment.
output_schema: { supplier: string, amount: number, due: date, po: string }
- call: mcp.sap.lookup_po
with: { po: "{{ steps.extract.po }}" }
- agent: draft_reply
instruction: Draft a reply confirming receipt; flag mismatches with the PO.
- approve:
by: manager_of(ap@acme.com)
when: "{{ steps.extract.amount > 10000 }}"| Triggers | A schedule; an email, calendar or file event; an incoming webhook (signed); or the Agent API |
| Steps | agent (work with an instruction and an optional output schema), call (an MCP tool or your own webhook), approve (a person decides, in Chat), branch |
| Your code | Runs in your own services, called from a call step |
| Reliability | Runs survive restarts and resume where they stopped |
| Managing workflows | Edit them in the console, or keep them in Git and publish with PUT /v1/workflows/{id} |