Workflow LangGraph : trier les e-mails du support
Graphe LangGraph qui classe chaque e-mail du support, escalade les urgences et prépare un brouillon de réponse relu par un humain avant envoi.
Access Medium
- Read files or data
- Modify or delete files
- Send data over the internet
- Run commands on the machine : No
| Input | E-mail reçu par le support |
|---|---|
| Output | Brouillon de réponse dans une file de relecture |
Steps
- Classer l'e-mail : facturation, technique, commercial ou autre, et repérer l'urgence
- Si urgent : créer un ticket prioritaire et prévenir le responsable
- Rédiger un brouillon de réponse (120 mots maximum)
- Ranger le brouillon dans la file de relecture : un humain valide avant l'envoi
Exported definition
# Graphe LangGraph : tri des e-mails du support state: email: str # texte de l'e-mail reçu categorie: str # facturation | technique | commercial | autre urgent: bool brouillon: str nodes: classer: "LLM : renvoie la catégorie et urgent=true si le client est bloqué ou menace de partir" rediger: "LLM : brouillon de réponse poli, 120 mots maximum, sans promesse de remboursement" escalader: "Crée un ticket prioritaire et prévient le responsable" file_attente: "Range le brouillon dans la file de relecture humaine" edges: - START -> classer - classer -> escalader # si urgent - classer -> rediger # sinon - escalader -> rediger - rediger -> file_attente - file_attente -> END
Estimated cost
Input tokens per call : ≈ 439
| Model | Per call | Per 1,000 calls |
|---|---|---|
| Mistral Large · Mistral AI | €0.00019 | €0.19 |
| DeepSeek Flash · DeepSeek | €0.00012 | €0.12 |
| DeepSeek V4 Pro · DeepSeek | €0.00051 | €0.51 |
| GPT-6 Luna · OpenAI | €0.00004 | €0.04 |
| GPT-6 Sol · OpenAI | €0.00077 | €0.77 |
| Claude Sonnet 5.5 · Anthropic | €0.00077 | €0.77 |
| Claude Opus 5.5 · Anthropic | €0.00155 | €1.55 |
| Self-hosted open-source model (Ollama, vLLM) | €0 in API fees (server cost only) | |
Input cost only, excluding the model's answer. Providers' public standard prices (Mistral AI, DeepSeek, OpenAI, Anthropic) converted from USD to euros at the ECB rate of September 29, 2026. Estimate: 1 token ≈ 3.6 characters.
Common to all 3 regions
Created by the author, no outside source.
Commercial use allowed · credit the author · changes allowed.
Declared access : read files, modify files, send data online.
Hosted in France (Scaleway, Paris). No transfer outside the EU.
European Union · 4/5
Real data.
Legal basis not given.
No training data: no summary required.
United States · 4/5
Real data.
Legal basis not given.
No training data: no documentation to publish.
China · 4/5
Real data.
Legal basis not given.
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 →
Statistics
Likes : 0 · Comments : 0
Click a counter to show or hide it, hover the chart for details. One view per visitor per day, bots excluded; counting started on 30 September 2026.
- Identifier
- contextetech--tri-emails-support-langgraph
- Type
- Workflows
- File
- tri-emails-support-langgraph.workflow.yaml
- Format
- YAML
- Size
- 735 bytes
- Encoding
- UTF-8
- Estimated tokens
- ≈ 203
- Language
- French
- License
- MIT
- Commercial use
- Allowed
- Personal data
- Real
- Version
- 1.0
- Published on
- October 1, 2026 at 6:21 PM
- Updated on
- October 1, 2026 at 6:21 PM
- Storage
- in database
- Uses
- 0
- Likes
- 0
tri-emails-support-langgraph.workflow.yaml
# Graphe LangGraph : tri des e-mails du support state: email: str # texte de l'e-mail reçu categorie: str # facturation | technique | commercial | autre urgent: bool brouillon: str nodes: classer: "LLM : renvoie la catégorie et urgent=true si le client est bloqué ou menace de partir" rediger: "LLM : brouillon de réponse poli, 120 mots maximum, sans promesse de remboursement" escalader: "Crée un ticket prioritaire et prévient le responsable" file_attente: "Range le brouillon dans la file de relecture humaine" edges: - START -> classer - classer -> escalader # si urgent - classer -> rediger # sinon - escalader -> rediger - rediger -> file_attente - file_attente -> END
Import
# LangGraph : chargez la définition puis compilez le graphe
import json
graph = json.load(open("tri-emails-support-langgraph.workflow.json"))Steps
1. Classer l'e-mail : facturation, technique, commercial ou autre, et repérer l'urgence 2. Si urgent : créer un ticket prioritaire et prévenir le responsable 3. Rédiger un brouillon de réponse (120 mots maximum) 4. Ranger le brouillon dans la file de relecture : un humain valide avant l'envoi
Community
No comments yet. Share your feedback, it will help the next person.