Templates / AI agent patterns / ai-orchestrator-workers

AI Orchestrator–Workers

An orchestrator agent breaks a research question into subtasks it cannot know in advance and hands each to a worker. It is an AI Agent Sub-process whose tools are themselves model calls — a web researcher, a source summariser and a data analyst — whose instructions the orchestrator writes with fromAi(). A report the orchestrator is not confident in goes to an expert before publishing.

aiorchestrator-workersai agent sub-processad-hoc sub-processfromAi
Open in editor Download .bpmn
casen template use ai-orchestrator-workers
Orchestrator publish review Notifyrequester:no report Expertreview Publishreport Research theweb Summarisesource Analyse data Research question received Agent failed No report Confident? Report published

Scenarios · 2

  • A confident report is published directly orchestrator → confident → publish-report → report-published
  • A shaky report goes to an expert first orchestrator → expert-review → publish-report → report-published

Job types · 4

  • io.camunda.agenticai:aiagent-job-worker:1 Orchestrator
  • io.camunda.agenticai:aiagent:1 Research the web, Summarise source, Analyse data
  • requester-notify Notify requester: no report
  • wiki-page-publish Publish report

Files · 2

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