Templates / AI agent patterns / ai-agent-tool-loop
AI Agent with Tools
A customer-service agent built on Camunda's AI Agent Sub-process connector. The ad-hoc sub-process holds the tools — knowledge-base search, order lookup and ticket creation — and the connector loops: call the model, run the tools it picks, feed the results back, until it answers. The answer is sent when the agent says the case is resolved; otherwise a person takes over.
Scenarios · 2
- The agent answers a where-is-my-order question support-agent → resolved-gw → send-answer → answered
- The agent cannot resolve it and hands over support-agent → human-takeover → handed-over
Job types · 6
-
email-sendSend answer -
helpdesk-ticket-assignQueue for a person -
io.camunda.agenticai:aiagent-job-worker:1Support agent -
kb-searchSearch knowledge base -
order-lookupLook up order -
ticket-createCreate ticket
Files · 2
- ai-agent-tool-loop.bpmn Process model
- ai-agent-tool-loop.bpmn.tests.json Test scenarios (runScenario format)
Every scenario passes on @bpmnkit/engine's runScenario in the
package's tests. casen template use ai-agent-tool-loop [dir] writes the files above
into your project — see the templates guide for running
the scenarios and deploying.