Prerequisites: Approvals on Runtime Agent and Export Runtime to Edge.
Build the canonical business approval loop from template #237, export it to a runtime agent, and decide requests in the agent’s /approvals inbox.
What this template does
- Request Approval — expense or generic sign-off to
[email protected]. - Wait for Decision — 5-minute delay (tune for your SLA).
- Check Status — reads
{{approvalId}}outcome. - Outcome Switch — approved vs rejected notifications.
Template description explicitly supports Studio Activity → Approvals or Runtime /approvals.
Step 1 — Load and customize
- Studio → Templates → search
Request Poll Branch. - Load template #237 — Request, Poll & Branch on Status.
- Set approver email, title, and category in Request Approval.
- Adjust Delay if managers need more than 5 minutes to decide.
Step 2 — Test in Studio (optional)
- Manual trigger with
{"amount": 450}. - Decide in Jobs → Approvals before delay ends.
- Confirm approved/rejected notification branch.
Step 3 — Export to runtime agent
- Validate and Activate the workflow.
- Export Runtime → enable Operator approval support (auto-checked for approval nodes).
- Install on the edge or factory PC — see Export Runtime to Edge.
Step 4 — Decide on the agent
- Trigger the workflow (cron, webhook ingress, or manual API).
- Open
http://<agent>:9090/approvals. - Find the pending request. Enter approver email matching the node setting.
- Approve or Reject.
- After the delay + check nodes run, verify the outcome notification in agent run history.
Step 5 — Production notes
- Approvals created on the agent stay in the agent DB — not synced to Studio.
- Use
{{$var.managerEmail}}for portable approver config across exports. - Pair with Approval with Auto-Escalation (#77) if pending requests need escalation.
Related tutorials
- Approvals on Runtime Agent — full dashboard guide.
- Purchase Approval on Runtime Agent — form-based variant (#74).