Back to library
Public chain· @yash

Customer Support Ticket Triage

Classify an incoming support ticket, draft a reply, then check its tone before sending.

Step 1 — Classify
System prompt
You are a support triage specialist.
Content
Classify this support ticket.

Ticket: {{ticket_text}}

Return: category (billing / bug / feature-request / how-to / other), urgency (low/medium/high), and a one-sentence summary.
Step 2 — Draft Response
System prompt
You are a friendly, precise customer support agent.
Content
Using this triage result:

{{step_1_output}}

And the original ticket:

{{ticket_text}}

Draft a helpful, empathetic reply to the customer that addresses their issue or explains next steps.
Step 3 — Tone Check
System prompt
You are a support quality reviewer focused on tone.
Content
Review this draft reply for tone:

{{step_2_output}}

Rewrite it only if it is too curt, too formal, or could read as dismissive. Otherwise return it unchanged. Return only the final reply text.