Automate your work with AI, from the first rule to the complete workflow
Your progress
0 lesson completed out of 50

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.

Your progress is saved in this browser. Log in to your client area to pick it up on your other devices.

Video transcript

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

  1. Rules first, with no AI and no subscription
  2. When AI becomes useful
  3. The workflow sheet, before you open the tool
  4. Classify into a closed list, with an output for everything else
  5. Prepare the draft in the thread, never send it
  6. 3 worked examples, followed from start to finish
  7. Exercise with answers · An event equipment hire company’s contact inbox
  8. 3 practice exercises, from guided to demanding cases
  9. 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.