How to add an approval workflow
Goal: A Business Flow pauses until an Owner or Admin approves (or rejects) in the Admin Console — for example before a refund tool runs.
Who does what
| Role | Tasks |
|---|---|
| Engineering | Declares .approval() (or equivalent) in the Backend SDK flow definition and syncs the flow |
| You (admin) | Accepts the flow version, monitors Flow Runs, approves or rejects |
Steps (operator)
- Agree the business rule with engineering (when to pause, approval prompt text, what happens after approve/reject).
- Engineering ships the flow with an approval step — Approvals (developer).
- In Admin Console, open Business Flows (or SDK flows list) and Accept the new version when prompted.
- Run a safe test (staging workspace or test order):
- Start the flow from chat or a test event
- Confirm run status becomes waiting for approval
- Open Flow Runs / Approvals — Approvals overview.
- Approve or reject with a note if available.
- Confirm the customer conversation continues (tool ran or rejection message shown).
Workflow
Approval path live
- Define the gate — Which actions need a human?
- Ship flow version — Engineering + Accept in Console.
- Test wait state — See waiting_for_approval.
- Approve as Admin — Flow Runs queue.
- Verify customer outcome — Tool side effects + message.