Templates / AI agent patterns / ai-human-approval-gate

AI Proposal with Human Approval

Lets a model propose how to resolve a customer complaint but keeps a person in charge of anything costly. The proposal comes back as JSON; small goodwill gestures are executed straight away, while refunds over 100 wait for a support lead who approves or rejects them. Nothing irreversible happens on the model's word alone.

aihuman-in-the-loopapproval gateai agent taskrefunds
Open in editor Download .bpmn
casen template use ai-human-approval-gate
auto approve yes no Proposeresolution Approve AIproposal Hand off toa humanagent Executeresolution Reply tocustomer Complaint received Needs approval? Approved? Handed off Resolved

Scenarios · 3

  • A small voucher is executed without approval propose-resolution → needs-approval → execute-resolution → resolved
  • A 350 refund is rejected by the support lead needs-approval → approve-proposal → handoff → handed-off
  • A 350 refund is approved and executed approve-proposal → execute-resolution → reply-customer → resolved

Job types · 4

  • email-send Reply to customer
  • helpdesk-ticket-assign Hand off to a human agent
  • io.camunda.agenticai:aiagent:1 Propose resolution
  • resolution-execute Execute resolution

Files · 2

Every scenario passes on @bpmnkit/engine's runScenario in the package's tests. casen template use ai-human-approval-gate [dir] writes the files above into your project — see the templates guide for running the scenarios and deploying.