Examples
Install the CLI, then download the examples. Keep the paths shown so the commands below work.
| Example | Workflow | Input |
|---|---|---|
| Support routing | support-triage.yaml | support-ticket.json |
| Support routing on Jev | jev-support-triage.yaml | support-ticket.json |
| Warranty triage | warranty-claim.yaml | warranty-claim.json |
mkdir -p examples/inputsfor f in support-triage.yaml jev-support-triage.yaml warranty-claim.yaml \ inputs/support-ticket.json inputs/warranty-claim.json; do curl -fL "https://docs.banh.dev/examples/$f" -o "examples/$f"doneSupport routing
Section titled “Support routing”Asks for department, urgency and severity. Urgent tickets go first, then billing and sales; support is the fallback.
banh run examples/support-triage.yaml --input examples/inputs/support-ticket.json --jsonThe input is a duplicate-charge complaint. Check the actual decisions and output; predictions aren’t fixed.
Run on Jev
Section titled “Run on Jev”Same workflow with model: { provider: jev, model: jev-1.13.0 } added. Set BANH_INFERENCE_TOKEN to your TypeSafe key, then:
banh run examples/jev-support-triage.yaml --input examples/inputs/support-ticket.json --jsonOr keep the original file and add --model jev. See Jev model selection.
Warranty triage
Section titled “Warranty triage”banh run examples/warranty-claim.yaml --input examples/inputs/warranty-claim.json --jsonAdapt an example
Section titled “Adapt an example”- Rewrite questions and options in your own terms.
- Keep input within the model’s context window.
- Put high-priority rules first and end with
else. - Run
banh validatebeforebanh run. - Pick thresholds from representative inputs.
For a text-input workflow, see the quickstart.