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.
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-lookupLook up invoice -
email-sendSend reply -
io.camunda.agenticai:aiagent:1Classify request, Draft billing reply, Draft troubleshooting reply
Files · 2
- ai-routing.bpmn Process model
- ai-routing.bpmn.tests.json Test scenarios (runScenario format)
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.