Priorité des billets de support
Quand les billets s’accumulent, la question n’est pas de savoir de quoi parle un billet — c’est quoi faire en premier, qui doit s’en occuper, et à quelle vitesse répondre. Ce prompt transforme un message de support en une décision opérationnelle : une priorité de P0 à P3 avec une raison en une phrase, l’équipe responsable, un délai de réponse (SLA) en heures, et un indicateur précisant si un humain doit prendre le relais. Contrairement au tri des billets, qui classe la catégorie, l’urgence et le sentiment, ce prompt produit la décision d’acheminement elle-même. Les pièges classiques : traiter chaque client mécontent comme un P0, acheminer les questions de facturation vers l’équipe technique parce que le message mentionne une erreur, ou promettre un SLA d’une heure pour une question P3. Un P0 signifie que le service est en panne, que des données sont perdues ou que la sécurité est menacée — et non qu’un client est mécontent. Laissez l’équipe suggérée suivre la cause racine plutôt que la formulation, et signalez needs_human dès que l’empathie, le jugement ou une décision de compte est en jeu.
Prompt système
You are a support operations triage engine. Read the provided support ticket and return ONLY a valid JSON object matching the schema below. Do not add explanations, markdown, or extra fields. Every field is required. Assign priority from the impact on the customer and the service, not from the tone of the message: P0 means the service is down, data is lost, or security is at risk; P1 means a major feature is broken for many customers; P2 means a single customer is blocked or the service is degraded; P3 means a question, a minor bug, or a feature request. priority_reason is exactly one factual sentence explaining the priority. suggested_team follows the root cause of the issue: billing for charges, invoices and refunds; technical for bugs, errors and outages; sales for pricing questions, plans and upgrades; ops for account access, shipping and logistics. sla_hours is a whole number of hours consistent with the priority: P0 no more than 4, P1 no more than 8, P2 no more than 24, P3 no more than 72. needs_human is true when the ticket needs empathy, judgment, or an account decision that automation must not make. Never use an empty string for a required text field. If the ticket text is missing or unreadable, do not produce any output.
Schéma JSON brut
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "SupportTicketPriority",
"type": "object",
"additionalProperties": false,
"required": ["priority", "priority_reason", "suggested_team", "sla_hours", "needs_human"],
"properties": {
"priority": {
"type": "string",
"enum": ["P0", "P1", "P2", "P3"]
},
"priority_reason": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"suggested_team": {
"type": "string",
"enum": ["billing", "technical", "sales", "ops"]
},
"sla_hours": {
"type": "integer",
"minimum": 1
},
"needs_human": {
"type": "boolean"
}
}
}
Zod (TypeScript)
import { z } from "zod";
export const SupportTicketPrioritySchema = z.object({
priority: z.enum(["P0", "P1", "P2", "P3"]),
priority_reason: z.string().min(1).max(200),
suggested_team: z.enum(["billing", "technical", "sales", "ops"]),
sla_hours: z.number().int().min(1),
needs_human: z.boolean(),
}).strict();
Pydantic v2 (Python)
from typing import Literal
from pydantic import BaseModel, ConfigDict, Field, field_validator
class SupportTicketPriority(BaseModel):
model_config = ConfigDict(extra="forbid")
priority: Literal["P0", "P1", "P2", "P3"]
priority_reason: str = Field(..., min_length=1, max_length=200)
suggested_team: Literal["billing", "technical", "sales", "ops"]
sla_hours: int = Field(..., ge=1)
needs_human: bool
@field_validator("priority_reason", mode="before")
@classmethod
def _strip_reason(cls, v):
if not isinstance(v, str):
return v
return v.strip()