Triage a ticket

From gethouston/houston · View interactive version

Triage a ticket is an AI agent skill from the GitHub repository gethouston/houston. Hand me a new ticket and I sort it for you. I read the message, figure out what it is (bug, how-to, billing, feature request), check if the customer is a VIP, assign a priority based on your routing rules, and slot it into your queue so you know exactly what needs attention and how fast.

How to use this skill

Skill file

Triage a Ticket

When to use

New inbound message landed, no conversations.json entry for thread yet, OR existing entry need re-triage because content changed (e.g. how-to turned outage report). Solo founder: triage constant - every fresh reply need this skill run first.

Connections I need

I run external work through Composio. Before this skill runs I check that the categories below are linked. Missing → I name the category, ask you to connect it from the Integrations tab, stop.

If no inbox or helpdesk is connected I stop and ask you to link the one your customers actually message.

Information I need

I read your support context first. For every required field that's missing I ask ONE plain-language question (best modality: connected app > file drop > URL > paste) and wait.

Steps

<!-- houston-workflow:v1 -->

  1. Read context/support-context.md. If missing, stop. Tell me run set-up-my-support-info first. Read routing rules + response-time tiers + VIP list from doc - never hardcode.
  2. Identify source - you name channel or message referenced by external id. Use composio search <channel> to find correct fetch slug (e.g. Gmail thread fetch, Intercom conversation fetch). Do NOT hardcode tool slugs.
  3. Fetch raw thread via Composio. Pull subject, all messages, sender email, external message ids.
  4. Resolve customer. Look up customers.json by sender email. If not found, create new index entry (slug = kebab-cased email local-part, deduped if needed).
  5. Categorize content against routing categories in context/support-context.md (typical set: bug | how-to | feature | billing | account | security | other). Content signals: error messages + stack traces lean bug; "how do I…" lean how-to; "can you add…" lean feature; keywords "refund", "invoice", "charge" lean billing.
  6. Assign priority (P1–P4) using tier thresholds from context/support-context.md. Typical start rules: monthly revenue >= $500/mo → base P2; VIP tag → P1 floor. Escalate on content: "down", "can't log in", "data loss", "production" → bump one level (max P1). De-escalate on "whenever you get a chance".
  7. Set response-time fields using domains.inbox.responseTimeTargets.firstResponseHours (fallback to tier table in context doc). breached = false initially.
  8. Write atomically. Upsert into conversations.json. Write full messages to conversations/{id}/thread.json.
  9. Append to outputs.json with type: "triage", domain: "inbox", title = {customer} - {subject}, summary = category + priority, path.

Outputs

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.