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 14, module 4: The building blocks of a flow Filters, conditions and routers to make a flow take decisions How does a flow know who to send a quote request to?
The filter decides whether the flow continues, the router which way. [Diagram: A filter or a router] Filter Router The filter decides whether the flow continues. The router decides which way it goes. Write the decisions as "if… then…" before you click. Prompt: If the postcode doesn't start with 33, then status Out of area. If Windows or Doors, then Julien. Otherwise Sandrine. Response: Three rules a colleague can review in thirty seconds, and that can be copied as they are into an If and a Switch. A fallback route catches whatever no rule picks up. [Diagram: Sorting a quote request] 1. Does the postcode start with 33? 2. Is the project type Windows, Doors, Staircase or Fit-out? Yes to all: Router by type: Julien for windows and doors, Marc for staircases and fit-outs. The traps come from text typed in by hand. "windows" instead of "Windows" An extra space after the word A field left empty Two conditions true at once, and the request goes out twice. Make the conditions mutually exclusive Test on a prepared set of cases A rule is enough for a closed field: keep AI for free text. [Diagram: A rule or an AI to decide] Vertical: severity of an error; horizontal: form of the information. Rule and approval AI that proposes AI that classifies Preferred: Simple rule A rule settles everything that comes in through a closed field. AI only comes in for free text. In the exercise, you write the rules for a van hire company with three branches. Your turn: Bookings for a van hire company with three branches The written lesson, the worked exercise and the quiz are below the video.
Lesson 14 of 50 · module 4, the building blocks of a workflow
Filters, conditions and routers to make a flow take decisions
A flow decides using rules written before you click, in “if… then…” form. The filter stops what must not continue; the router sends each request down its path. Conditions combine with AND and OR, are tested on a set of cases, and a fallback route always catches whatever no rule picks up.
27 min of reading
1 min 51 of video
7 diagrams
1 demande to copy
3 exemples pratiques
4 exercices answerss
5 questions
1 ressource
By the end of this lesson, you will know how to
Write the Decisions box of a sheet as “if… then…” rules, including the case where no rule applies
Build a filter and a router in n8n, Make or Zapier, with mutually exclusive conditions and a fallback route
Test a router on a prepared set of cases, including the traps of letter case, spaces and empty fields
What’s covered
Write the decisions before you click
A filter, a router, and their conditions
The fallback route and route order
Build the sorting in n8n
A rule or an AI
3 worked examples, followed from start to finish
Exercise with answers · Bookings for a van hire company with three branches
3 practice exercises, from guided to demanding cases
The quiz
Key points
Decisions are written as “if… then…” on the sheet before you click, and always end with an “otherwise”.
The filter decides whether the flow continues, the router decides which way; a customer never disappears through a filter, they go down a route that leaves a trace.
Every router has a fallback route; in the n8n Switch, it is turned off by default.
Write mutually exclusive conditions: in Make and in Zapier Paths, a request can follow several routes.
A rule decides closed fields; AI only comes in for free text, with the same fallback route.
The skeleton of the Pessac joinery firm’s quote flow records every request and notifies Sandrine. What remains is what she does in her head every morning: setting aside requests from Charente or the Landes, which the firm does not serve, and passing windows to Julien and staircases to Marc. These decisions are rules, and a flow applies them tirelessly, provided they are written down before you open the tool.
Write the decisions before you click
The Decisions box on the automation sheet is written as “if… then…” sentences, one rule per line, in the order the flow applies them. It always ends with an “otherwise”, which says what happens to a request that no rule picks up. If Sandrine cannot write a rule in one line, it is not ready to be automated: she discusses it with Thierry first. Copy the block below into the sheet, then use it as the template for the set-up.
The Decisions box for the quote flowText
RÈGLE 1, la zone
SI le code postal ne commence pas par 33
ALORS statut = Hors zone, brouillon de réponse pour Sandrine, fin du flux.
RÈGLE 2, qui chiffre
SI type de projet = Fenêtres OU type de projet = Portes
ALORS responsable = Julien.
SI type de projet = Escalier OU type de projet = Agencement
ALORS responsable = Marc.
SINON (Autre, vide, valeur inconnue)
ALORS responsable = Sandrine, qui lit la demande et la confie.
CE QUI N'EST PAS DÉCIDÉ PAR LE FLUX
Le prix, la faisabilité, la date de visite : Julien ou Marc.
The values Fenêtres, Portes, Escalier, Agencement and Autre are those of the Tally form list, copied letter for letter.
A filter, a router, and their conditions
A filter or a router
Filter
A single question: continue or stop
Whatever does not pass drops out of the flow
To discard tests, duplicates and noise
Never to turn a customer away without a record
Router
Several paths, each with its own condition
Each request follows the path that fits it
A fallback route for whatever no rule picks up
To allocate between people, teams and replies
The filter decides whether the flow continues. The router decides which way it continues.
A condition compares a field with a value using an operator: is equal to, contains, starts with, exists or is empty for text, is greater than for a number, is after for a date. Several conditions can be combined: with AND, all must be true; with OR, one is enough. In n8n, the If node offers these operators by data type (String, Number, Date & Time, Boolean, Array, Object), and the menu between two conditions switches from AND to OR. In Zapier, Filter and Paths rules have names such as “Contains”, “Exactly matches”, “Starts with”, “Exists”.
The fallback route and route order
Sorting a quote request
1Does the postcode start with 33?
No Status Out of area, draft reply for Sandrine, no pricing.
2Is the project type Windows, Doors, Staircase or Fitted joinery?
No Fallback route: Sandrine reads the request and chooses who prices it.
Yes to allRouter by type: Julien for windows and doors, Marc for staircases and fitted joinery.
The decisions on the sheet, in the order the flow applies them.
Each tool has its own way of catching what fits nowhere. In the n8n Switch, the “Fallback Output” option is set to “None” by default: a request matching no rule then disappears silently. Set it to “Extra Output” to get an extra output. In Make, a route is marked as the fallback route in its filter window; it runs last, and routes are processed one after another, in the order set by “Order routes”. In Zapier, each Paths group accepts a “Fallback” branch, which only runs if no other branch has had its rules met.
That leaves order and exclusivity. In n8n, the Switch sends a request to a single output, unless you enable “Send data to all matching outputs”. In Zapier, the documentation states that every branch whose rules are met runs, from left to right. In Make, the same request can take several routes if several filters let it through. So write conditions that exclude each other: “urgent” on one route, “not urgent AND lift” on the next.
The same decisions in the four tools
Need
n8n
Make
Zapier
Power Automate
Stop what does not fit
Filter
Filter placed on the link between two modules
Filter by Zapier
Condition, actions placed under “If yes”
Two paths
If (true and false outputs)
Two-route router
Paths, two branches
Condition (“If yes”, “If no”)
Several paths
Switch, Rules mode
Router
Paths, up to 10 branches per group and 3 levels
Switch, one case per value
Fallback route
“Fallback Output” set to “Extra Output”
Route marked as fallback, run last
“Fallback” branch
Switch default case
What it costs
Nothing more: n8n counts the whole execution
0 credits for the router and filters
Filter and Paths do not count as tasks, but require a paid plan
Included in the licence
Build the sorting in n8n
Add the area and the router to the quote flow
Open the “Enregistrer les demandes de devis” workflow and click the + after the Request node.
Add an If node, name it “Dans la zone ?”, type String, operator “starts with”, value 33, applied to the code_postal field dragged from INPUT.
On the false output, add an Edit Fields node that sets statut = Hors zone, then Gmail, with the operation that creates a draft reply in the devis@ mailbox.
On the true output, add a Switch named “Who prices it?”, Rules mode, four rules on type_projet: Fenêtres, Portes, Escalier, Agencement; turn on “Rename Output” to name each output.
In the Switch options, set “Fallback Output” to “Extra Output” and turn on “Ignore Case”.
After each output, an Edit Fields node sets responsable = Julien, Marc or Sandrine; connect all three to the same Google Sheets “Append Row” node, then to the Teams message.
Rerun the test set below with “Execute workflow”, check each route, delete the test rows, then publish.
If the postcode arrives as a number rather than as text, “starts with” may fail. The following expression, pasted into the condition in expression mode with the Boolean operator “is true”, first converts the value to text and strips spaces at the start and end. Reformatting a “33 600” typed with a space in the middle is a different job, covered in the lesson “Dates, amounts, names and addresses: reformatting data along the way”.
The “Dans la zone ?” condition as an n8n expressionJavaScript
String(…) turns a number into text, trim() removes leading and trailing spaces, startsWith('33') checks the beginning. The result is true or false.The quote flow with its decisions
1Tally response
The trigger receives the request; the Request node renames the fields.
2If “Dans la zone ?”
No: status Out of area and draft reply. Yes: next steps.
3Switch “Who prices it?”
Windows or Doors: Julien. Stairs or Fitted interiors: Marc. Fallback: Sandrine.
4Spreadsheet row
A single Google Sheets action, connected to all three branches, fills in Responsable.
5Teams message
The message names the person who prices the job.
The router’s three branches converge on the same spreadsheet row and the same message.
The router test set, to rerun after every change
Case
Postcode
Project type
Expected route
1. Simple case
33600
Windows
Julien
2. Second value of the rule
33170
Doors
Julien
3. Another person responsible
33000
Fitted interiors
Marc
4. Value not in the list
33400
Other
Fallback: Sandrine
5. Outside the area
17000
Stairs
Outside the area, draft reply
6. Case and space trap
33700
“fenêtres ” (lower case, trailing space)
Julien, thanks to Ignore Case and the closed list
7. Empty field
33130
(vide)
Fallback: Sandrine
A rule or an AI
A rule or an AI to decide
HighSeverity of a mistakeLow
Rule and approval
An amount, a customer under contract: a written rule, then a person approves (orange).
AI that suggests
A complaint to classify: the AI suggests a category, a person decides.
Simple rule
Postcode, ticked type, yes-or-no box: an If or a Switch is enough.
AI that classifies
The subject of a free-form e-mail: AI classifies, with a fallback route.
Closed fieldForm of the informationFree text
A rule decides everything that arrives in a closed field. AI only comes in for free text.
The course takes a clear position: never hand an AI what a rule can decide. A postcode, a ticked box, an amount above a threshold are compared with an If, free of charge, without error and without sending data to a provider. AI comes in when the information is free-form text, such as the real subject of an e-mail or the nature of a complaint; that is the subject of the lesson “Classifying and extracting with structured JSON output”, which keeps the same fallback route.
New response to the Tally form “Demande de devis” (instant).
Data
The form fields; postcode and project type drive the decisions. Personal data: yes (identity and contact details).
Decisions
Rule 1: postcode outside 33, status Out of area. Rule 2: Windows or Doors, Julien; Staircase or Fitted joinery, Marc. Otherwise: Sandrine.
Actions
1. Outside the area: spreadsheet row and draft reply in devis@. 2. Inside the area: spreadsheet row with the person responsible, Teams message naming them. Account: devis@.
Inspection
Green for sorting and the row; orange for the out-of-area reply, which stays a draft checked by Sandrine. Test set rerun after every change.
Turn rules stated out loud into a decision table
Role: you are helping an SME prepare an automation flow.
Context: here is how our manager describes, verbally, the way requests are allocated: [paste his sentences as they are]. The possible form values are: [exact list of choices].
Task: rewrite these instructions as “IF … THEN …” rules, one per line, in the order they must apply, and finish with an OTHERWISE. Then propose a test set of eight cases, including at least one empty case, one case not on the list and one case where two rules could apply at the same time.
Format: the rules, then a table Case | Values | Expected result. Flag each ambiguous instruction with “To decide:” followed by the question to ask the manager.
Roughly what you should get
A list of numbered rules that uses exactly the form’s values, a final ELSE, a table of eight test cases and two or three “To be decided” lines where the instructions contradict each other or say nothing.
The “To decide” lines are the real gain: they reveal the decisions nobody had made.
Mistakes to avoid
Building a Switch or router with no fallback route, because “every value is covered”.
One day an Other value, an empty field or a new option added to the form comes in: the request matches nothing and disappears without an error, so without an alert.
Turn on the fallback output (“Fallback Output” set to “Extra Output” in n8n, fallback route in Make, “Fallback” branch in Zapier) and assign it to a named person.
Writing overlapping routes in Make or in Zapier Paths, such as “urgent” and “Les Pins building”.
A request that meets both conditions follows both routes: two call-outs, two preparations, two messages to the customer.
Make the conditions mutually exclusive by repeating the negation of the previous route (“not urgent AND …”), and test a case that meets two conditions at once.
Comparing free-text input with “is equal to”, without handling capitals, spaces and accents.
“fenêtres”, “Fenêtres ” and “Fenetres” are three different values in an exact comparison: the request goes to the wrong place, or to the fallback.
Replace the free-text field with a closed list in the form, enable “Ignore Case” in n8n, and strip spaces with trim() before comparing.
Add a filter that stops out-of-area requests, and do nothing else.
The filter makes the request disappear: the customer never gets a reply, and nobody knows how many requests have been lost.
Use an If or a dedicated route: a spreadsheet row with the status Out of area, and a polite draft reply checked by a person.
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
Repair requests for a property management company in Talence
Aurélie is a technical manager at a 10-person residential property management firm in Talence. Co-owners report problems through a form: building, type (leak, lift, common areas, other), urgency (yes or no), description. The firm chose Make, with data hosted in the Europe region.
One report, one route
1Form
The co-owner describes the problem.
2Route 1, emergency
Urgent = yes: on-call staff alerted immediately.
3Routes 2 and 3
Not urgent AND type: the right property manager.
4Fallback route
Everything else: reception, run last.
Request 1
Make router after the form trigger. Route 1 “Emergency”, filter: Urgency equals “yes”.
Action: immediate message to the on-call property manager in Teams, with the building and the description.
Model answer
Message posted: “EMERGENCY, Résidence Les Pins, building B: leak in the hall ceiling, water running onto the electrical panel. Reported at 6:52pm.”
Aurélie puts this route first in “Order routes”: an emergency must be handled before anything else.
Request 2
Route 2 “Lift”, filter: Urgency equals “no” AND Type equals “lift”.
Route 3 “Common areas”, filter: Urgency equals “no” AND Type equals “common areas”.
Route 4 marked as fallback route: everything else, to reception.
Model answer
In the test, a non-urgent lift breakdown goes down route 2 only, with a row added to the tracking sheet assigned to “Aurélie”. An “other: noisy neighbours” request goes down the fallback route, row “Reception”.
In its first version, route 2 only had “Type is equal to lift”: a lift stuck with someone inside went both to emergencies and to normal tracking. The condition “Urgency is equal to no” made the routes mutually exclusive.
What was checked before sending
Test set of six reports, including an urgent lift that must take route 1 only.
An “other” request sent on purpose: it must reach the fallback route, and never disappear.
The router and filters use no credits; Aurélie checks this in the scenario history.
Order of magnitude: evening emergencies reach the on-call manager in one minute instead of waiting for the inbox to be read the next morning.
Example 2
Appointment requests for a garage in Mont-de-Marsan
Romain is workshop manager at a 7-person garage in Mont-de-Marsan. The website form sends each appointment request by e-mail to the atelier@ inbox, mixed in with advertising and unsolicited job applications. He wants requests to go automatically to mechanical or bodywork. The garage has taken Zapier’s Professional plan.
The workshop mailbox, before and after
Before
Requests buried in adverts
Sorting by hand in the evening
Replies two days later
After
Gmail search and filter
Paths to mechanical or bodywork
Draft ready, reviewed, sent the same day
Request 1
Zap, Gmail trigger “New Email Matching Search”: from:formulaire@[garage website] subject:"Demande de rendez-vous".
Filter step: only continue if the Prestation field exists.
Model answer
In the test: e-mail of 12/11 at 10:04am, Service: Bodywork, Vehicle: van, Message: “Deep scratch on the side door, would like a quote.”
The Gmail search already excludes adverts and job applications. The filter stops the rare form e-mails with no service, which are test submissions from the webmaster.
Request 2
Paths: branch A “Mechanical” if Service contains “mécanique” or “révision”; branch B “Bodywork” if Service contains “carrosserie”; “Fallback” branch for everything else.
In each branch: Gmail “Create Draft” reply, and a message to the right manager.
Model answer
Draft for branch B: “Hello, we have received your request about a scratch on the side door. Our body repairer can see you for a free quote, Monday to Friday between 8am and 12pm. Which day suits you?”
Romain rereads each draft before sending: an appointment commits the workshop. Filter and Paths do not count as tasks; only the draft and the message use them, two per request.
What was checked before sending
A speculative job application sent on purpose: it must not trigger any Zap.
An “Air conditioning” request, not covered by the rules: it must reach the Fallback branch.
Zapier’s text rules ignore case: “Carrosserie” and “carrosserie” take the same branch.
Order of magnitude: a quarter of an hour of sorting a day eliminated, and customers called back the same day instead of two days later.
Example 3
Support tickets for a Bordeaux software publisher
Yasmina runs support at a 40-person management software publisher in Bordeaux, with three products: Paie, Compta, Stocks. Customers open a ticket via a form; some no longer have a maintenance contract. The company self-hosts n8n.
A ticket, from submission to the team
9 h 02Ticket sent
The customer chooses their product and describes the problem.
9 h 02Contract checked
Lookup in the Contrats sheet, then If.
9 h 02Product routed
Switch to Paie, Compta, Stocks or fallback.
9 h 03Team notified
Message in the product’s Teams channel.
Request 1
n8n : après le déclencheur, Google Sheets « Get Row(s) » dans la feuille « Contrats », colonne Numéro client, valeur {{ $json.numero_client }}.
Puis If « Sous contrat ? » : le champ Fin de contrat (Date & Time) « is after » {{ $now }}.
Model answer
Customer 10482: row found, contract end 31/03/2027, true output. Customer 10917: contract end 30/06/2026, false output.
Yasmina adds a second condition with OR: a number that can’t be found also goes to false. A customer with no row in the sheet must not be treated as under contract.
Request 2
False output: draft reply offering renewal, in the support@ inbox, for review by the sales rep.
True output: Switch “Which product?”, rules Paie, Compta, Stocks, “Fallback Output” set to “Extra Output”, each to the team’s Teams channel.
Model answer
Message in the “Support Paie” channel: “Ticket 2026-3318, customer 10482, severity Blocking: the November overtime calculation is wrong for two employees.”
The fallback output receives the “I don’t know” tickets; Yasmina assigns them herself each morning, about half a dozen a week.
What was checked before sending
Three customer numbers chosen on purpose: under contract, expired contract, unknown number.
A ticket with no product ticked: it must reach the fallback output.
The flow never decides to refuse service: the customer without a contract receives a reviewed proposal, not a flat refusal.
Order of magnitude: an hour of allocation a day given back to the team, and no more tickets handled free of charge because someone forgot to check the contract.
Bookings for a van hire company with three branches
A commercial vehicle hire company with 16 employees has three branches: Bordeaux-Lac, Mérignac and Libourne. Bookings come in through a form on the website: preferred branch (list of three options), vehicle type (12 m³ van, 20 m³ van, tipper truck, other), departure date, duration in days (number), business customer (yes or no), name, phone, e-mail. The manager explains: “Each branch handles its own bookings. Over 30 days, it’s long-term hire, and Patrick, the sales rep, deals with it, whatever the branch. If the customer asks for a tipper truck, the Mérignac branch has to be told, as it’s the only one that has them. And a request nobody understands goes to Émilie at reception.” Write the flow sheet, setting out the Decisions box as “if… then…” rules, then prepare a test set.
Identify each decision in the manager’s sentences, and the order in which they must apply.
Write the rules, making the conditions mutually exclusive, and finish with an OTHERWISE.
Choose between filter and router for each decision, and the tool of your choice.
Prepare a test set of eight cases, including at least two traps.
See the answers
Sheet “Split bookings between branches”
Box
What is written
Trigger
New response to the website booking form (instant).
Data
Branch, vehicle type, departure date, duration in days, business customer, name, phone, e-mail. Personal data: yes.
Decisions
See the rules below: duration first, tipper truck next, branch last, fallback to reception.
Actions
A row in the bookings spreadsheet with the branch or person assigned; a message in the branch’s Teams channel or to the person. Account: reservations@.
Inspection
Green: internal sorting. Confirmation to the customer stays manual (orange). Test set rerun after every change; owner: Émilie, backup: the manager.
The rules, in orderText
RÈGLE 1, la longue durée passe avant tout
SI durée > 30
ALORS Patrick (commercial), quelle que soit l'agence.
RÈGLE 2, le camion benne
SI durée <= 30 ET type = camion benne
ALORS agence de Mérignac.
RÈGLE 3, l'agence choisie
SI durée <= 30 ET type différent de camion benne
ALORS l'agence choisie (Bordeaux-Lac, Mérignac ou Libourne).
SINON (durée vide, agence vide, type Autre)
ALORS Émilie, à l'accueil.
Test set
Case
Agency
Vehicle
Duration
Expected result
1
Libourne
12 m³ van
3
Libourne branch
2
Bordeaux-Lac
20 m³ van
45
Patrick
3
Libourne
Tipper truck
2
Mérignac branch
4
Bordeaux-Lac
Tipper truck
60
Patrick, not Mérignac
5
Mérignac
12 m³ van
30
Mérignac branch (30 is not more than 30)
6
Libourne
Other
5
Émilie
7
(vide)
20 m³ van
4
Émilie
8
Mérignac
12 m³ van
(vide)
Émilie
Order is the real difficulty. If the tipper truck rule came before the duration rule, case 4 would go to Mérignac, whereas the manager wants every long hire to go to Patrick. The “duration <= 30” conditions in rules 2 and 3 make the routes mutually exclusive: in Make or Zapier, where a request can take several routes, this is essential. Case 5 checks the boundary: “more than 30” means strictly greater than 30.
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
Predict the route of eight requests
Using the rules of the Pessac joinery firm set out below, state which route each of the eight requests should take. Flag those that reveal a trap.
The material to work on
THE RULES
Rule 1: if the postcode does not start with 33, status Out of area.
Rule 2: if Windows or Doors, Julien; if Staircase or Fitted joinery, Marc.
Otherwise: Sandrine.
THE EIGHT REQUESTS (postcode, project type)
A. 33160, Staircase
B. 24100, Windows
C. 33500, Doors
D. 33320, Other (pergola)
E. 33110, “Fitted joinery” followed by a space
F. 40600, Other
G. 33 700, Windows (with a space in the postcode)
H. 33450, (empty)
Check your work
B and F are outside the area, whatever their type
D and H go to Sandrine via the fallback route
E is flagged as a space trap, G as a postcode format trap
A, C and E go to the right person once the traps are handled
See the answers
Request
Route
Note
A
Marc
B
Outside the area
Dordogne
C
Julien
D
Sandrine
Other: fallback route
E
Marc, if the comparison strips the space
Trap: without trim, the equality check fails and the request goes to the fallback
F
Outside the area
Rule 1 comes before rule 2
G
Julien, if the postcode is cleaned
Trap: “33 700” does start with 33, but a spreadsheet may misread it
H
Sandrine
Empty field: fallback route
Have it produce more test cases
Here are a flow’s sorting rules: [paste the rules]. Suggest ten additional test requests, including at least three traps (capital letters, spaces, a value close to an allowed value, an empty field, a malformed postcode). For each, give the expected route and the trap it tests.
Roughly what you should get
A table of ten cases with their expected route and, for the traps, a column saying what they check.
Level 2 · independent20 min
The rules of an estate agency
Mathieu runs a 9-person estate agency in Bordeaux. Read his instructions, exactly as he gave them. Write the Decisions box as “if… then…” rules in the right order, with mutually exclusive conditions and an OTHERWISE, then list the questions to ask him where his instructions say nothing.
The material to work on
THE WEBSITE FORM
Project: Buy, Sell, Rent, Property management
Neighbourhood: Chartrons, Caudéran, Bastide, Saint-Augustin, Other
Budget or estimated price (number, in euros)
Name, phone, e-mail, message
WHAT MATHIEU SAYS
“Sellers are the most important, they go to the negotiator for the neighbourhood: Hugo for Chartrons and Bastide, Léa for Caudéran and Saint-Augustin. Buyers, same thing, except above 800,000 euros, those are mine. Rentals and property management go to Nadia, whatever the neighbourhood. Oh, and sellers in Caudéran above 800,000, those are mine too.”
Check your work
Mathieu’s rule above €800,000 comes before the district rule
Rent and Property management go to Nadia regardless of neighbourhood
The conditions are mutually exclusive; no request can follow two routes
An ELSE covers the Other district and empty fields
At least two questions to ask Mathieu are listed
See the answers
The Decisions boxText
RÈGLE 1
SI projet = Louer OU projet = Faire gérer un bien
ALORS Nadia.
RÈGLE 2
SI (projet = Acheter OU projet = Vendre) ET budget > 800000
ALORS Mathieu.
RÈGLE 3
SI (projet = Acheter OU projet = Vendre) ET budget <= 800000
ET (quartier = Chartrons OU quartier = Bastide)
ALORS Hugo.
SI (projet = Acheter OU projet = Vendre) ET budget <= 800000
ET (quartier = Caudéran OU quartier = Saint-Augustin)
ALORS Léa.
SINON (quartier Autre, budget vide, projet vide)
ALORS accueil, qui confie la demande.
The sentence about Caudéran sellers above €800,000 is already covered by rule 2, which applies to all districts. Mathieu stated it as an exception; written down properly, it disappears.
To decide: does the €800,000 rule apply to all buyers, whatever the district? The answer key assumes so.
To decide: does a buyer with no stated budget go to reception or to the district’s negotiator?
To decide: who gets the “Other” district, reception or Mathieu?
Level 3 · demanding case35 min
Fixing an office supplies wholesaler’s router
Read the Make scenario description and the extract of its runs. Explain each anomaly, rewrite the filters on the four routes so they are mutually exclusive, and say where to put the fallback route. Then write the test set that would have revealed the anomalies before go-live.
The material to work on
THE “DISTRIBUTE ORDERS” SCENARIO, OFFICE SUPPLIES WHOLESALER, MÉRIGNAC, 22 EMPLOYEES
Trigger: new order received via the trade website.
Router, in this order:
Route 1 “Large customer”: filter Amount excl. VAT greater than 1000.
Route 2 “Express”: filter Delivery contains “express”.
Route 3 “Standard”: filter Delivery equals “Standard”.
Route 4 marked as fallback: message to sales administration.
EXTRACT FROM THIS WEEK’S RUNS
Order 7741, €1,450 excl. VAT, Express delivery: routes 1 and 2 run, two picking jobs started.
Order 7752, €320 excl. VAT, “standard” delivery: route 4, sales administration received a message.
Order 7760, €2,100 excl. VAT, Standard delivery: routes 1 and 3 run, two picking jobs started.
Order 7768, €95 excl. VAT, In-store collection delivery: route 4.
WHAT MANAGEMENT WANTS
Above €1,000 excl. VAT, the sales rep approves before any picking. Below that, the warehouse picks according to the delivery method. In-store collection goes to the counter.
Check your work
The duplicates 7741 and 7760 are explained by non-exclusive routes
Order 7752 is explained by the case of “standard”
The rewritten filters are mutually exclusive and cover in-store collection
The fallback route stays, for unknown delivery methods
The test set contains at least one order above €1,000 with each delivery method
See the answers
Anomaly
Cause
Correction
7741 and 7760 prepared twice
An order follows every route whose filter lets it through
Add “Amount excl. VAT <= 1000” to the delivery routes
7752 sent to sales administration
“standard” in lower case does not equal “Standard” with the chosen operator
Compare case-insensitively, or make delivery a closed list on the website
7768 sent to sales administration
No route for in-store collection
A “Counter” route
The rewritten filtersText
Route 1 « Validation commerciale » : Montant HT > 1000
Route 2 « Express » : Montant HT <= 1000 ET Livraison contient « express » (sans casse)
Route 3 « Standard » : Montant HT <= 1000 ET Livraison contient « standard » (sans casse)
Route 4 « Comptoir » : Montant HT <= 1000 ET Livraison contient « retrait » (sans casse)
Route 5 de repli : tout le reste, vers l'ADV, exécutée en dernier
The test set that would have revealed everything fits in six orders: €1,450 express, €2,100 standard, €1,200 click and collect, €320 “standard” in lower case, €95 click and collect, €400 with an empty delivery field. Each must take a single route, and the last one the fallback route.
Check that routes are mutually exclusive
Here are the route filters of a router, in order: [paste the filters]. Find every combination of values for which the same order would go through two or more routes, and those for which no route would apply. Reply with a table Values | Routes taken, then suggest the minimal fix.
Roughly what you should get
A table of problem combinations (duplicates and gaps), then the conditions to add to make the routes mutually exclusive.
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.