Templates / AI agent patterns / ai-routing

AI Routing

Classifies each incoming support message with one model call that returns JSON, then sends it down a path built for that kind of request: billing questions look the invoice up before a model drafts the answer, technical ones get a model prompted for troubleshooting, and anything else goes to a person. All paths finish at the same reply step.

airoutingai agent taskjson outputcustomer support
Open in editor Download .bpmn
casen template use ai-routing
billing technical other Classifyrequest Look upinvoice Draftbillingreply Drafttroubleshootingreply Answermanually Send reply Support message received Category? Replied

Scenarios · 2

  • A billing question is answered from the invoice classify → route → lookup-invoice → draft-billing-reply → send-reply → replied
  • A request that fits no route goes to a person route → answer-manually → send-reply → replied

Job types · 3

  • billing-invoice-lookup Look up invoice
  • email-send Send reply
  • io.camunda.agenticai:aiagent:1 Classify request, Draft billing reply, Draft troubleshooting reply

Files · 2

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