team:
name: Choose the team
in: {subject: ticket.subject, body: ticket.body}
do:
kind: classify
question: Which team should handle the main request in this support ticket?
options:
billing: Billing - invoices, charges, refunds, and plan changes.
technical: Technical - errors, outages, and problems using the product.
account: Account - sign-in, users, and access.
unclear: Unclear - the ticket does not say enough to choose, or no listed team fits.
out: team
refund:
name: Check for a refund request
in: {body: ticket.body}
do:
kind: classify
question: Does the customer ask for money back?
answer: yes_no
out: refund
urgency:
name: Score the urgency
in: {subject: ticket.subject, body: ticket.body}
do:
kind: classify
question: How urgent is this support ticket for the customer?
levels: [low, normal, high, urgent]
out: urgency