Skip to content
Valery

Module 4 · Lesson 1 of 6

Automation building blocks

Triggers, actions, data mapping, filters, branches, loops and AI steps, with brokerage examples.

9 min

An automation is a recipe a computer follows without being asked: when this happens, take this information, do these things with it. Brokerages already run on recipes, mostly carried out by people. A web lead arrives, so someone copies it into the CRM, checks which listing it is about, assigns an agent and sends a first reply. Each of those steps is a building block, and once you can name the blocks you can automate the boring parts and keep people for the parts that need judgment.

Every automation tool, whether Zapier, Make or n8n (next lesson), uses the same seven blocks under slightly different names. Learn them once and you can read any workflow, sketch a new one on paper, and explain it to a broker of record before anyone builds it.

Triggers and actions

Key term
Trigger

The event that starts an automation. It can be something that happens (a form is submitted, a deal changes stage), a time (every weekday at 8:00 a.m.), or a person pressing a button.

Key term
Action

A step the automation performs: create a CRM contact, add a row to a sheet, draft an email, post to a team channel, create a task.

A workflow has one trigger and any number of actions. Lesson 3 covers triggers in depth. For now, note the two kinds: instant triggers, where the other system announces the event (a webhook), and polling triggers, where your automation tool checks every few minutes for something new.

The simplest useful automation
  1. 1. TriggerWeb form lead arrives
  2. 2. ActionCreate contact in the CRM
  3. 3. ActionPost an alert in the team channel

Data mapping

Key term
Data mapping

Telling each step which piece of information to use from earlier steps: "put the form's Email field into the CRM's Email field".

Mapping is where most automations quietly break. The website form calls it "Phone number"; the CRM wants "Mobile"; the form sends "(416) 555-0123" and the texting tool needs "+14165550123". Good automations tidy data as it passes through.

Form fieldArrives asCRM fieldClean-up step
Full namejordan leeFirst name, Last nameSplit on the space, capitalize
Phone(416) 555-0123MobileConvert to +14165550123
Property123 example stListing of interestMatch to listing ID MM-2026-0142
Date10/27/2026Showing dateStore as 2026-10-27 to avoid month-day mix-ups
Consent boxonEmail consentStore as "Express, web form, date and time"

That last row matters. Record how and when consent was given at the moment it is given. Module 9 and the drafts lesson in this module explain why.

Filters, branches and loops

Key term
Filter

A check that lets the automation continue only if a condition is true: "only continue if the lead gave a phone number" or "only if the listing is in Halton Region".

Key term
Branch

A fork where different conditions send the data down different paths: buyers one way, sellers another, tenants a third.

Key term
Loop

Repeating the same steps for each item in a list: for each of the 12 new listings this week, write a one-line summary.

Lead routing with a branch
  1. 1. TriggerWeb lead arrives
  2. 2. CheckIs it a test or spam entry?
  3. 3. AIClassify as buyer, seller, tenant or other
  4. 4. CheckBranch by category
  5. 5. ActionAssign the agent on duty for that category
  6. 6. StoreLog the lead and the route taken

Branches and filters are cheap on most platforms and save money downstream, because every step you skip is a step you do not pay for. Loops are where costs climb: a loop over 500 contacts runs its steps 500 times.

AI steps

An AI step sends text to a model and gets text back, inside an otherwise fixed workflow. It is the routine-with-one-AI-step shape from Module 3. Four AI jobs cover most brokerage automations:

  • Classify: "Is this inquiry about buying, selling, renting, or a complaint?"
  • Extract: "Pull the name, phone, property and preferred times from this email."
  • Draft: "Write a first reply in our house style, for an agent to approve."
  • Summarize: "Summarize this week's showing feedback in five bullets."

Give each AI step one narrow job and ask for structured output, such as JSON with fixed fields (Module 2). Then add a check after it: did the category come back as one of the four allowed values? Is the phone number the right length? If not, send it to a person instead of guessing.

Name your steps

Rename every step to say what it does: "Classify inquiry" rather than "OpenAI 2". When something fails in six months, the person fixing it will thank you, and that person may be you.

The same blocks in each tool

BlockZapierMaken8n
Whole automationZapScenarioWorkflow
TriggerTrigger stepTrigger moduleTrigger node
ActionAction stepModuleNode
FilterFilter by ZapierFilter on a routeFilter or If node
BranchPaths by ZapierRouterIf or Switch node
LoopLooping by ZapierIterator and aggregatorLoop Over Items, or nodes run per item
Tidy dataFormatter by ZapierBuilt-in functionsEdit Fields (Set) node
AI stepAI by Zapier or an app stepMake's AI modules or an app moduleAI Agent, LLM chain or app node

In practice

Maple & Main Realty (fictional) receives about 60 web leads a month, as an illustration. Today an admin copies each one into the CRM, checks the listing, and texts the agent on duty. Here is the recipe in blocks.

Maple & Main web lead intake
  1. 1. TriggerWebsite form submitted
  2. 2. CheckFilter out test entries and empty messages
  3. 3. DataTidy name, phone, listing ID and consent
  4. 4. AIClassify buyer, seller, tenant or other
  5. 5. CheckCategory valid? If not, send to admin
  6. 6. ActionCreate CRM contact and assign agent
  7. 7. HumanAgent approves AI-drafted first reply
  8. 8. StoreLog the lead, route and approval

Notice what is not automated: the reply goes to the agent as a draft. Notice also that every block can be tested on its own with fictional data before the whole thing is switched on. The lab at the end of this module builds a smaller version of exactly this.

Common mistakes

  • Mapping raw form data straight into the CRM, creating duplicates and messy phone numbers.
  • Putting the AI step first, before filters remove spam and test entries you would otherwise pay to process.
  • Accepting whatever the AI step returns without a check.
  • Leaving default step names, so nobody can read the workflow later.
  • Building one giant workflow when two small ones (intake, then follow-up) would be easier to fix.

Key takeaways

  • Seven blocks build every automation: trigger, action, data mapping, filter, branch, loop and AI step.
  • Most failures happen in data mapping. Tidy and validate as data moves between steps.
  • Filter early to save cost; watch loops, which multiply cost.
  • Give AI steps one narrow job, ask for structured output, and check it before acting on it.
  • Sketch the blocks on paper before you open any tool.

Finished reading? Move on when you're ready.