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 25, module 7: A flow that lasts Testing, planning for errors, retries and the fallback path Your flow will break down one day. Where will the request land that day?
Before publishing, ten test cases, including four traps. An empty field An off-topic request A text in English A duplicate Four families of errors, four different responses. [Diagram: Frequency and severity of errors] Vertical: severity; horizontal: frequency. Configuration Logic Data Preferred: Temporary A temporary error sorts itself out, with three spaced-out retries. [Diagram: Automatic retry] 1. Attempt 2. Temporary failure 3. Wait 4. New attempt A retry replays everything: without care, the customer gets two emails. Search before creating No retry on a send One ID per request The fallback path files the case and alerts Claire. Prompt: Prepare 10 test quote requests for a joinery firm in Pessac: 6 normal, 4 traps (empty field, off-topic, English, duplicate). One per block. Response: Ten numbered requests, ready to paste into the form : six plausible jobs (windows, door, staircase), then the four traps, each flagged with its number and its trap. In the exercise, you protect the flow of a property survey firm.
Your turn: Protect the flow of a property survey firm The written lesson, the worked exercise and the quiz are below the video.
Lesson 25 of 50 · module 7, a workflow that lasts
Test, and plan for errors, retries and the fallback path
A flow always ends up hitting an error: an overloaded AI service, a renamed spreadsheet, a request with no phone number. Before publishing it, test it on ten cases including four traps, set automatic retries on the fragile steps and plan a fallback path that hands the case to a person, without losing anything or sending anything twice.
31 min of reading
1 min 46 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
Build a test set of ten cases, including four traps, and run it before any publication
Set up automatic retries and the error output in n8n, Make and Zapier according to the family of error
Design the fallback path that files the case for review and notifies the flow's owner
What’s covered
Test with ten cases, including four traps
Four families of errors
Set up automatic retries
The fallback path
The Check box of the flow sheet, completed
3 worked examples, followed from start to finish
Exercise with answers · Protecting a property survey firm’s flow
3 practice exercises, from guided to demanding cases
The quiz
Key points
The question is not whether the flow will fail, but where the request lands that day and who knows about it.
Ten test cases, including four traps, are run before publication and then after every change.
A temporary error is retried; missing data goes to “To review”; an expired credential triggers an alert.
A retry replays steps: search before creating, and never set an automatic retry on a send to a customer.
A flow with no fallback path and no alert to its owner is not ready for production.
A flow that worked ten times in a row during testing proves nothing. The day the AI service is overloaded, a colleague renames the spreadsheet tab or a customer fills in the form in English, it stops, or worse, it carries on with empty data. The useful question is not “will my flow break down?” but “where does the request end up that day, and who knows about it?”. This lesson adds what makes the Pessac joinery firm’s flow reliable: a test set, retries set step by step and a fallback path.
Test with ten cases, including four traps
A test set is a list of cases you run through the flow before publishing it, then after every change. You prepare it once, in twenty minutes, and it serves for the whole life of the flow. The rule in this course: six normal cases, four traps. The normal cases come from real requests from the last three months, anonymised (name, phone number and address replaced). The traps are the ones you are bound to see one day.
The Pessac joinery firm’s test set
Case
What is submitted in the form
Expected result
1 to 6, normal
Six real anonymised requests: aluminium windows, front door, oak staircase, shutters
A complete row in “Demandes de devis”, a Gmail draft ready to review
7, empty field
A request with no phone number or e-mail, just “call me back”
No draft; a row in “To review” with the reason “no way to contact the customer”
8, off-topic
A sales pitch for payroll software
Category “other”, no follow-up scheduled
9, another language
A request in English from a British homeowner in Cap Ferret
Fields extracted correctly, draft in French for Claire to review
10, duplicate
Case 1 resent two minutes later
Only one row in the spreadsheet, the second request flagged as a duplicate
Have an AI prepare the test set
You are preparing the test set for an automated flow. The flow receives quote requests from the website form of a 12-person joinery firm in Pessac (wooden and aluminium windows, doors and staircases), extracts the name, e-mail, phone number, town, type of work and desired timescale, then prepares a draft reply.
Write 10 requests as a customer would type them in the form’s “Votre projet” field, with a made-up name, e-mail and phone number in French format (no real people):
- 6 normal, varied requests (towns in Gironde, different budgets and timescales);
- 4 traps: one with no way of contacting the customer, one off-topic (sales pitch), one in English, one that repeats request no. 1 with a typo in the name.
For each request, give the expected result of the flow on a separate line.
Format: one numbered block per request, with no surrounding comments.
Roughly what you should get
Ten numbered blocks ready to paste into the test form, each followed by an “Expected result” line. Check that the contact details are genuinely made up and that each trap is clear-cut: an ambiguous trap tests nothing.
Keep the test set in a “Tests” tab of the spreadsheet: you will reuse it every time the flow changes.
Four families of errors
Put each fragile step into a family: missing data is never fixed by retrying
Family
What it looks like
The right answer
Temporary
“429 Too Many Requests”, “503 Service Unavailable”, timeout: the AI service or Google is overloaded for a few moments
Automatic retry, three spaced attempts
Data
Required field empty, incomplete JSON from the AI, date in the wrong format
Error output to the “To review” tab, without retrying
Configuration
“401 Unauthorized”, expired credential, renamed tab or column, quota used up
Stop and alert the owner immediately: nothing will work until someone fixes it
Logic
No technical error: the AI classified a staircase as a “door”, the draft quotes the wrong lead time
Human check (amber level) and “uncertain” field filled in by the AI
Error frequency and severity
HighSeverityLow
Configuration
Rare but blocking: everything stops until someone fixes it. Immediate alert.
Logic
Frequent and invisible: the flow succeeds with a wrong answer. Human review.
Data
Rare and local: only one case affected. It goes to “To review”.
Temporary
Frequent and harmless: the service responds on the second attempt. Automatic retry.
RareFrequencyFrequent
The highlighted box is the one to fix first: it happens every week and fixes itself.
Set up automatic retries
All three platforms can retry, each in its own way. In n8n, each node has a “Settings” tab with the “Retry On Fail” option and the “On Error” menu: “Stop Workflow” stops everything, “Continue” moves on with the last valid data, and “Continue (using error output)” sends the faulty case to a separate output that you can connect wherever you like. In Make, right-clicking a module and then “Add error handler” offers Skip, Retry, Resume, Commit and Rollback; Retry requires “Store incomplete executions” to be enabled in the scenario settings. In Zapier, Autoreplay replays failed executions on Professional plans and above; manual replay from “Zap history” is available on all plans.
In n8n, set up retry and the error output for the AI node
Open the “Classer les demandes de devis” workflow and double-click the node that calls the AI.
Go to the “Settings” tab, next to “Parameters”.
Turn on “Retry On Fail”, then set the number of tries to 3 and the wait between tries to 5,000 milliseconds in the two fields that appear.
In the “On Error” menu, choose “Continue (using error output)”: a second output, marked as an error, appears to the right of the node.
Connect this output to a Google Sheets node that adds a row to the “To review” tab, then to a Gmail node that alerts Claire.
Save, test with case 7 from the test set, then publish (“Publish” button at the top right since n8n version 2).
Labels may vary with the tool version: look for the words “Retry” and “Error” in the node or module settings. In Make, the Retry handler offers “Automatically complete execution”: set to “Yes”, it retries with a number of attempts and an interval you set (for example three attempts every 15 minutes); set to “No”, the case waits in the incomplete executions tab for someone to rerun it.
Automatic retry
1Try
The step calls the AI service or Google Sheets.
2Temporary failure
Service overloaded (429, 503) or timeout.
3Waiting
Five seconds in n8n, fifteen minutes in Make depending on your setting.
4New attempt
After the third failure, the case goes down the fallback path.
Three attempts are enough for a temporary error. Beyond that, the problem is no longer temporary.
The fallback path
The fallback path is where everything the flow could not handle lands. For the joinery firm, it is a “To review” tab in the spreadsheet, with the date, the raw request, the reason and a link to the execution, plus an e-mail to Claire. It receives two kinds of case: technical errors (the node’s error output) and cases that look valid but are doubtful, which the flow spots itself. For the latter, a Code node placed just after the AI checks its response.
n8n Code node that checks the AI’s responseJavaScript
// Nœud Code, mode « Run Once for All Items », placé juste après l'IA.
// Chaque demande ressort avec deux champs de plus : aReprendre et raison.
// Un nœud If branché ensuite envoie aReprendre = true vers « À reprendre ».
const CATEGORIES = ["fenetre", "porte", "escalier", "autre"];
return $input.all().map((item) => {
const d = item.json;
const raisons = [];
// la catégorie doit appartenir à la liste fermée
if (!CATEGORIES.includes(d.categorie)) raisons.push("catégorie hors liste");
// il faut au moins un moyen de recontacter le client
if (!d.email && !d.telephone) raisons.push("aucun moyen de recontacter");
// l'IA a signalé elle-même un doute
if (d.incertain === true) raisons.push("l'IA signale un doute");
return { json: { ...d, aReprendre: raisons.length > 0, raison: raisons.join(", ") } };
});
Tested on 15 November 2026 with Node on two requests, one complete, the other with no contact details. The field names (categorie, email, telephone, incertain) are those of the flow’s AI JSON schema: adapt them to yours.
That leaves the case where the whole flow stops, for example because the Google credential has expired. For this, n8n offers an error workflow: a second workflow that starts with the “Error Trigger” node and that you select in the first workflow’s settings (“Options”, then “Settings”, “Error workflow” field). It runs on every failed execution and receives the workflow name, the execution URL, the error message and the last node executed. A single error workflow can monitor all your workflows. Here is the e-mail it sends to Claire, to paste into the message field of a Gmail node.
The error workflow alert e-mailText
Objet : [Flux en erreur] {{ $json.workflow.name }}
Bonjour Claire,
Le flux « {{ $json.workflow.name }} » s'est arrêté.
Étape en cause : {{ $json.execution.lastNodeExecuted }}
Message : {{ $json.execution.error.message }}
Voir l'exécution : {{ $json.execution.url }}
À faire : ouvrir l'exécution, corriger la cause, puis relancer
avec « Retry with currently saved workflow ».
En ton absence, Julien reçoit ce message en copie.
Fields checked on 15 November 2026 in the n8n documentation. The run address is missing when the error comes from the trigger itself: the message remains readable, the “View the run” line is simply empty.Where a problem request goes
1Did the AI respond after three attempts?
No Row in “To review” with the raw request, e-mail to Claire.
2Does the response follow the schema and the list of categories?
No Row in “To review”, reason “category not in list”.
3Can the customer be contacted again?
No Row in “To review”, reason “no way to contact again”.
4Is the request new?
No Flagged as a duplicate, no row added.
Yes to allRow in “Quote requests” and Gmail draft ready to review.
Every “no” leads to a specific exit: no request disappears.
The Check box of the flow sheet, completed
“Classify quote requests” sheet, after this lesson
Box
Content
Trigger
Website Tally form submitted, received by the n8n Cloud Webhook
Data
Name, e-mail, phone, town, type of work, preferred timeframe, free text. Personal data: yes (customer contact details)
Decisions
The AI classifies as window, door, staircase or other and extracts the fields as JSON, with “uncertain”; the Code node sends doubtful cases to “To review”; a request already present is a duplicate
Actions
1. Look up the request in the spreadsheet; 2. add the row; 3. create the Gmail draft; 4. follow-up at D+7. Account: the joinery's quotes inbox
Inspection
Orange. AI: 3 attempts at 5 s, error output to “To review”. Error workflow: e-mail to Claire, copy to Julien. No automatic retry on sending. Test set of 10 cases in the “Tests” tab, rerun after every change
Mistakes to avoid
Turn on “Retry On Fail” for every node in the flow, including the one that sends the e-mail to the customer.
If the e-mail went out but the service’s response did not arrive in time, the retry sends it again. The customer gets the same message twice, sometimes three times.
Keep automatic retries for reads, AI calls and writes preceded by a search. On a send, use an error output to “To review” and a manual retry, after checking.
Set “On Error” to “Continue” everywhere so the flow never stops.
The flow moves on with the last valid data or empty fields: a blank row in the spreadsheet, a “Hello ,” draft addressed to no one. The error is still there; it has just become invisible.
Use “Continue (using error output)” and connect the error output to the “To review” tab. Every problem case leaves a trace and someone is alerted.
Test the flow only with the perfect request typed yourself, then publish it.
Real requests arrive with no phone number, in English, twice, or have nothing to do with your trade. The flow breaks on the first case you did not anticipate, often on a Monday morning.
Run a test set of ten cases, six real anonymised ones and four traps, kept in a “Tests” tab and rerun after every change to the flow.
Create a Retry handler in Make, or an error workflow in n8n, without connecting it to anything.
In Make, Retry keeps nothing if “Store incomplete executions” is turned off, which is the default setting. In n8n, the error workflow only runs if it is selected in the settings of each monitored workflow.
Once you have set up the safeguard, trigger an error on purpose and check it lands where intended: the run among Make's incomplete executions, the e-mail from n8n's error workflow.
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 haulier’s delivery notes on a peak Monday
Karim is operations manager at a 35-person haulier in Bègles. His n8n flow, on a company server, reads the scanned delivery notes drivers drop off each morning, has an AI extract the note number, customer, date and reservations, then fills in the invoicing sheet. On Mondays, 120 notes arrive between 6:30am and 7:15am, and around ten used to get lost along the way.
A delivery note, from scan to spreadsheet
1Scan uploaded
The driver drops the PDF into the shared folder.
2AI, three attempts
JSON extraction, 5 seconds between tries.
3Inspection
“Uncertain” field or error: “Notes to review” tab.
4Invoicing sheet
After looking up the delivery note number.
5Teams alert
If the whole flow stops, the “Exploitation” channel.
Request 1
AI node settings: “Settings” tab, “Retry On Fail” on, 3 attempts, 5,000 milliseconds’ wait; “On Error” set to “Continue (using error output)”; the error output adds a row to the “Bons à reprendre” tab of the spreadsheet.
Model answer
Row added to “Bons à reprendre”:
Date: 17/11/2026 06:52
File: BL-2026-11-17-chauffeur07-03.pdf
Step: Extract the note (AI)
Reason: 429 Too Many Requests, 3 attempts
Execution: https://[votre-instance]/workflow/[id]/executions/[id]
Karim finds that the following Monday, 9 delivery notes out of 120 needed a second attempt and only one ended up in the fallback tab. Before, all 9 were lost without anyone knowing.
Request 2
You extract data from a scanned delivery note. Reply only with a JSON object that follows the schema provided. If a piece of information is illegible or missing, set it to null and set “incertain” to true. Never guess a delivery note number or a date.
The “reserves” field is empty because the box on the note is crossed out: “incertain” set to true sends the note for review, and invoicing does not go out with a forgotten reservation.
Request 3
Error workflow linked to the flow: an “Error Trigger” node, then a Teams message to the “Operations” channel with the workflow name, the step and the execution address.
Model answer
[Flow failed] Read delivery notes
Step: Write to the billing sheet
Message: Sheet with name "Facturation nov" not found
View the run: https://[your-instance]/workflow/[id]/executions/[id]
A colleague had renamed the tab to “Facturation novembre”. The alert arrived at 6.35am, the tab was restored at 6.50am and the notes were rerun with “Retry with currently saved workflow”.
What was checked before sending
Error triggered on purpose before go-live: an illegible delivery note and a renamed tab in a copy of the spreadsheet.
Before each retry, a lookup of the delivery note number in the billing sheet to avoid duplicates.
Every note marked “uncertain” reviewed by hand by the operations assistant against the original scan.
Rough estimate: no more delivery notes lost without anyone knowing, and half an hour saved on Mondays hunting for missing notes at invoicing time.
Example 2
An online tea shop’s orders, with no duplicate customers
Inès handles all the admin on her own for a 4-person tea shop in the Chartrons district of Bordeaux, which also sells online. Her Make scenario creates the customer in Axonaut for each website order, then prepares the invoice. On busy days the Axonaut module sometimes fails, and when she reruns it, customers appear twice.
Before and after the safeguard
Before
Customer created without a lookup
Axonaut error: the order stops, nothing is kept
Manual retry: the customer is created twice
Duplicates cleaned up by hand at month end
After
Search by address, then router
Retry: three attempts every 15 minutes
Incomplete executions kept and visible
A replayed order finds the existing customer
Request 1
Before the module that creates the customer: a module that looks up the customer by e-mail address, then a router with two routes, “customer found” and “customer to create”, with a filter on each.
Model answer
Route 1, “customer found” filter: the Axonaut ID exists, and the invoice is prepared for this customer.
Route 2, “customer to create” filter: no result, the customer is created and then the invoice is prepared.
Inès checks that an order replayed twice goes through route 1 the second time: no more duplicates. Filters and the router use no credits.
Request 2
Right-click the customer creation module, “Add error handler”, “Retry”; “Automatically complete execution” set to “Yes”, 3 tries every 15 minutes; in “Scenario settings”, “Store incomplete executions” set to “Yes”.
Model answer
Incomplete execution stored:
Module: Axonaut, create a customer
Error: response timeout
Status: retry scheduled in 15 minutes (try 1 of 3)
The order is no longer lost: it waits and reruns by itself. Inès keeps the incomplete executions tab bookmarked and checks it every Friday.
What was checked before sending
Test with an order placed twice with the same e-mail address: only one customer in Axonaut.
Error triggered by briefly disconnecting the Axonaut connection: the run does appear among the incomplete executions.
Amount of each prepared invoice compared with the website order for the first two weeks.
Rough estimate: an hour a month of cleaning up duplicates in Axonaut eliminated, and no more missing invoices at month end.
Example 3
An estate agency’s contacts, an expired connection
Mathilde is an assistant at a 9-person estate agency in Arcachon. A Zap on the Professional plan sends each viewing request from the website to Google Sheets and e-mails the relevant negotiator. After the Google account password was changed, the Zap failed for a whole weekend without anyone noticing.
A weekend outage, recovered
Friday 6pmPassword changed
Zapier’s Google connection expires.
Saturday and Sunday14 requests failed
Nobody is alerted; notifications were switched off.
Monday 9amReconnection and replay
The 14 executions replayed from Zap history.
Monday 10amInstant notifications
The next failure will be visible within minutes.
Request 1
In Zap history, select the weekend's failed runs, then “Play” and “Replay” after reconnecting the Google account in Zapier's connections.
Model answer
14 runs replayed
14 succeeded
Step “Add a row”: 14 rows added
Step “Send an e-mail to the negotiator”: 14 e-mails sent
Weekend requests are caught up on Monday at 9am. Mathilde personally contacts the four customers who had been waiting for a reply since Saturday.
Request 2
Account settings: Autoreplay enabled in the executions tab of Zap history; error notifications enabled for Mathilde and the manager, for every error.
Model answer
E-mail from Zapier received on a Saturday at 10:12am:
Your Zap “Viewing requests to Sheets” ran into an error.
Step 2, Google Sheets: the connection needs to be reconnected.
View the run and replay it.
Autoreplay will not fix an expired connection: that is a configuration error. It is meant for temporary errors; for everything else, the immediate notification is what counts.
What was checked before sending
Before the replay, a check in the spreadsheet that none of the 14 requests had been entered by hand in the meantime.
The modified Zap is published before the replay: a replay uses the published version, not the draft.
Notification tested by deliberately disconnecting the Google connection on a test Zap.
Rough estimate: a weekend outage spotted in minutes instead of two days, and fourteen customers called back on Monday morning instead of being lost.
Sandrine is an assistant at an 8-person property survey firm in Talence. Her Make scenario receives survey requests from the website through a Custom webhook, asks an AI module to extract the property address, floor area, year of construction and requested surveys as JSON, adds a row to the “Missions” Google Sheet, then sends the customer an acknowledgement through Gmail. In three weeks, three incidents: one Monday morning, the AI module returned a service-overloaded error and the request disappeared; a customer received two acknowledgements after a manual retry; a request with no year of construction created an incomplete row that nobody noticed. Build the protection for this scenario.
Fill in the five boxes of the flow sheet, detailing the Control box.
Sort the three incidents into the four families of errors and give the right response for each.
Choose Make's error handler for each module, or no handler, with a one-line justification.
Write the test set: six normal cases described in one line each and four traps specific to property diagnostics.
Describe the fallback path: where a problem case lands, who is notified, how it is picked up.
See the answers
The sheet for the “Record diagnostic requests” flow
Box
Content
Trigger
Website form submitted, received by Make's Custom webhook
Data
Name, e-mail, phone, property address, floor area, year of construction, diagnostics requested. Personal data: yes
Decisions
The AI extracts as JSON; missing or uncertain year: the case goes to “To review”; request already recorded (same e-mail and same address): duplicate
Actions
1. Look up the job in “Missions”; 2. add the row; 3. send the acknowledgement. Account: the firm's contact inbox
Inspection
Green for the acknowledgement (fixed text, no commitment). AI: Retry, 3 attempts every 15 min. “Year present” filter before the row is added. “To review” tab and e-mail to Sandrine; backup: the manager
The three incidents and their family
Incident
Family
Reply
Request lost on a Monday morning
Temporary
Retry handler on the AI module, incomplete executions enabled: the case is no longer lost; it waits or reruns by itself
Two acknowledgements
Logic (duplicate after retry)
Search module in “Missions” before adding, “no rows found” filter before sending; no automatic retry on Gmail
Row with no year
Data
Filter after the AI: no year, route to “To review” and e-mail to Sandrine, no acknowledgement or row in “Missions”
Custom webhook: no handler; if it stops receiving anything, silence monitoring will tell you.
AI module: Retry, “Automatically complete execution” set to “Yes”, 3 attempts every 15 minutes, and “Store incomplete executions” enabled in the scenario settings.
Google Sheets search: Retry too; reading creates nothing and can be replayed safely.
Adding the row: Retry, since the lookup placed before it prevents duplicates.
Gmail: no automatic retry handler; if an error occurs, Commit keeps what has been done and the case is picked up manually.
The test set: six real, anonymised requests (1950 house for sale, rented flat, commercial premises, new-build house, jointly owned building, urgent request) and four traps specific to the trade: a request with no year of construction, an address outside the service area, a duplicate request five minutes apart, and an e-mail from a property manager asking for ten diagnostics at once.
The test set verification request
Here is the spec sheet for a Make flow that records diagnostic requests for an 8-person property diagnostics firm: [paste the sheet]. Here is my test set of ten cases: [paste the cases].
For each case, say which path it should take through the flow (row in “Missions”, “To review” or duplicate) and which module would be at fault if it failed.
Then name one pitfall specific to this trade that my test set does not yet cover.
Format: a three-column table, then the missing pitfall in two lines.
Roughly what you should get
A ten-row table (case, expected path, module involved), then one more trap, for example a floor area written as “85 m2 environ” that cannot be converted to a number.
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
Sort six error messages into their family
Here are six messages taken from the execution history of an order-processing flow at a 15-employee garden centre in Gradignan. For each one, state its family (transient, data, configuration, logic) and the right response: automatic retry, “To review”, alert to the owner or human review.
The material to work on
1. 429 Too Many Requests, step “Classify the order (AI)”, 07:58
2. Sheet with name "Commandes 2026" not found, step “Add the row”, 09:12
3. 401 Unauthorized, invalid credentials, step “Create the Gmail draft”, 10:40
4. The field "code_postal" is empty, step “Check the AI's response”, 11:05
5. Successful run, category “houseplants” for an order of 3 bags of potting compost, 14:20
6. Request timed out after 60000 ms, step “Classify the order (AI)”, 16:47
Check your work
Messages 1 and 6 are classed as temporary errors, with automatic retry
Messages 2 and 3 are classed as configuration errors, with an alert to the owner
Message 4 goes to “To review”, with no automatic retry
Message 5 is recognised as a logic error even though the execution succeeded
See the answers
Message
Family
Reply
1. 429 Too Many Requests
Temporary
Three spaced attempts on the AI step
2. Tab not found
Configuration
Alert to the owner: restore the tab name, then rerun
3. 401 Unauthorized
Configuration
Alert to the owner: reconnect the Gmail credential
4. Empty postcode
Data
Row in “To review”, the person calls the customer
5. Compost classified as “houseplants”
Logic
Human review, and an “uncertain” field added to the AI output
6. Timeout
Temporary
Three spaced attempts on the AI step
Add uncertainty to the AI's instructions
You classify a garden centre’s orders into exactly one of these categories: plantes_exterieur, plantes_interieur, terreaux_engrais, outillage, autre. Reply with a JSON object with two fields: “categorie” and “incertain”. If the order mixes several categories or if no item is clearly identifiable, set “incertain” to true.
Roughly what you should get
A two-field JSON object, for example the category “terreaux_engrais” and “incertain” set to false for the compost order in message 5.
Level 2 · independent20 min
Write the test set for a supplier invoice flow
Bruno is an accountant at a plumbing and heating company with 18 employees in Villenave-d'Ornon. He has just built the flow described below. Write his test set: six normal cases and four traps, each with what is sent and the expected result. Then say which error you will trigger on purpose before go-live.
The material to work on
“Record incoming supplier invoices” sheet
Trigger: an e-mail arrives at factures@[entreprise].fr with a PDF attachment.
Data: supplier, invoice number, date, amount excl. VAT, VAT, amount incl. VAT, due date. Personal data: no.
Decisions: the AI extracts the fields as JSON with “uncertain”; if the amount incl. VAT does not equal excl. VAT + VAT to within €1, the invoice goes to review; an invoice whose number already exists for that supplier is a duplicate.
Actions: 1. look up the number in the “Factures” sheet; 2. add the row; 3. file the PDF in the month's folder on Google Drive.
Check: amber, Bruno approves the week's rows every Friday before the export to Pennylane.
Check your work
The six normal cases vary the suppliers, amounts and layouts
The traps cover at least one duplicate, an inconsistent total and an e-mail without a useful attachment
Each case has a verifiable expected result (which tab, which row, which folder)
The deliberately triggered error affects a configuration step (folder or sheet renamed in a copy)
See the answers
Case
Sent
Expected result
1 to 6
Real anonymised invoices from six suppliers: plumbing wholesaler, aerial platform hire, fuel, telephony, supplies, subcontractor
Six complete rows, six PDFs in the month’s folder
7, duplicate
Invoice 1 resent by the supplier as a reminder
No row added, flagged as a duplicate
8, wrong total
An invoice where the total incl. VAT does not equal the amount excl. VAT plus VAT
Row in “To review”, reason “inconsistent total”
9, no invoice
An e-mail containing only the supplier’s signature as an image
No row, e-mail flagged “no invoice”
10, credit note
A credit note with a negative amount
Row in “To review”, “uncertain” set to true
Have the test invoices written
Write the text of 4 test supplier invoices for a plumbing and heating company, as they would appear in a PDF: made-up supplier, number, date, line items, amount excl. VAT, VAT at 20%, amount incl. VAT, due date. Invoice 1: correct. Invoice 2: the same as invoice 1. Invoice 3: total incl. VAT wrong by €12. Invoice 4: a credit note of -€86.40 excl. VAT. No real companies.
Roughly what you should get
Four invoices as text, ready to paste into a word processor and save as PDF, with the announced traps and made-up suppliers.
The error to trigger: on a copy of the sheet, rename the “Factures” tab and check that the alert does reach Bruno, then do the same with the month’s folder on Google Drive.
Level 3 · demanding case35 min
Fixing a flow that sent duplicate reminders
Hélène runs a 22-person communications agency in Bordeaux. Read the incident report below. Explain the cause, then propose the new flow design: retry settings for each step, lookup before sending, fallback path, error workflow and test set. Finish with the Check box of the flow sheet, rewritten.
The material to work on
Incident report, Tuesday 10 November
n8n flow “Follow up unanswered quotes”, run every day at 9am.
1. Schedule Trigger, every day at 9am.
2. Google Sheets: read the quotes sent 7 days ago and marked “no reply”.
3. For each quote, AI: write a short follow-up.
4. Gmail: send the follow-up to the customer.
5. Google Sheets: set the quote to “followed up”.
Settings: Retry On Fail turned on for every node, 5 tries.
Monday 9am: 23 quotes to follow up. Node 5 failed on the 18th quote (Google quota briefly reached). After 5 tries, the run stopped. At 11am, the account manager clicked “Retry with currently saved workflow”.
Result: the first 17 customers received two follow-ups, including one customer who had signed the quote the evening before; on Tuesday at 9am, the 17 quotes were still “no reply” in the spreadsheet and were followed up a third time.
Check your work
The cause is identified: the “followed up” status is only written after all the sends, and a rerun reprocesses every item in the failed node
Each quote’s status is written just after it is sent, or before, with an “in progress” status
No automatic retry on the Gmail send, and a re-read of the status just before each send
The fallback path and the error workflow name who is notified
The test set includes a quote signed the day before and a failure in the middle of the list
See the answers
The cause comes down to two points. The “followed up” status was only written at step 5, for all quotes, after all the sends: when the failure hit, 17 follow-ups had gone out without a trace. Then rerunning the execution reprocessed the failed step with all its items, and the next day the spreadsheet still said “no reply”. Finally, the 9am read did not know a quote had been signed the evening before.
Schedule Trigger at 9am, unchanged.
Google Sheets: read quotes marked “no reply” that are more than 7 days old. Retry On Fail, 3 attempts: reading creates nothing.
Loop Over Items in batches of 1: here the loop is useful, as each quote must be finished before the next.
Google Sheets: reread the quote row just before sending; an If node only continues if the status is still “no reply”.
Google Sheets: set the status to “follow-up in progress” with the date and time.
AI: draft the follow-up. Retry On Fail, 3 attempts at 5 s, error output to “To review”.
Gmail: create a draft rather than sending for the first month, then send. No Retry On Fail; error output to “To review”.
Google Sheets: set the status to “followed up”.
If node condition before sendingText
// Nœud If, condition de type texte, « is equal to »
// Valeur 1 : le statut relu juste avant l'envoi
{{ $json.statut }}
// Valeur 2 :
sans réponse
// Sortie « true » : le devis est relancé.
// Sortie « false » : rien n'est envoyé (signé, refusé ou déjà en cours).
The column names (status) are those of the agency’s spreadsheet: adapt them to yours.
The Check box, rewritten
Item
Setting
Level
Amber for the first month (drafts reviewed by the account manager), then green for fixed-text follow-ups
Retries
Reading and AI: 3 attempts. Gmail send: none
Fallback
“To review” tab with the quote, the step and the reason
Alert
Error workflow: email to the client account manager, copy to Hélène
Retrying an execution
Never before rereading the “follow-up in progress” statuses in the spreadsheet
Test set
A quote signed the day before, a quote with no address, a failure triggered on the third quote in a list of five
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.