Examples
The Banh source checkout includes complete YAML workflows and JSON inputs. Run these commands from the checkout after building it.
Support routing
Section titled “Support routing”examples/support-triage.yaml asks for a department, urgency, and severity. Rules prioritize urgent tickets, then billing and sales, with support as the fallback.
node packages/cli/dist/index.js validate examples/support-triage.yamlnode packages/cli/dist/index.js run examples/support-triage.yaml \ --input examples/inputs/support-ticket.json --jsonThe bundled input describes a duplicate subscription charge. Inspect the actual decisions and output; do not assume a fixed model prediction.
Warranty triage
Section titled “Warranty triage”examples/warranty-claim.yaml demonstrates another bounded routing workflow:
node packages/cli/dist/index.js validate examples/warranty-claim.yamlnode packages/cli/dist/index.js run examples/warranty-claim.yaml \ --input examples/inputs/warranty-claim.json --jsonThe same file can be deployed to the development cloud service. Its process name is warranty_triage, which becomes the workflow slug in API URLs.
Adapt an example
Section titled “Adapt an example”- Replace the question and option descriptions with your task’s vocabulary.
- Keep input short enough for the model context window.
- Put the highest-priority rules first and include an explicit fallback.
- Validate the YAML before running it.
- Evaluate outputs on representative inputs before choosing thresholds.
For a complete text-input example, see the local quickstart.