How Do You Model AI Agents in BPMN 2.0?
AI agents in BPMN 2.0 are modeled with standard elements only: a lane for the agent, service tasks for its tool calls, user tasks for human approvals, exclusive gateways for risk thresholds and boundary events for timeouts and escalation. These are modeling conventions, not extensions of the standard, and they make the agent's scope and controls reviewable.
Quick facts
- Type
- Modeling practice for process design
- Key idea
- Show where the agent acts, which tools it calls and where people decide
- Where it lives in the process
- Agent lane, approval user tasks, threshold gateways, boundary events, data objects
- Notation
- BPMN 2.0.2 (OMG formal/13-12-09), standard elements only
- Main legal hook
- EU AI Act Art. 12 (logging), 14 (oversight) and 26 (deployers), for high-risk systems
- Related concepts
- Autonomy levels, human-in-the-loop, audit trail, compensation
- IAPP® AIGP® reference
- Body of Knowledge v2.1, III.A (designing and building the AI system)
Why model AI agents in BPMN?
Governance needs a design record that shows, step by step, what an AI agent may do. A process model provides it: reviewers from risk, legal and operations see which steps the agent performs, which tools it calls, where a person decides and what evidence is kept, and can challenge the design before release.
BPMN 2.0.2, published by the OMG, is a widely used notation for this, although the conventions below work in any notation with roles, tasks, decisions and events. BPMN 2.0.2 has no element for AI agents, so the agent conventions here use standard elements: they are modeling conventions, not extensions of the standard.
A model is part of documenting design and build, which the AIGP Body of Knowledge places in III.A. It does not replace an impact assessment, a test plan or the technical documentation the law may require.
Modeling AI agents in BPMN turns an agent's scope and controls into a design artifact that people can review.
Should the agent be a lane or a pool?
Use a lane when the agent works inside your organization's process and under its control. The lane, named after the agent's role (for example "Returns agent"), groups the tasks the agent performs, as other lanes group the tasks of a team.
Use a separate pool when the agent belongs to another participant, such as a supplier's agent. Message flows then show what crosses the boundary, which is where contract terms, data-sharing terms and third-party risk apply.
Two cautions:
- A lane shows who performs a task, not who is accountable for it. Accountability stays with a human role, usually the process owner, recorded in the process documentation or a RACI chart.
- Keep the agent's version and permitted tools in the process documentation, not the diagram, so the model stays readable.
The agent lane makes scope visible; it never transfers accountability to the agent.
Which steps are service tasks and which are user tasks?
BPMN types tasks by who or what performs them, and the type carries the control:
- Service task: automated work, such as a call to a model or a tool. Model each tool call that changes something outside the agent as its own service task, so each can have its own control. Read-only lookups can share one task.
- User task: a person works through a system, for example to review a draft or approve an action. It sits in the lane of the role that decides.
- Manual task: work done without a system, such as a phone call.
The central pattern is an approval user task placed immediately before each irreversible service task. The approver sees what will be executed: the recipient, the amount, the text. An approval at intake comes too early, because those details are not yet known; a review after the action comes too late to prevent harm. In the Autonomy Ladder, this guide's teaching device, this pattern is L2 Act with approval.
Separating service tasks from user tasks shows exactly where an AI agent acts alone and where a person decides.
How do you model thresholds, timeouts and escalation?
Three standard elements carry most runtime controls:
- Exclusive gateway on a threshold. After the agent's task, a gateway routes the case: when the confidence score is above the threshold and the amount below the limit, the flow continues; otherwise a review user task comes before any later step uses the output. Make the review path the default flow, so a case that matches no condition reaches a person. Before trusting a self-reported confidence score, test that high scores really match low error rates on your own cases: an uncalibrated score is not a control.
- Boundary timer event on the approval task. A non-interrupting timer can send a reminder; an interrupting timer moves an overdue approval to a supervisor or covering approver and records the escalation. A timeout should never approve the action automatically.
- Escalation and error events. An escalation event thrown inside a subprocess, and caught by a boundary escalation event on it, hands a case to a higher level of responsibility. A boundary error event on a service task catches a tool failure and routes the case to people.
Gateways, timers and escalation events turn oversight rules into paths the process follows every time.
How do you show evidence and reversal in the model?
Evidence. Attach a data object such as "Agent run record" to each agent service task, and link approval tasks to a data store such as "Process audit log". The record holds the inputs, tool calls, outputs and the approver's decision, with timestamps, linked to the case. For high-risk systems, the EU AI Act requires automatic logging (Art. 12) and log retention by deployers for at least six months (Art. 26(6)).
Reversal. Attach a compensation boundary event to a reversible service task, linked to a compensation task that undoes it, such as "Cancel collection". If a later step fails or a reviewer rejects the case, a compensation throw event undoes the completed tasks.
This is the R of GUARD, this guide's teaching device (Govern the scope · Understand the failure cost · Audit everything · Reverse and restrict · Deploy incrementally): every irreversible action gets a human gate, every reversible one a compensation. For high-risk systems, the gate is one way to give overseers the power to intervene that Art. 14 requires; elsewhere it is this guide's suggestion.
| Control | BPMN element | Evidence |
|---|---|---|
| Human gate | User task before the action | Approval record |
| Threshold | Exclusive gateway, default flow to review | Routing decision |
| Timeout | Boundary timer event | Escalation record |
| Undo | Compensation boundary event and task | Compensation log |
Evidence and compensation make an AI agent's actions traceable and, where possible, reversible.
What does a governed agent process look like?
Kestrel Retail uses a customer-facing AI agent for return requests. The process owner, the head of customer operations, models it with four lanes: Customer, Returns agent, Customer service lead and Warehouse.
- A message start event receives the return request.
- In the Returns agent lane, a service task checks the order and the return policy with read-only tools.
- An exclusive gateway routes on risk: a policy match under EUR 100 continues; the default flow goes to a review user task for the Customer service lead.
- A service task books a courier collection. It is reversible, so a compensation boundary event links it to "Cancel collection".
- Once the warehouse confirms receipt, refunds over EUR 100 wait for an approval user task in the Customer service lead lane, because a refund cannot be recalled. Smaller refunds run at once and appear in a daily digest.
- An interrupting boundary timer event of 24 hours escalates an overdue approval to the duty manager.
- Every service task writes to the "Return case record" data object, kept in the audit log data store.
Legal and the data protection officer reviewed the model before release.
A governed agent process puts each control at the step where an error would cost the most.
What are the limits of modeling AI agents in BPMN?
BPMN brings real strengths: a standard notation, one picture that legal, risk and operations can review and, when a process engine executes the model, controls that run the same way every time.
Its limits:
- The model shows design, not behavior. Inside a service task, the agent's reasoning is not visible. The model bounds what the agent may do; logs and monitoring show what it did.
- Agents plan dynamically. A fixed sequence cannot show an agent choosing among tools. An ad hoc subprocess, a standard element, can show a set of permitted tasks without a fixed order, but the platform still has to enforce the permissions.
- A diagram enforces nothing by itself. If no engine executes the process, the controls depend on people and systems following it.
Process platforms argue that an executable model is the control; agent platforms argue that guardrails belong in the agent runtime. Each is partly right, and most designs need both layers.
BPMN models of AI agents are strongest as a reviewed design and weakest as the only control.
BPMN diagrams
Agent lane with an approval before an irreversible action
Step by step
- Pool and lanes: one pool for the process, with two lanes, "AI agent" and "Finance approver". The agent lane is a modeling convention, not a BPMN element for AI.
- Message start event (AI agent lane): a supplier invoice arrives.
- Service task "Check invoice against order" (AI agent lane): the agent reads the order and the invoice with read-only tools.
- Service task "Prepare payment proposal" (AI agent lane): the agent writes the payee, the amount and its reasons to the data object "Payment proposal".
- User task "Approve payment" (Finance approver lane): the approver reads the "Payment proposal" data object. The task sits immediately before the payment because a payment cannot be recalled.
- Exclusive gateway "Approved?": the "No" sequence flow leads to the end event "Payment rejected"; the "Yes" sequence flow continues.
- Service task "Execute payment" (AI agent lane): runs only on the "Yes" flow.
- Data store "Process audit log": the approval user task and the payment service task both write to it through data associations.
- End event "Invoice paid".
Exclusive gateway on a confidence and risk threshold
Step by step
- Lanes: "AI agent" and "Referral coordinator".
- Start event: a referral letter is received.
- Service task "Extract referral data" (AI agent lane): its output is the data object "Extracted data and confidence score".
- Exclusive gateway "Confident and low risk?" (AI agent lane), with two outgoing sequence flows.
- Conditional sequence flow "Score at or above threshold and no sensitive field": goes straight to the merging exclusive gateway in step 7.
- Default sequence flow (marked with a slash): goes to the user task "Review extracted data" in the Referral coordinator lane. Any case that matches no condition ends up here, with a person.
- Exclusive gateway (merge): joins the two paths.
- Service task "Create appointment request" (AI agent lane): uses the data only after the gateway or the review has cleared it.
- Text annotation on the first gateway: "Threshold set from tested error rates; reviewed monthly".
- End event "Request created".
Timeout and escalation around a human approval
Step by step
- Lanes: "AI agent", "Case officer" and "Team supervisor".
- Start event, then service task "Draft decision letter" (AI agent lane).
- User task "Approve letter" (Case officer lane).
- Non-interrupting boundary timer event "24 hours" on the user task: starts the send task "Send reminder" to the case officer, then an end event. The approval task stays open.
- Interrupting boundary timer event "48 hours" on the user task: cancels it and leads to the user task "Approve letter (escalated)" in the Team supervisor lane. The escalation is written to the data object "Escalation record".
- Both approval paths join at an exclusive gateway (merge) and continue to the subprocess "Send and file letter" (AI agent lane).
- Inside the subprocess: service task "Check address", then an exclusive gateway. If the address cannot be confirmed, an intermediate throw escalation event "Address problem" is thrown and the flow goes on to the service task "Hold letter for manual dispatch"; otherwise the flow goes to the service task "Send letter". Both paths reach the subprocess end event.
- Non-interrupting boundary escalation event "Address problem" on the subprocess: catches the escalation and starts the user task "Resolve address" in the Team supervisor lane, without cancelling the subprocess.
- Boundary error event "Delivery failed" on the subprocess: catches an error raised by the "Send letter" service task and routes the case to the user task "Contact resident" in the Case officer lane.
- End event "Letter sent and filed".
Exam focus
Process design for AI agents maps to BoK v2.1 III.A (designing and building the AI system): human oversight, operational controls and documenting the design. The exam does not test BPMN symbols; it tests where a control belongs. Expect scenarios on where an approval must sit, what happens when an approver does not respond, and how to route uncertain outputs. The common trap is a timeout that approves by default. Practise in the Domain III drill.
Practise this AIGP domain →Check your understanding
A few practice questions on this entry, drawn at random.
FAQ
Is there a BPMN symbol for an AI agent?
No. BPMN 2.0.2 has no element for AI agents or models. Teams show an agent with a lane named after it, its tool calls as service tasks and people's decisions as user tasks. These are modeling conventions built from standard elements, so any BPMN tool can read them, but they are not part of the standard.
Should an AI agent be a lane or a pool in BPMN?
A lane, when the agent runs inside your own process under your control. A separate pool, when the agent belongs to another organization, such as a supplier, so that message flows show what crosses the boundary. In both cases, accountability stays with a human role, not with the agent.
How do you model human approval of an AI agent's action in BPMN?
Place a user task in the lane of the approving role immediately before the service task that performs the action, and show the approver the details that matter: recipient, amount, text. An exclusive gateway follows: approved goes on to the action, rejected goes to rework or closure. The decision is written to a data object.
What should happen if the approver does not respond in time?
Attach a boundary timer event to the approval user task. A non-interrupting timer can send a reminder; an interrupting timer moves the task to a supervisor or covering approver and records the escalation. A timeout should never approve the action automatically, because that turns the control into a delay.
Can a BPMN model show what an AI agent decides internally?
Not in detail. A service task treats the agent's reasoning as a black box. The model sets the bounds: which tools the agent may call, which thresholds route a case to a person and which actions need approval. What the agent actually did is shown by the run record and logs linked to each case.
Sources
- Object Management Group (2013). Business Process Model and Notation (BPMN), Version 2.0.2, formal/13-12-09.
- Regulation (EU) 2024/1689 (Artificial Intelligence Act), Art. 12, 14 and 26, as amended by Regulation (EU) 2026/1744 (Digital Omnibus on AI).
- NIST (2023). Artificial Intelligence Risk Management Framework (AI RMF 1.0), NIST AI 100-1.
- IAPP. AIGP Body of Knowledge, version 2.1 (effective 2 February 2026), competency III.A.
- Last reviewed
Related entries
In our other guides
- Lane — BPMN 2.0 guide
- User Task — BPMN 2.0 guide
- Exclusive Gateway — BPMN 2.0 guide
- Timer Boundary Event (interrupting) — BPMN 2.0 guide
- Escalation Boundary Event — BPMN 2.0 guide
- AI, Machine Learning and AI Agents in Process Management — BPM CBOK® Guide
- BPM vs AI agents