The bottom line (TL;DR)
- 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.
The key points โ in depth
1. Filters
Operators by type; AND/OR; a clear label. Early in the scenario.
2. Router
The same bundle to every route whose filter holds, in order. Ranges without overlap. A fallback for the rest.
3. Cleaning data
trim, lower, replace with regex, split. Matches pattern for validity checks.
4. Dates
UTC inside, the time zone when displaying. parseDate with a pattern, addDays for arithmetic.
5. if / ifempty / switch
Values inside a field; a Router for routes.
6. Lead scoring
Criteria โ points โ one Set variable. Validate on past leads.
Concept cards (click or press Enter to flip)
Filter
A condition on the line between modules; a bundle that doesn't meet it stops.
Router
A module that splits a bundle into several routes.
Fallback route
A route that runs only if no other route matched.
Matches pattern
A filter operator that checks a regex.
ifempty
Returns a fallback value if the field is empty.
switch
Picks a value by matching, with a default.
Custom webhook
A unique URL that starts a scenario immediately.
Lead scoring
A numeric score for a lead by criteria.
Spaced repetition โ the session concepts
Mark "I knew it" or "Not yet" โ the cards you did not know come back more often. Cards from all the sessions are in the arcade.
Quick cheat sheet
| What | Details |
|---|---|
{{trim(lower(x))}} | Clean text |
{{replace(x; "/[^0-9]/g"; emptystring)}} | Digits only |
{{last(split(email; "@"))}} | The domain |
{{formatDate(d; "DD/MM HH:mm"; "Asia/Jerusalem")}} | A local date |
{{parseDate(t; "DD/MM/YYYY")}} | Text โ date |
{{ifempty(x; "โ")}} | A default |
{{switch(x; a; 1; b; 2; 0)}} | A multiple choice |
| Router โ Filter โ Fallback route: Yes | A default route |
Common mistakes to avoid
- Comparing numbers with a Text operator.
- Overlapping ranges in Router routes.
- Forgetting the time zone when checking "today".
- substring starts at 0 but arrays at 1 โ mixing them up.
- Filters at the end of the scenario instead of at the start.
Self-review questions
- What's the difference between if and a Router?
- How do you make sure a lead doesn't reach two routes?
- Why is it important to state the time zone?
- What does the fallback route do?
- How do you clean a phone number into international format?
Homework and preparing for the next session
- The form should work end to end with 3 test leads.
- Preparing for session 4: install Postman (or use hoppscotch.io in the browser) โ we will send requests to a webhook.