๐ฌWhat we learn today โ a short video
โก By the end of the session you will know
- A filter on the line stops irrelevant bundles โ and saves Credits.
- A Router splits into routes; the fallback runs when no route matched.
- Clean data with trim, lower, replace and regex.
- Dates are in UTC โ always formatDate with a time zone.
- We built a lead form with scoring and routing to Telegram.
A silent video of about half a minute: the session topic, the learning goals (also listed in the next section) and the scenario we build today.
๐The story of Etz va'Or (Wood & Light) โ Chapter 3: Too many leads
One Instagram post went viral, and the contact form is exploding: some want a โช15,000 dining table, some just ask about opening hours. Maya spends hours sorting. Today we build a smart form that gives every lead a score and routes the hot leads straight to her phone.
๐งต One story across the whole course: every session solves a real problem for the business. At the end โ a complete system.
๐ฏSession goals
- Add filters with different kinds of conditions (text, number, date, existence).
- Build a Router with several routes and a fallback route.
- Clean and normalize data with text functions (trim, lower, replace, regex).
- Work with dates and time zones: parseDate, formatDate, addDays.
- Use if, ifempty and switch to compute values.
- Build a simple lead-scoring model.
- Connect a form (Tally) to Make with a webhook and route leads by score.
๐๏ธSession agenda (3 hours)
- 00:00โ00:15 Review: the bots we built
- 00:15โ00:45 Filters: operator types and complex conditions
- 00:45โ01:15 Router and the fallback route
- 01:15โ01:30 โ Break
- 01:30โ01:55 Cleaning data: text functions and regex
- 01:55โ02:15 Dates, time zones and switch
- 02:15โ02:50 Building together: a smart lead form
- 02:50โ03:00 Summary and practice
1Filters โ the gate between two modules
A filter sits on the line between two modules. A bundle passes on only if the condition holds. A bundle that doesn't pass โ simply stops (with no error). You add a filter by clicking the line โ Set up a filter.
| Operator group | Examples | Use |
|---|
| Basic | Exists, Does not exist | Is there an email at all? |
| Text | Equal to, Contains, Starts with, Matches pattern (regex) โ also case insensitive | source = "google" |
| Numeric | Greater than, Less than or equal | budget > 20,000 |
| Datetime | Later than, Earlier than | Created after today at 08:00 |
| Array | Contains, Length greater than | Tags include vip |
| Boolean | Equal to true/false | Agreed to marketing |
You can combine several conditions: AND (all of them) and OR (at least one) โ the Add AND rule and Add OR rule buttons.
๐ฐ Filters save CreditsA bundle stopped by a filter does not run the modules after it. Put filters as early as possible in the scenario โ every module that doesn't run is a Credit you didn't pay. (The filter itself uses no Credit.)
2Router โ splitting into routes
A Router (Flow Control โ Router) passes the same bundle to several routes. Each route gets its own filter. It's important to understand:
- The routes run one after another (in the order shown), not in parallel.
- A bundle can go through more than one route if several filters hold.
- Fallback route โ a route that runs only if no other route matched. You set it by clicking the filter โ Fallback route: Yes.
- You can change the order of routes: right-click the Router โ Order routes.
โ ๏ธ A classic mistake: overlapping routesIf route 1 is "score โฅ 50" and route 2 is "score โฅ 80" โ a lead with 90 goes through both and gets both an email and an alert. Define ranges that don't overlap: โฅ80, 50โ79, and a fallback for the rest.
3Cleaning and normalizing data
Data from forms arrives "dirty": extra spaces, capital letters in emails, phones with dashes. Before putting it into the CRM โ clean it:
A little regex
| Pattern | What it catches |
|---|
/[^0-9]/g | Anything that isn't a digit (to delete it) |
/^05\d{8}$/ | An Israeli mobile: 05 plus 8 digits |
/^[^@\s]+@[^@\s]+\.[^@\s]+$/ | The basic structure of an email |
/(gmail|yahoo|walla|hotmail)\./i | A private (non-business) email |
๐ก Matches pattern in a filterYou can use regex directly in a filter: the Text โ Matches pattern operator. That way you filter out invalid emails before they ever reach the CRM.
4Dates and time zones
Make stores dates in UTC. When displaying โ convert to the time zone. When you receive text like 10/11/2026 โ you need to tell Make the format.
| Pattern | Result |
|---|
| DD/MM/YYYY | 10/11/2026 |
| HH:mm | 07:30 |
| dddd / ddd | Tuesday / Tue |
| d | The day of the week number (0 = Sunday) |
| X | Unix timestamp in seconds |
โ ๏ธ "Why did the lead come in yesterday?"A form sent at 01:00 Israel time is still "yesterday" in UTC. Always state a time zone when you display a date or check "is it today".
5if, ifempty and switch
| Function | Example | Result |
|---|
| if | if(budget > 20000; "large"; "small") | large |
| ifempty | ifempty(company; "private") | private (if the company is empty) |
| switch | switch(source; "google"; 15; "referral"; 25; 5) | 15 (default 5) |
| and / or | if(budget > 20000 and employees > 50; โฆ) | A combined condition |
These tools are the basis of lead scoring: each criterion gives points, and you add them all up.
6Lead scoring
A simple scoring model gives each lead a number from 0 to 100, so the salespeople start with the hot ones. An example:
| Criterion | Points |
|---|
| Budget โฅ 50,000 / โฅ 20,000 / other | 40 / 25 / 5 |
| Employees โฅ 100 / โฅ 20 | 20 / 10 |
| Timeline: "this month" / "quarter" / other | 25 / 15 / 0 |
| A business email (not gmail etc.) | 10 |
| Source: referral / google / other | 5 / 3 / 0 |
{{ (if(parseNumber(1.budget) >= 50000; 40; if(parseNumber(1.budget) >= 20000; 25; 5)))
+ (if(parseNumber(1.employees) >= 100; 20; if(parseNumber(1.employees) >= 20; 10; 0)))
+ switch(1.timeline; "this month"; 25; "quarter"; 15; 0)
+ if(contains(lower(1.email); "gmail") or contains(lower(1.email); "walla"); 0; 10)
+ switch(1.source; "referral"; 5; "google"; 3; 0) }}
๐ก One place for the calculationPut the score in a Tools โ Set variable module named score. That way you map it in every route, and change the formula in one place. In session 13 we will add an AI score.
7Building together: a smart lead form
โน๏ธ Tally can send in a complex formatTally sends the fields inside a data.fields array (label + value). The convenient way: the Tally โ Watch New Responses app in Make, which returns each field separately. Both ways work โ in the solution we show both.
๐งชLab: simulations and examples
Three ways to see today's material in action: the scenario canvas runs the session's scenario like Make does (with a Credits count), the race compares manual work with automation, and the function playground shows real mapping examples.
๐ก Why in this order?Filter junk before scoring โ otherwise you waste Credits and get false alerts.
๐ขA real-world case study
"Green Solar" โ a solar-panel installer. They got about 300 leads a month from Facebook and the website, and most were apartment renters (not relevant). The salespeople wasted a whole morning on dead calls. A Make scenario with a filter ("owns the property = yes"), scoring by roof size and electricity bill, and a Router: hot โ an SMS to the salesperson within a minute; warm โ an afternoon call list; cold โ an email with a guide. Result: the closing rate on calls doubled, and 60% of the unnecessary calls disappeared.
โFrequently asked questions
Does a filter use Credits?
No. Only modules that run use Credits. That's why an early filter saves.
Can I put a Router inside a Router?
Yes, but it becomes hard to read. It's better to compute a variable first (for example segment) and route by it once.
What's the difference between if and a Router?
if chooses a value inside a field. A Router chooses a route of modules. If only the text changes โ if. If the actions change โ a Router.
Why a webhook and not Tally โ Watch New Responses?
Both are instant. The app is more convenient; a webhook works with any form (Elementor, Wix, Google Forms through Apps Script).
โ๏ธQuick understanding check
โก๏ธWhat now?
You finished the lecture! Go to the practice page โ multiple-choice questions and tasks that build A smart lead form with scoring and routing (Webhook โ Filter โ Score โ Router โ Telegram). Stuck? The help guide breaks every task into steps. Only after you have tried, peek at the full solution.