AI Agent and Connectors
An AI agent chooses which BPMN activities to run to answer a request. The engine owns the process, activities, human tasks and transaction boundaries. The agent worker calls a language model outside the engine and requests the next steps. The Connectors catalog groups ready-made external task workers for REST, MCP and single-shot AI tasks.
Choose an execution model
| Need | Use |
|---|---|
| Classify or extract data from one prompt, without tools | AI Task |
| Let a model choose and combine tools, possibly waiting for a person | AI agent on a worker-driven ad-hoc subprocess |
| Call an HTTP API at a prescribed BPMN step | REST connector |
| Call or discover an MCP server’s tools | MCP connectors |
| Let a person or application activate ad-hoc activities without a model | Engine ad-hoc API |
What happens in a turn
The engine makes the agent’s decision turn available as an external task. The worker reads its local inputs and available activities, restores conversation memory and calls the configured model. A tool call activates a BPMN inner flow. That flow may call REST, call MCP, evaluate DMN, invoke a process or wait at a user task. Once results are available, the agent continues with them. A final answer completes the subprocess and passes through its output mapping.
A user task can remain open while the worker restarts. The engine still owns the task; the worker resumes from persisted state when a decision turn becomes available. External side effects require the same idempotency care as other external tasks: an HTTP timeout does not prove that a remote operation failed.
Read by task
| Your task | Start here | Continue with |
|---|---|---|
| Run an agent for the first time | Getting Started | Support-agent example |
| Design its behavior | AI Agent | Providers, BPMN tools, conversation memory, events and cancellation under that page |
| Add an integration activity | Connectors catalog | REST, MCP or the single-shot AI Task |
| Author a BPMN model | Modeling and Element Templates | Manual XML recipe |
| Run and maintain the worker | Deployment and Operations | JDBC administration and observability under that page |
| Check an exact setting, variable or dependency | Configuration, Variables, Dependencies | Separate deployment properties from BPMN inputs and connector versions from engine versions |
Conversation memory is the agent’s working context. Worker audit, engine history and provider billing answer different questions; see Observability and Model Usage when reconciling model calls or investigating replaced turns.
