- id: triage
tool: TYPESAFE_JEV_EVALUATE
input:
- name: state
value: "Help! My payouts have been failing for 3 days."
- name: questions
value: |
{
"is_urgent": {
"type": "noul",
"instructions": "Does this convey urgency?"
},
"department": {
"type": "choice",
"instructions": "Which team should handle this?",
"criteria": {
"billing": "Payments, invoicing, refunds",
"technical": "Bugs, outages, integrations",
"sales": "Pricing, upgrades, new accounts"
}
},
"frustration": {
"type": "score",
"instructions": "How frustrated is the customer?",
"criteria": ["Calm", "Frustrated", "Very angry"]
}
}
config:
- name: api_key
value: "{{secrets.TYPESAFE_API_KEY}}"