Claude Code Routines para soporte: clasificar tickets cada mañana sin exponer datos
Guía para equipos de soporte que usan Claude Code Routines con clasificación diaria, privacidad y revisión humana.
Los equipos de soporte do not need an autonomous reply bot on day one. They need a safe morning triage table: which tickets are normal, which need engineering, which need a human owner, and which data must stay out of the routine.
This article adapts Claude Code Routines to soporte operations. Anthropic describes a routine as a saved Claude Code setup with a prompt, repositories, connectors, and triggers that can run on a schedule, through an API call, or from GitHub events. The feature is in research preview, so limits and behavior can change. That makes the privacy boundary more important, not less.
Primary sources: Automate work with routines and Introducing routines in Claude Code. Related funnel thinking: B2B SaaS trial onboarding.
Puntos clave
- Start with morning ticket categorization, not customer-facing automatic replies.
- Share ticket_id, timestamp, product area, plan band, and redacted summary. Block names, emails, phones, full messages, billing data, and tokens.
- Let Claude Code draft category, priority, owner queue, missing information, and reply notes.
- Humans keep refund decisions, legal wording, security incidents, personal data, and public replies.
- Track tickets categorized before 09:00, first response time, misclassification, and morning meeting time.
Dónde se rompe la triage de soporte
A soporte inbox mixes forms, chat, Slack, alerts, sales notes, and public reviews. The morning owner must separate urgent, normal, engineering, refund, and possible incident tickets quickly. If that step stalls, customers wait and internal ownership stays unclear.
Routines fit repeated morning work. The official docs list scheduled, API, and GitHub triggers, with examples such as backlog maintenance, alert triage, deploy verification, and docs drift. For soporte, the practical version is a weekday 08:30 routine that reads a reduced export and prepares a triage table.
Support tickets often contain sensitive data. A full message may include names, payment issues, medical or legal context, access tokens, or business impact. Because routines run autonomously in Claude Code cloud sessions, do not rely on an approval prompt to stop a bad field during a run.
Alcance de Claude Code y alcance humano
Give Claude Code the safe triage artifact: category, priority, owner_queue, missing_info, and reply_draft_note. The note should describe what a human should check before replying; it should not send the reply.
Humans decide refunds, contract exceptions, legal language, security incidents, important customer handling, and public replies. A routine may flag a ticket as possible incident; a person decides whether to publish an incident update.
Before adding connectors, reduce the data. Connectors are useful only after fields, outputs, and human stop points are clear.
3 casos de uso
Use case 1: Split uncategorized tickets into three queues
- Input: ticket_id, timestamp, product area, redacted summary, category hint, plan band.
- Output: normal soporte, engineering check, human owner check, priority, missing_info.
- Human review: customer identity, refund, legal wording, security incidents, and important customers.
Use case 2: List missing information before the first reply
- Input: redacted summary, product area, issue type, help center links, allowed follow-up questions.
- Output: missing fields, help pages to check, questions not to ask by email, internal checks.
- Human review: personal data, payment data, identity verification, and soporte policy.
Use case 3: Raise possible incidents into the morning meeting
- Input: redacted summaries, product area, event time, count, status page, recent deploy notes.
- Output: possible incident list, shared patterns, engineering questions, hold note before customer reply.
- Human review: incident declaration, public wording, impact scope, refunds, and customer messaging.
Prompt copiable
Act as the Claude Code Routines designer for a soporte team.
At 08:30 every weekday, classify uncategorized tickets and prepare a 09:00 morning meeting table.
Do not send customer replies. Refund, legal, security, important-customer, and personal-data decisions go to humans.
Return:
1. normal / engineering / human owner queues
2. priority: high / normal / low
3. missing_info
4. reply_draft_note, not a reply
5. morning_note
Block: names, emails, phones, addresses, card data, passwords, tokens, full messages.
Código de comprobación
const morningTriage = {
source: "soporte inbox export",
schedule: "weekday 08:30",
fieldsSharedWithRoutine: ["ticket_id", "created_at", "category_hint", "plan", "product_area", "redacted_summary"],
fieldsBlockedFromRoutine: ["customer_name", "email", "phone", "billing_card", "full_message", "access_token"],
routineOutputs: ["category", "priority", "owner_queue", "missing_info", "reply_draft_note"],
humanReview: ["refund decision", "legal claim", "security incident", "personal data", "public reply"],
successMetric: "tickets categorized before 09:00"
};
const requiredShared = ["ticket_id", "redacted_summary", "product_area"];
const requiredBlocked = ["email", "phone", "full_message", "access_token"];
const requiredHuman = ["refund decision", "security incident", "personal data"];
const findings = [
...requiredShared
.filter((field) => !morningTriage.fieldsSharedWithRoutine.includes(field))
.map((field) => ({ type: "missing shared field", field })),
...requiredBlocked
.filter((field) => !morningTriage.fieldsBlockedFromRoutine.includes(field))
.map((field) => ({ type: "privacy boundary missing", field })),
...requiredHuman
.filter((item) => !morningTriage.humanReview.includes(item))
.map((item) => ({ type: "human review missing", item }))
];
console.table(findings);
if (findings.length > 0) process.exitCode = 1;
Pitfall: errores comunes
Cause: passing full ticket text. Fix: use a redacted summary and remove identity, contact, contract, token, and attachment fields.
Cause: turning routine output into automatic replies. Fix: start with reply_draft_note only.
Cause: mixing refunds, incidents, and security reports with normal tickets. Fix: route them to human review.
Cause: adding connectors before the data model is clear. Fix: define allowed fields first.
Preguntas frecuentes
Q. Do routines run when the laptop is closed? A. Anthropic says routines run on Claude Code web infrastructure, but the feature is research preview.
Q. Should soporte teams auto-reply with routines? A. Not first. Start with classification and human review notes.
Q. Is a connector enough? A. No. Reduce the data before connecting systems.
Camino a consultoría
If your soporte team wants routines around real tickets, use training and consultation. We can map allowed fields, blocked fields, triggers, connectors, morning notes, and misclassification recovery.
Qué verifiqué
I checked Anthropic’s routines docs, the launch post, the JavaScript boundary check, frontmatter, links, code fences, and CTA. The smallest next step is to split your soporte inbox export into columns the routine may see and columns it must not see.
Artículos relacionados
Convierte tickets de soporte SaaS en pasos reproducibles con Claude Code
Flujo para transformar reportes vagos en pasos, evidencia y una nota útil para ingeniería.
Respuestas de cancelación de hoteles con Claude Code: tabla segura antes de enviar
Revisa cancelaciones y cambios de fecha sin enviar números de reserva ni datos del huésped a la IA.
Proteger la recepción de siniestros con Claude Code: sin pólizas ni informes médicos en la entrada
Flujo para agencias de seguros: CSV anonimizado, adjuntos separados, permisos, revisión humana y consulta.
PDF gratis: cheatsheet de Claude Code
Introduce tu email y descarga una hoja con comandos, hábitos de revisión y flujos seguros.
Cuidamos tus datos y no enviamos spam.
Sobre el autor
Masa
Ingeniero enfocado en workflows prácticos con Claude Code.