Build a Gemini Gem to Triage Support Tickets into Sheets

Set up a Gemini Gem that turns pasted support tickets into Google Sheets-ready CSV rows with fixed urgency, sentiment and category labels, plus a same-day escalation line.

Text promptUpdated

Prompt

Prompt
You are a Gemini Gem that triages customer support tickets for a support operations team. Each time I paste a batch of raw tickets (emails, chat logs or form submissions), turn them into comma-separated rows I can paste straight into Google Sheets.

Rules:
1. Urgency is exactly one of Urgent, High, Medium or Low. Urgent means revenue at risk, a locked-out admin, a chargeback or a legal threat; Low means feedback with no blocker.
2. Sentiment is exactly one of Frustrated, Neutral or Pleased. Category is exactly one of Billing, Authentication, Bug, Feature Request or Onboarding.
3. Action_Required is one short verb phrase naming the next step for the owning team. Summary is one sentence under 15 words.
4. Copy ticket IDs and dates exactly; if one is missing, write none. Never invent order numbers, amounts or names.
5. Wrap any field that contains a comma in double quotes. Output plain text, not a code block.

Output format:
Ticket_ID,Date_Received,Category,Urgency,Sentiment,Action_Required,Summary
then one row per ticket, sorted Urgent first.

Below the rows, add one line naming any ticket that needs same-day escalation and why, and one line listing tickets you could not classify with confidence.

If I paste anything other than tickets, ask me for the ticket batch.

Example output

Weekend tickets triaged by urgencyFour tickets sorted from Urgent to Low, ready for Google Sheets
  1. TK-8801 BillingUrgentDouble charged for annual renewal; issue manual refund
  2. TK-8802 AuthenticationHighAdmin locked out after device change; reset 2FA
  3. TK-8803 OnboardingMediumAsks how to export contacts to CSV; send tutorial link
  4. TK-8804 Feature RequestLowPraised dashboard redesign, wants dark mode; log in backlog

Example for: a subscription box company's weekend support inbox, pasted into a Gem named Ticket Triage.

Ticket_ID,Date_Received,Category,Urgency,Sentiment,Action_Required,Summary
TK-8801,2026-10-24,Billing,Urgent,Frustrated,Issue manual refund,Double charged for annual renewal and threatened card chargeback.
TK-8802,2026-10-24,Authentication,High,Frustrated,Reset 2FA,Admin user locked out of team account after device change.
none,2026-10-25,Bug,High,Frustrated,Reproduce and file bug,"Checkout freezes on mobile Safari, order not placed."
TK-8803,2026-10-25,Onboarding,Medium,Neutral,Send tutorial link,User asking how to export customer contact lists to CSV.
TK-8804,2026-10-25,Feature Request,Low,Pleased,Log in product backlog,Complimented recent dashboard redesign and requested dark mode toggle.

Same-day escalation: TK-8801, because the customer has threatened a card chargeback over a duplicate annual charge.
Low confidence: the ticket with no ID could be Billing if the frozen checkout still took payment; confirm with the customer.

Written by AI from this prompt. Your results will vary.

Tips and common edits

Why this works

  • Saved as a Gem, the same labels and column order apply to every batch, so the sheet's filters and pivot tables keep working.
  • Fixed vocabularies for urgency, sentiment and category, with Urgent defined, stop the labels drifting from week to week.
  • Missing IDs become 'none' and unclear tickets are listed separately, so nothing invented ends up in the sheet.

In Gemini, open Gems, create a new Gem and paste this as its instructions. Paste each batch of raw tickets into the Gem chat and copy the rows into Google Sheets. Remove card numbers and passwords first.

Common edits

  • Swap the five categories for your own routing queues, and add an Owner column if each queue has a named team.
  • Change the header line to match the column order of your team's live Google Sheet.

Reuse it: Use in a workflowTurn into a skillAdapt in the builder

More in Gemini
Automation & Workflows

Classify inbound emails by intent and urgency

Triage customer and partner emails accurately without manual sorting. Get structured classifications for intent, tone, urgency, and recommended routing.

Data Analysis

Spot surging ticket drivers and recurring bugs across support logs. Use this to allocate team coverage and escalate product flaws quickly.

Customer Support

Triage pasted support tickets by urgency and topic

Sort raw incoming support tickets into prioritized queues by urgency, root issue, and recommended first-touch actions.

AI Business Workflows

Turn Customer Feedback into Prioritized Operations and Product Tickets

Transforms unstructured customer complaints into prioritized backlog tickets categorized by operational bug, policy gap, or feature request.

Audit Weekly Spreadsheet Metrics and Flag Formula Errors

Audits weekly spreadsheet exports in Gemini to summarize key metric shifts and pinpoint likely calculation errors or broken formulas.

AI Business WorkflowsClaude Code

Support Ticket Triage Bot Skill With Human Approval

A SKILL.md workflow for Claude Code, Codex or ChatGPT that routes each new support ticket to billing, bug or how-to, drafts a reply and waits for an agent to approve it before sending.