A lesson is completed when you tick it, when you watch its video to the end or when you score 80% on its quiz. The certificate is issued online after the final assessment, from a score of 32 out of 40.
Lesson 32, module 9: Everyday workflows Sorting incoming e-mails and preparing draft replies Forty e-mails to contact@ before 9 am: who sorts them, and who replies?
Rules first: the sender and subject are often enough. Supplier invoices into a folder Newsletters out of the inbox No AI, no cost Is a rule enough? Four questions before plugging in an AI. [Diagram: Is a rule enough] 1. Can the sorting be decided without reading the body of the message, from the sender or the subject? 2. Do more than ten e-mails a day arrive in categories the sender alone doesn't reveal? 3. Can you write each category in one sentence, with an example and a counter-example? 4. Can the content of the e-mails be sent to an AI provider under a data processing agreement? Yes to all: Workflow with AI: classify into a closed list, extract as JSON, prepare a draft, alert for urgent ones. The workflow classifies, extracts, prepares a draft and notifies. [Diagram: The contact inbox workflow] 1. E-mail received 2. Classify 3. Extract 4. Draft 5. File and notify Nothing goes to the customer: the workflow sorts, prepares and notifies. A person reviews and sends. The AI picks from a closed list, with an "other" option. Prompt: Classify this e-mail into ONE category: quote, order, delivery, complaint, billing, application, other. Answer in JSON. Answer: { "categorie": "livraison", "urgence": "haute", "numero_commande": "CDE-24817", "incertain": false } The draft waits in the customer's thread. Nobody but you sends it. Draft attached to the thread Red: dispute, data, contract Reviewed before sending Each category has its light: green, amber or red. [Diagram: Who decides for each e-mail] Green: The workflow acts alone Amber: The workflow prepares, a person sends Red: No draft, a person handles it The level is set per category, on the spec sheet, before building. In the exercise, you write the spec sheet and the categories for an equipment hire company. Your turn: The contact inbox of an event equipment hire company The written lesson, the corrected exercise and the quiz are below the video.
Lesson 32 of 50 · module 9, everyday workflows
Sort incoming e-mails and prepare replies as drafts
A shared mailbox is sorted in two stages. Outlook rules and Gmail filters file whatever the sender or subject line is enough to identify. For the rest, a workflow asks the AI for a category from a closed list and a JSON extraction, then prepares the reply as a draft in the customer’s thread. A person reviews and sends.
32 min of reading
1 min 57 of video
6 diagrams
2 demandes to copy
3 exemples pratiques
4 exercices answerss
5 questions
1 ressource
By the end of this lesson, you will know how to
Decide, email by email, what a mail rule can sort and what needs AI
Build a workflow that classifies, extracts and prepares a draft in the client’s thread without sending anything
Test the sorting on thirty real e-mails and set up the “autre” branch before going live
What’s covered
Rules first, with no AI and no subscription
When AI becomes useful
The workflow sheet, before you open the tool
Classify into a closed list, with an output for everything else
Prepare the draft in the thread, never send it
3 worked examples, followed from start to finish
Exercise with answers · An event equipment hire company’s contact inbox
3 practice exercises, from guided to demanding cases
The quiz
Key points
Anything the sender or subject is enough to identify is sorted by an Outlook rule or a Gmail filter, without AI.
The AI classifies into a closed list, with an “autre” output set up deliberately; by default, n8n discards messages with no category.
Extraction follows a JSON schema: dates in YYYY-MM-DD, urgency as a list of values, an “incertain” boolean.
The draft is created in the customer’s thread, with [À COMPLÉTER] brackets in place of prices and lead times.
Disputes, personal data and contracts stay red: a label, an alert, no draft.
Every morning, an SME’s contact@ mailbox receives a mix: quote requests, delivery queries, supplier invoices, unsolicited job applications, sales prospecting, newsletters, out-of-office auto-replies. Sorting forty messages, opening half of them, forwarding, answering the simplest: three quarters of an hour, every day. This lesson climbs the ladder to the simplest tool that does the job, from the mail rule to the workflow that classifies with AI and prepares replies as drafts.
Rules first, with no AI and no subscription
An Outlook rule has a name, one or more conditions, one or more actions and exceptions. The new Outlook and Outlook on the web only use server-side rules, which run even when Outlook is closed. Gmail does the same job with its filters. Anything that can be identified by the sender, the domain or a word in the subject line belongs to this first stage: a supplier’s invoices to the Accounts folder, the carrier’s shipping notices to Deliveries, newsletters out of the inbox.
Create a rule in new Outlook or Outlook on the web
Open the settings cog at the top right, then Mail, then Rules.
Click Add a rule and give it a name that says what it does: “Supplier X invoices to Accounts”.
Add the condition: sender, or a subject containing a specific word such as “invoice”.
Add the action: move to a folder, categorise or forward.
Add an exception if needed, for example when the message is also addressed to management.
Save, then test with a real message from the supplier.
Shortcut: right-click an existing message, Rules, Create rule, which pre-fills the sender.
Labels may vary depending on your version of Outlook: look for the word “Rules”. The new Outlook does not support rules for an added Gmail, Yahoo or iCloud account.
When AI becomes useful
A rule does not read meaning. “Hello, the pallet didn’t arrive this morning” and “Hello, could you quote me for two pallets?” come from the same customer, with the same empty subject line. Only reading the body tells a delivery complaint from a quote request. That is where, and only where, AI in the workflow pays its way.
Is a rule enough
1Can the sorting be decided without reading the message body, from the sender or subject?
No The text has to be read: move on to the next question.
2Do more than ten e-mails a day arrive in categories that the sender alone does not reveal?
No An Outlook rule or a Gmail filter is enough, with one folder per known sender.
3Can you describe each category in one sentence, with an example and a counter-example?
No First write the sorting instructions for a stand-in, then come back.
4Can the content of the e-mails be sent to an AI provider under a data processing agreement?
No Stick to rules, or to an AI hosted on your own servers; see the lesson on GDPR.
Yes to allWorkflow with AI: classify into a closed list, extract to JSON, prepare a draft, alert on anything urgent.
Ask the questions in order. The first “no” tells you what to do; four “yes” answers lead to the AI workflow.
The categories of a typical contact inbox, and what the workflow does with them
Category
Clue in the text
Workflow action
Level
devis
Price request, quantities, site or project
Devis label, acknowledgement draft with the missing questions
Orange
commande
Purchase order attached, reference, “I confirm”
Commandes label, row in the tracking spreadsheet
Green
livraison
Delay, parcel, pallet, carrier, promised date
Livraisons label, draft with the extracted order number
Orange
reclamation
Damaged product, mistake, dissatisfaction
Teams alert to the manager, acknowledgement draft with no commitment
Orange
facturation
Invoice, reminder, bank details, credit note
Comptabilité folder, no draft
Green
candidature
CV, cover letter
Forward to the person in charge of recruitment, no AI afterwards
Green
autre
Nothing fits, or two categories are tied
À trier label, no action
Green
The workflow sheet, before you open the tool
Automation sheet · Sorting the contact inbox and preparing replies
Box
What is decided
Trigger
An e-mail arrives at contact@, excluding newsletters, auto-replies and messages already filed by a rule. Polled every five minutes during business hours.
Data
Sender, subject, body text, thread ID, attachments (name only). Personal data: yes, customers’ names and contact details, sometimes a delivery address.
Decisions
Category from devis, commande, livraison, reclamation, facturation, candidature, autre. Extraction: company, order number, requested date, urgency (low, normal, high), incertain. If incertain is true or category is autre: no draft.
Actions
1. Apply the category label. 2. For devis, livraison and reclamation: write and create a draft in the thread. 3. If urgency is high: Teams message to the Service client channel. 4. Row in the log. Execution account: contact@, dedicated connection.
Inspection
Amber for every draft, red for disputes, personal data and contracts (label only). Errors: e-mail to Sophie, the workflow owner; Karim stands in for her. Log: Tri contact spreadsheet. Sorting reviewed every Friday for the first month.
The contact inbox workflow
1Email received
Trigger on the shared mailbox, newsletters and automatic replies excluded.
2Rank
One category out of six, or “autre” when nothing fits.
3Extract
Client, reference, deadline, urgency and an “uncertain” field, in JSON.
4Draft
Reply prepared in the customer’s thread, never sent.
5File and alert
Label or folder applied, Teams alert for anything urgent.
Nothing goes to the customer: the workflow sorts, prepares and alerts. A person reviews and sends.
Classify into a closed list, with an output for everything else
In n8n, the Text Classifier node receives the text to classify in “Input Prompt” and a list of categories, each with a name and a description. The description does all the work: it tells the model what the category covers, with an example and what falls outside it. One option decides what happens to messages that fit nowhere, “When No Clear Match”: by default “Discard Item”, which drops the email without flagging it. Set it to “Output on Extra, 'Other' Branch” so that an “other” branch receives these messages and applies the À trier label.
The category descriptions, to paste into the Text ClassifierText
devis
Le client demande un prix, un chiffrage ou une disponibilité pour une prestation ou des produits
qu'il n'a pas encore commandés. Exemple : « Pouvez-vous me chiffrer 40 m de clôture ? »
Ce n'est pas un devis : une question sur une commande déjà passée (voir livraison).
livraison
Le client parle d'une commande déjà passée : date de livraison, retard, transporteur,
colis ou palette manquant. Exemple : « La palette prévue mardi n'est pas arrivée. »
Ce n'est pas une livraison : un produit reçu abîmé ou faux (voir reclamation).
reclamation
Le client se plaint d'un produit reçu, d'une erreur, d'un comportement, ou annonce un litige.
Exemple : « Deux panneaux sont arrivés fendus, je refuse la facture. »
(… une description de ce modèle pour commande, facturation et candidature)
Keep category names in lower case, with no accents or spaces: they become the names of the node’s outputs and the values tested further along the workflow.
Extraction is done separately, with n8n’s Information Extractor, which accepts a JSON schema. The schema below enforces the types: a date in YYYY-MM-DD format or null, an urgency from a list of three values, and an “incertain” (uncertain) boolean that the model sets to true when the message is ambiguous. Paste it into the node’s JSON schema definition option.
The extraction JSON schemaJSON
{
"type": "object",
"properties": {
"societe": { "type": ["string", "null"], "description": "Nom de l'entreprise du client, null si absent" },
"numero_commande": { "type": ["string", "null"], "description": "Référence de commande telle qu'écrite, ex. CDE-24817" },
"date_souhaitee": { "type": ["string", "null"], "description": "Date demandée par le client, format AAAA-MM-JJ" },
"urgence": { "type": "string", "enum": ["basse", "normale", "haute"],
"description": "haute seulement si le client parle d'un arrêt, d'un chantier bloqué ou d'une date de demain" },
"questions_manquantes": { "type": "array", "items": { "type": "string" },
"description": "Ce qu'il faut demander au client pour lui répondre, trois au plus" },
"incertain": { "type": "boolean", "description": "true si le message est ambigu ou parle de deux sujets" }
},
"required": ["societe", "numero_commande", "date_souhaitee", "urgence", "questions_manquantes", "incertain"]
}
Prepare the draft in the thread, never send it
In n8n, the Gmail node’s Draft › Create operation creates a draft; its “Thread ID” option attaches it to the existing thread, so the client doesn’t receive a new thread with no history. In Make, the Microsoft 365 Email app offers “Create a Draft Email” for Outlook mailboxes, after the “Watch Emails” trigger, or “Watch Emails in a Shared Folder” for a shared mailbox. The draft text comes from an AI call that receives the email, the category and the extraction, with strict instructions.
The system instruction for the node that writes the draft
You prepare a draft reply for the customer service team at [company name], [sector], [town]. An employee will review it and send it themselves.
You receive: the customer’s e-mail, its category and the extracted data.
Rules:
1. Formal address, 8 lines at most, a single closing formula.
2. Do not write any price, lead time, delivery date or goodwill gesture: if the customer asks for one, write [TO COMPLETE: lead time] or [TO COMPLETE: price].
3. For a complaint, acknowledge receipt and say that someone will take over the case today. Do not admit any fault.
4. If information is missing to reply, ask for it in a list, three questions at most.
5. End with the signature: [First name], customer service, [phone].
Reply with the message body only, without a subject line.
Roughly what you should get
A message of five to eight lines that restates the customer’s request in their own words, asks the missing questions in a list and leaves [TO COMPLETE] brackets wherever a price or date would be needed. The brackets are there to block careless sending: a draft that still contains any does not go out.
The visible brackets are a safeguard: the reviewer sees at a glance what they need to decide.
The n8n expressions for the Gmail Draft › Create nodeText
Subject : Re: {{ $('Gmail Trigger').item.json.subject }}
Message : {{ $json.text }}
Thread ID : {{ $('Gmail Trigger').item.json.threadId }}
To Email : {{ $('Gmail Trigger').item.json.from.value[0].address }}
// $('Gmail Trigger') relit la sortie du déclencheur, quel que soit le nœud précédent.
// $json.text est la réponse du nœud d'IA qui a rédigé le brouillon.
// Vérifiez le nom exact des champs dans la sortie du déclencheur (panneau de droite) :
// ils changent quand l'option Simplify est activée ou non.
All that remains is to set up the trigger so that the AI actually reads the message. The n8n Gmail trigger polls the mailbox at regular intervals (“Poll Times”) and returns at most 50 messages per run (10 by default, “Max Emails per Poll” setting). Its “Simplify” option, on by default, returns only the IDs, labels and headers: turn it off to pass the message body to the AI. The “Search” filter accepts Gmail search operators; use it to exclude what a rule has already filed, for example -label:factures -category:promotions -from:noreply. Exclude out-of-office auto-replies too: a sorting workflow never prepares a reply to a machine, otherwise two out-of-office messages end up replying to each other.
Who decides for each e-mail
The workflow acts alone
Apply a label or move to a folder
Add a row to the tracking table
Alert the team to an urgent message
The workflow prepares, a person sends
Draft reply to a quote request
Acknowledgement of a complaint
Reply to a question about a lead time
No draft, a person handles it
Formal notice, dispute, contract cancellation
Data access or erasure request
Any message that commits to an amount or a contract
The level is set per category, on the sheet, before you build.
Export thirty real e-mails from the last two weeks, anonymised (names and phone numbers replaced).
Classify them yourself before running the workflow, in a two-column table: your category, the AI’s.
Count the discrepancies. If there are more than three out of thirty, rewrite the descriptions of the categories that get confused.
Deliberately send an off-topic message (a partnership offer): it must land in “autre”, with no draft.
Send a complaint that threatens legal action: it must get a label and an alert, and no draft.
Mistakes to avoid
Leave the Text Classifier’s “When No Clear Match” option at its default value.
By default, “Discard Item” drops any message that fits no category. It gets no label and no alert, and nobody knows it exists until a customer chases it up.
Choose “Output on Extra, 'Other' Branch”, connect that output to an À trier label, and check each week what lands there: that is where new categories are born.
Connecting the AI to a Gmail trigger left in Simplify mode.
Simplified mode returns IDs, labels and headers. The AI classifies and drafts from a preview, and the drafts answer the first sentence instead of the question asked further down.
Turn off Simplify, find the field holding the full text in the output panel, and send that field to the classification and drafting steps.
Creating the draft without the thread ID, just adding “Re:” in front of the subject.
The customer receives a new thread with no history. In a shared inbox, two colleagues sometimes each reply separately, in two different threads.
Enter the Thread ID (Gmail) or use the reply linked to the message in Outlook, and test on your own address that the reply appears under the original message.
Prepare a draft for every category, including disputes and cancellations.
A well-written draft is quick to review and gets sent on reflex. In a dispute, an apology can be read as an admission of fault; on a cancellation, a promise of a refund commits the company.
Set the level for each category on the sheet before you build: red for disputes, contract cancellations, personal data and contested amounts, with a label and an alert, and no draft at all.
3 SME situations followed from start to finish: the prompts exactly as they were written, the model answer to aim for, and what was checked before sending.
Example 1
A property management firm’s shared inbox
Hélène heads the co-ownership department at a 15-person property management firm (syndic de copropriété) in the Chartrons district of Bordeaux. The shared Outlook inbox receives around 90 messages a day: insurance claims, requests from co-owners, tradespeople’s quotes, disputed service charge demands. Three property managers pick from it every morning, and water damage reports sometimes wait two days.
From report to same-day callback
1Shared mailbox
Watch Emails in a Shared Folder, every fifteen minutes.
2AI to JSON
Category, address, unit, urgency.
3Router
One folder per category.
4Urgent insurance claim
Teams message to the on-call manager, acknowledgement draft.
5Property manager
Reviews, completes, sends and calls back.
Request 1
Make scenario settings: Microsoft 365 Email trigger “Watch Emails in a Shared Folder” on the shared mailbox, then an AI module with the instruction: “Classify this e-mail into one category: sinistre, demande_coproprietaire, devis_artisan, appel_de_fonds, assemblee_generale, autre. Extract the building address exactly as written, the lot number if given, and urgence (haute if there is an active leak, no heating or a danger). Reply in JSON following the schema provided.”
Model answer
{
"categorie": "sinistre",
"adresse_immeuble": "14 rue Notre-Dame",
"numero_lot": "23",
"urgence": "haute",
"resume": "Fuite d'eau active au plafond de la salle de bains depuis l'appartement du dessus, depuis ce matin.",
"incertain": false
}
Hélène adds a router: each category moves the message to a subfolder, and high-urgency claims trigger a Teams message to the on-call property manager.
Request 2
“Create a Draft Email” module for the sinistre category, with the instruction: “Prepare an acknowledgement of no more than six lines. Say that the building manager will call back the same day. Ask for photos and the contact details of the occupant upstairs if they are missing. Do not mention any insurance cover or any date for work to be carried out.”
Model answer
Dear Madam,
We have received your report of a leak at 14 rue Notre-Dame, unit 23. Your building’s property manager will call you back today.
To open the file, could you send us:
- two or three photos of the ceiling and the affected area;
- the name and phone number of the occupant of the flat above, if you have them.
Service copropriété, [agency phone number]
She keeps the draft as it is for insurance claims. For disputed service charge demands, she removes the drafting step: a draft on a disputed amount seems to her more risky than useful.
What was checked before sending
Test on forty anonymised e-mails from the previous month: 37 correctly classified, 3 mix-ups between demande_coproprietaire and assemblee_generale, fixed with a more precise description.
Deliberate error: a tradesperson’s e-mail containing the word “leak” in a quote, classed as devis_artisan rather than sinistre once the description was corrected.
The facts: the address and unit in the draft compared with the original message on twenty drafts, with no discrepancies.
Region: Make organisation created in the EU zone; choice of AI provider checked in the data-flow register.
Order of magnitude: the morning sort drops from about 45 minutes to ten minutes of review, and a water damage report gets a call the same day instead of two days later.
Example 2
A law firm that keeps AI out of its mailbox
Thomas is a legal assistant at an 8-person law firm in Pau. The firm’s mailbox receives documents from the courts, messages from other lawyers, appointment requests and a lot of sales prospecting. The partner refuses to let the content of client e-mails go to an AI provider, because of professional secrecy.
Before and after the four rules
Before
412 unsorted messages over two weeks
Court documents buried in sales pitches
Every appointment written by hand
After
Four server-side rules, active with Outlook closed
Court procedure and registries filed separately
A quick action for appointments
No client data given to an AI
Request 1
Inventory of the inbox over two weeks, compiled by Thomas in Excel: 412 messages, with sender, domain and subject. Question put to the firm’s assistant, on an export WITHOUT the message bodies: “Here are 412 rows of sender, domain, subject. Group them by domain and suggest one Outlook rule for each group of more than ten messages.”
Model answer
Group 1 · secure lawyers’ e-mail domain, 96 messages: rule “Actes et notifications”, move to the Procédure folder, mark as important.
Group 2 · court registries, 61 messages: rule “Greffes”, move to Procédure, red category.
Group 3 · subjects containing “rendez-vous” or “RDV”, 48 messages: rule “Rendez-vous”, yellow category.
Group 4 · prospecting platforms and directories, 73 messages: rule “Prospection”, move to a folder read once a week.
Remainder: 134 messages with no common pattern, to be sorted by hand.
Thomas creates the four rules in Outlook on the web. No message body has left the firm: only senders and subject lines were used for the analysis.
Request 2
Outlook Quick Step “Répondre RDV”: reply with a template, categorise as “RDV proposé”, move to the Rendez-vous folder. Template: “Hello, thank you for your message. Maître [name] can see you at the following times: [slots]. Could you let us know which suits you? The practice, [phone].”
Model answer
One click on the quick action opens the pre-filled reply: Thomas adds the time slots from the shared calendar and sends. The message moves to the Appointments folder with its category.
No AI, no platform: rules and Quick Steps are enough for this volume. Thomas keeps his time for the 134 remaining messages.
What was checked before sending
The data: no message body sent to an AI, only the headers from an export, with the partner’s agreement.
Rules tested over a week: a message from a fellow lawyer was misfiled in Prospecting, fixed with an exception for the lawyers’ e-mail service domain.
The Prospecting folder is reviewed every Friday, so that a misfiled client request does not sit there for another week.
Order of magnitude: two thirds of messages file themselves, and the daily sort drops from about forty minutes to fifteen, with no extra subscription or subcontractor.
Example 3
An agricultural parts distributor’s customer service
Romain is customer service manager at a distributor of spare parts for agricultural machinery, with 40 employees, in Marmande. The Gmail mailbox sav@ receives 60 to 120 messages a day, far more at harvest time. Farmers write from their phones, with no subject line and a photo of the part, and expect a reply within the hour when a machine is out of action.
A harvest-time message, minute by minute
10 h 02Message received
A photo and three lines sent from a phone.
10 h 04Classified and extracted
disponibilite_piece, machine down.
10 h 04Draft and alert
Draft in the thread, Teams message to the counter.
10 h 09Sent by the technician
Stock and price filled in from the ERP.
Request 1
Self-hosted n8n workflow: Gmail trigger every two minutes, Simplify turned off, Search: -from:noreply -category:promotions. Text Classifier with the categories disponibilite_piece, suivi_commande, retour_garantie, technique, autre, and “When No Clear Match” on the “Other” branch. Information Extractor with the schema: marque, modele_machine, reference_piece, machine_arretee (boolean), numero_commande, incertain.
Model answer
{
"marque": null,
"modele_machine": "faucheuse à disques de 3 m",
"reference_piece": null,
"machine_arretee": true,
"numero_commande": null,
"incertain": true
}
The part number is missing and incertain is true: the workflow does not prepare an availability reply. It applies the Urgent label and sends a Teams message to the counter, who calls the farmer back.
Request 2
For disponibilite_piece with an extracted part number and incertain set to false: draft instruction. “Prepare the reply to the customer. Use the part number exactly as extracted. Do not write the price, stock or lead time: leave [TO COMPLETE: stock and lead time] and [TO COMPLETE: price excl. VAT]. If machine_arretee is true, start with: We are dealing with your request as a priority. Six lines at most.” Then Gmail Draft › Create with the message’s Thread ID.
Model answer
Hello,
We are treating your request as a priority.
Part requested: mower blade, reference [extracted reference], for a 3 m disc mower.
Availability: [TO COMPLETE: stock and lead time]
Price: [TO COMPLETE: price excl. VAT]
You can collect it from the Marmande counter or have it delivered by carrier.
Romain, customer service, [phone]
The counter technician opens the draft, checks stock in the ERP, replaces the two brackets and sends it. Romain refused to let the workflow read the stock itself until he has three months’ experience of the sorting.
What was checked before sending
Test on fifty messages from the previous harvest: the mix-ups came from messages with no text, just a photo, which are now sent to “autre”.
Deliberate error: an out-of-office message from a dealership, filtered out by the Search filter before any AI.
The facts: the part number in the draft compared with the one in the message on thirty cases; two digit-copying errors, hence the rule “incertain if the part number is not fully legible”.
Tone and audience: drafts reviewed by a technician, who shortened the opening line for readers on their phones.
Order of magnitude: in season, an availability reply goes out in five minutes instead of twenty, and machines that have broken down move to the front of the queue instead of waiting their turn.
Élodie is an operations assistant at an event equipment hire company in Mérignac (marquees, tables, crockery; 9 employees). In season, the contact@ inbox on Gmail receives 50 to 70 messages a day: quote requests for weddings and seminars, booking changes, questions about delivery and collection, breakage complaints, supplier invoices and sales pitches. Quotes not dealt with the same day go to a competitor. Write the workflow sheet, the categories with their descriptions, the draft instruction and the test plan.
List what a simple rule or Gmail filter already handles, without AI.
Fill in the five boxes of the automation sheet.
Write five to seven categories with a one- or two-sentence description each, including “other”.
Set the level of control for each category (green, amber, red).
Write the system prompt for the draft, including what it prohibits.
Describe the three trick messages you will send to test the workflow.
See the answers
Automation sheet · Sorting the hire company’s contact inbox
Box
What is decided
Trigger
Email received on contact@ (Gmail), every five minutes from 8am to 7pm, excluding the Factures and Promotions labels applied by the filters.
Category: devis_evenement, modification_reservation, logistique, casse_reclamation, autre. Extraction: event date (YYYY-MM-DD), venue, number of guests, equipment mentioned, incertain.
Actions
Label; draft for devis_evenement and logistique; Teams alert for an event date less than seven days away; row in the requests spreadsheet.
Inspection
Amber for drafts, red for casse_reclamation (label and alert only). Élodie is the owner; the operations manager stands in for her. Sorting reviewed every Friday in season.
Before AI, two Gmail filters handle a third of the volume: invoices from the six regular suppliers go to the Factures label, bulk mailings to Promotions. The workflow only sees messages that need reading.
The category descriptionsText
devis_evenement
Demande de prix ou de disponibilité pour un événement à venir : mariage, séminaire, fête.
Exemple : « Tente pour 120 personnes le 14 juin à Saint-Émilion, quel tarif ? »
modification_reservation
Le client a déjà une réservation et change la date, les quantités ou le lieu.
logistique
Horaire de livraison ou de reprise, accès au lieu, contact sur place.
casse_reclamation
Matériel cassé, manquant, sale ou en retard ; contestation d'une facture de casse.
autre
Prospection, partenariat, candidature, tout ce qui ne colle à aucune catégorie.
The draft instruction
You prepare a draft for the bookings team at an event equipment hire company in Mérignac. Élodie will review and send it.
You receive the customer’s e-mail and the extracted data (date, venue, guests, equipment).
Rules: formal address, 8 lines at most. No price, no confirmed availability, no discount: write [TO COMPLETE: rate] and [TO COMPLETE: availability]. If the date, venue or number of guests is missing, ask for them in a list. End with: Élodie, bookings team, [phone].
Reply with the message body only.
Roughly what you should get
An acknowledgement of five to eight lines that repeats the date and venue given by the customer, asks for what is missing (often the number of guests or lorry access) and leaves the rate and availability in square brackets.
Test 1: a quote request with no date. Expected: devis_evenement, draft asking for the date, incertain set to false.
Test 2: “three broken glasses, I dispute the €45”. Expected: casse_reclamation, alert, no draft.
Test 3: a listing offer from a directory. Expected: autre, label To sort, no draft. If the message disappears, the “When No Clear Match” option was left on “Discard Item”.
Practise
Three more exercises, from the most guided to the most demanding. The material is provided in full: copy it into your tool, then check your work against the criteria before opening the answers.
Level 1 · guided10 min
Classify eight emails by hand before the AI
An industrial cleaning company in Blanquefort (30 employees) wants to classify its contact mailbox into the categories devis, planning, reclamation, facturation, recrutement, autre. Classify the eight messages below yourself, note the control level (green, amber, red) of each, and spot those a rule without AI would have been enough to file.
The material to work on
1. From: comptabilite@fournisseur-produits.fr · Subject: Facture F-2026-1187 · “Please find attached our invoice for October.”
2. From: responsable.site@logisticien.fr · Subject: (empty) · “Your team didn’t come to warehouse B last night. The loading bays are dirty and we have an audit on Thursday.”
3. From: m.durand@gmail.com · Subject: Application for cleaning operative · “I would like to apply for a night shift position. CV attached.”
4. From: achats@clinique-exemple.fr · Subject: Tender for operating theatre cleaning · “Could you give us a price for cleaning 6 operating theatres, 7 days a week?”
5. From: noreply@plateforme-annuaire.com · Subject: Your visibility in 2027 · “Appear at the top of local searches.”
6. From: syndic.lac@gestion.fr · Subject: Change of day · “From December, could you come on Tuesdays instead of Mondays?”
7. From: direction@logisticien.fr · Subject: Notice · “Following repeated failures, we are terminating the contract on 31 January.”
8. From: compta@clinique-exemple.fr · Subject: Reminder · “Your September invoice has a VAT error, please issue a credit note.”
Check your work
Each message has a single category
Message 7 is classed as red, with no draft
Messages 1 and 5 are recognised as sortable by a rule
Message 2 is a complaint, not a scheduling request
Message 8 is filed under billing rather than complaints, with a justification
See the answers
The corrected classification
Message
Category
Level
Is a rule enough?
1
facturation
Green
Yes, supplier sender
2
reclamation
Amber, immediate alert to the team leader
No
3
recrutement
Green, forward without AI
Almost: the word “application” in the subject line
4
devis
Amber, acknowledgement draft with questions
No
5
autre
Green
Yes, noreply sender
6
planning
Orange
No
7
reclamation
Red, no draft, alert to management
No
8
facturation
Amber, passed to accounts
No
The description that separates complaints from billing
reclamation: the customer complains about the quality of a service carried out or not carried out (missed visit, poor work), or announces a cancellation of the contract or a dispute.
facturation: invoice, payment reminder, error in an amount or VAT rate, credit note request, bank details. An invoice error counts as facturation, even if the tone is unhappy.
Roughly what you should get
Two descriptions that settle message 8: the nature of the request counts, not the tone.
Level 2 · independent20 min
Write the extraction schema for an after-sales inbox
A pellet stove manufacturer in Saint-Médard-en-Jalles (18 employees) receives after-sales requests by e-mail. Write the JSON schema the AI must fill in so that the technician can call back without rereading the message, then the system instruction for the extraction node. Check your schema against the three messages below by writing the expected JSON for each.
The material to work on
Message A · “Hello, our Alto 9 kW stove has been showing error code E4 since this morning and shuts down after ten minutes. Serial number ALT9-23-04512. Installed in 2023 by your Libourne dealer. We have a baby and the house is cold. Mrs Petit, 06 12 34 56 78.”
Message B · “Could you send me the manual for the Sirocco model? Thank you. J. Morel”
Message C · “The stove has been making a fan noise since last week’s service. I can’t remember the model. Is it under warranty?”
Check your work
The schema contains an “incertain” boolean field and an “urgence” field as a list of values
The serial number and error code are strings, never numbers
Every field missing from the message is null, with no invented value
The instruction states when urgency is high, using observable criteria
The JSON for message C has incertain set to true and the model set to null
You extract the information from an after-sales request for a pellet stove manufacturer. Fill in the schema provided.
Rules: copy the model, serial number and error code exactly as written. A missing field is null: never infer its value. urgence = haute if the stove no longer heats and the customer mentions a young child, an elderly or ill person, or a home with no other heating; normale for a fault without these mentions; basse for documentation or a question. incertain = true if the model is missing for a fault, or if the message mixes several requests.
Roughly what you should get
Message A: breakdown, Alto 9 kW, ALT9-23-04512, E4, 2023, the phone number, high urgency, incertain false. Message B: documentation, Sirocco, everything else null, low urgency, incertain false. Message C: breakdown, model null, normal urgency, incertain true.
Level 3 · demanding case35 min
Diagnose a sorting workflow that goes wrong in production
The sorting workflow of a Bordeaux group travel agency (12 employees) has been running on n8n for ten days. The material below brings together the configuration and the team’s complaints. Find the cause of each symptom, propose the exact fix (setting, expression or instruction) and say what needs testing before you reopen the workflow.
The material to work on
CONFIGURATION
Gmail Trigger : Poll Times toutes les minutes · Simplify activé · Read Status : Unread emails only · Search : (vide)
Workflows publiés : « Tri contact » et « Tri contact copie essais », identiques
Text Classifier : catégories reservation, modification, annulation, groupe_scolaire, fournisseur · When No Clear Match : Discard Item
Nœud d'IA « Rédiger » : consigne « Rédige une réponse aimable au client. »
Gmail Draft › Create : Subject = Re: {{ $json.subject }} · Message = {{ $json.text }} · pas de Thread ID
PLAINTES DE L'ÉQUIPE
1. « Certains courriels de partenaires hôteliers n'ont ni libellé ni brouillon, ils sont introuvables dans le flux. »
2. « Les brouillons répondent souvent à côté, comme si l'IA n'avait lu que le début. »
3. « Le même message reçoit deux ou trois brouillons. »
4. « Une cliente a reçu un brouillon envoyé par erreur qui promettait un remboursement intégral de son voyage annulé. »
5. « Les réponses partent dans un nouveau fil, les clients ne retrouvent plus l'historique. »
6. « Nous avons des brouillons qui répondent aux messages d'absence des professeurs. »
Check your work
Each of the six symptoms has a specific cause taken from the configuration
The fix for complaint 1 names the “Other” branch
Complaint 3 is traced to the test copy left published
Complaint 4 leads to moving “annulation” to red, not just rewriting the instruction
A test plan of at least four trick messages comes before reopening
See the answers
Causes and fixes
Complaint
Cause
Correction
1
Hotel partners fit no category: Discard Item drops them
When No Clear Match set to “Output on Extra, 'Other' Branch”, label To sort, and a better-described supplier category
2
Simplify enabled: the AI does not receive the full body
Turn off Simplify and give the AI the full text
3
Two identical workflows are published: the copy made for testing also processes every message
Unpublish the test copy, and apply a “processed” label at the end of the workflow so a message is never handled twice
4
Cancellation handled like the rest, instructions that prohibit nothing
Cancellation on red: label and alert, no draft; instructions with prohibitions and brackets
5
Draft created without a Thread ID
Thread ID = the ID of the original thread, read from the trigger
6
No filter on automatic replies
Search: -from:noreply -subject:"absence" and a subject check before the AI
The corrected draft settingsText
Search (Gmail Trigger) : -from:noreply -from:mailer-daemon -subject:"absence" -label:traite
Subject : Re: {{ $('Gmail Trigger').item.json.subject }}
Message : {{ $json.text }}
Thread ID : {{ $('Gmail Trigger').item.json.threadId }}
// Dernier nœud du flux : Gmail › Message › Add Label « traite »,
// pour qu'un message déjà traité ne repasse jamais dans le flux.
The draft instruction, rewritten
You prepare a draft for a group travel agency in Bordeaux. An adviser will review and send it.
Rules: formal address, 8 lines at most. Do not write any price, availability, promise of a refund or credit note, or any date the customer has not given: use [TO COMPLETE: …]. Use the group name and travel dates exactly as written. Sign: [First name], group travel adviser, [phone].
Reply with the message body only.
Roughly what you should get
A short draft, faithful to the customer’s dates, with square brackets wherever the adviser has to decide.
Before reopening: a message from a hotel partner (expected in “other”), a long message with the question in the last paragraph (the draft must answer it), a cancellation (no draft), a teacher’s absence (doesn’t go through the workflow).
All the course prompts to copy, both for the assistant that helps you build and for the AI step of a flow, including answers, practical examples and practice tasks, sorted by module and lesson, with filters to find the right one.
For each lesson, the main exercise and the three graded practice tasks with their materials, to do on paper or alongside your automation platform; all the answers are grouped at the end.
The course’s practical examples, job by job: the situation, the prompt as it was written, the model answer and what was checked before letting the flow run.
All the lessons in a single PDF: objectives, written course with its diagrams, tables and requests, common mistakes, exercise and key takeaways. The practice exercises and answers are in the workbook, the examples in the collection.
Your notes stay on this device; they are not sent anywhere.
A question for the tutor
A result that doesn’t match the model answer, a prompt that gets you nowhere, a case specific to your business: write to us with your prompt and the response you got. A Bonbay Académie trainer replies within 24 working hours, on your case.