Schéma JSON : classer un ticket de support
JSON Schema pour classer un ticket de support : catégorie, urgence, sentiment, résumé en une phrase et action suivante.
Lis le message du client et classe-le. L'urgence est haute si le client est bloqué ou menace de partir.
JSON Schema
{
"type": "object",
"required": [
"categorie",
"urgence",
"resume"
],
"properties": {
"resume": {
"type": "string",
"description": "Une phrase"
},
"urgence": {
"enum": [
"basse",
"normale",
"haute"
],
"type": "string"
},
"categorie": {
"enum": [
"facturation",
"technique",
"livraison",
"compte",
"autre"
],
"type": "string"
},
"sentiment": {
"enum": [
"positif",
"neutre",
"negatif"
],
"type": "string"
},
"action_suivante": {
"type": "string",
"description": "Ce que le support doit faire"
}
}
}Beispielausgabe
{
"categorie": "livraison",
"urgence": "haute",
"sentiment": "negatif",
"resume": "Colis annoncé livré mais jamais reçu.",
"action_suivante": "Ouvrir une enquête transporteur et proposer un renvoi."
}Geschätzte Kosten
Eingabe-Tokens pro Aufruf : ≈ 403
| Modell | Pro Aufruf | Pro 1.000 Aufrufe |
|---|---|---|
| Mistral Large · Mistral AI | 0,00018 € | 0,18 € |
| DeepSeek Flash · DeepSeek | 0,00011 € | 0,11 € |
| DeepSeek V4 Pro · DeepSeek | 0,00047 € | 0,47 € |
| GPT-6 Luna · OpenAI | 0,00004 € | 0,04 € |
| GPT-6 Sol · OpenAI | 0,00071 € | 0,71 € |
| Claude Sonnet 5.5 · Anthropic | 0,00071 € | 0,71 € |
| Claude Opus 5.5 · Anthropic | 0,00142 € | 1,42 € |
| Selbst gehostetes Open-Source-Modell (Ollama, vLLM) | 0 € API-Kosten (nur Serverkosten) | |
Nur Eingabekosten, ohne die Antwort des Modells. Öffentliche Standardpreise der Anbieter (Mistral AI, DeepSeek, OpenAI, Anthropic) von USD in Euro umgerechnet zum EZB-Kurs vom 29. September 2026. Schätzung: 1 Token ≈ 3,6 Zeichen.
Common to all 3 regions
Created by the author, no outside source.
Commercial use allowed · credit the author · changes allowed.
Text or data only: no access to files, network or commands.
Hosted in France (Scaleway, Paris). No transfer outside the EU.
European Union · 5/5
No personal data.
No training data: no summary required.
United States · 5/5
No personal data.
No training data: no documentation to publish.
China · 5/5
No personal data.
No training data; AI-generated content published in China must be labelled (2025).
Indicative summary as of 30/09/2026, not a legal certification. Method and sources →
Statistiken
Gefällt mir : 0 · Kommentare : 0
Klicken Sie auf einen Zähler, um ihn ein- oder auszublenden; fahren Sie über das Diagramm für Details. Ein Aufruf pro Besucher und Tag, ohne Bots; Zählung seit dem 30. September 2026.
- Kennung
- contextetech--classer-un-ticket-support
- Typ
- Ausgabeschemas
- Datei
- classer-un-ticket-support.schema.json
- Format
- JSON (application/json)
- Größe
- 725 Bytes
- Kodierung
- UTF-8
- Geschätzte Tokens
- ≈ 201
- Sprache
- Französisch
- Lizenz
- MIT
- Kommerzielle Nutzung
- Erlaubt
- Personenbezogene Daten
- Keine
- Version
- 1.0
- Veröffentlicht am
- 1. Oktober 2026 um 18:55
- Aktualisiert am
- 1. Oktober 2026 um 18:55
- Speicherung
- in der Datenbank
- Nutzungen
- 0
- Gefällt mir
- 0
classer-un-ticket-support.schema.json
{
"type": "object",
"required": [
"categorie",
"urgence",
"resume"
],
"properties": {
"resume": {
"type": "string",
"description": "Une phrase"
},
"urgence": {
"enum": [
"basse",
"normale",
"haute"
],
"type": "string"
},
"categorie": {
"enum": [
"facturation",
"technique",
"livraison",
"compte",
"autre"
],
"type": "string"
},
"sentiment": {
"enum": [
"positif",
"neutre",
"negatif"
],
"type": "string"
},
"action_suivante": {
"type": "string",
"description": "Ce que le support doit faire"
}
}
}Anthropic-API (Python)
import json, anthropic
schema = json.load(open("classer-un-ticket-support.schema.json"))
client = anthropic.Anthropic()
resp = client.messages.create(model="claude-sonnet-5", max_tokens=1024,
tools=[{"name": "extraire", "description": "Renvoie les données extraites", "input_schema": schema}],
tool_choice={"type": "tool", "name": "extraire"},
messages=[{"role": "user", "content": "deine Eingabe hier"}])
print(resp.content[0].input)OpenAI-Format (response_format)
{
"type": "json_schema",
"json_schema": {
"name": "classer-un-ticket-support",
"schema": {
"type": "object",
"required": [
"categorie",
"urgence",
"resume"
],
"properties": {
"resume": {
"type": "string",
"description": "Une phrase"
},
"urgence": {
"enum": [
"basse",
"normale",
"haute"
],
"type": "string"
},
"categorie": {
"enum": [
"facturation",
"technique",
"livraison",
"compte",
"autre"
],
"type": "string"
},
"sentiment": {
"enum": [
"positif",
"neutre",
"negatif"
],
"type": "string"
},
"action_suivante": {
"type": "string",
"description": "Ce que le support doit faire"
}
}
},
"strict": true
}
}
Community
Noch keine Kommentare. Teile deine Erfahrung, sie hilft den Nächsten.