17/PROJECT · AUTOMATION WORKFLOW (SAMPLE PROJECT)

AI Lead Triage for a Real Estate Agency (n8n)

An n8n workflow that answers the problem every busy real estate agent has: enquiries arrive from the website, IDX listing pages and email while the agent is out showing homes, and the hottest buyers go cold before anyone replies. Each new enquiry is cleaned up, checked for duplicates and read by Claude, which pulls out the intent, budget, area, timeline and an urgency score from 1 to 5, writes a one-line summary and drafts a reply. Every lead is saved to a Google Sheets CRM. Hot leads reach the agent on Telegram within seconds with the drafted reply ready to check; warm leads get an automatic acknowledgement email; spam is logged and ignored. An hourly check reminds the agent about hot or warm leads still unanswered after 48 hours, and every Monday the agent gets a report of leads by source and intent, the median time to first reply, and any hot lead that was missed.

BUILT BY TAIWO EMMANUEL · FULL-STACK DEVELOPER

TYPE
Automation workflow (sample project)
STACK
n8n · Claude API · Google Sheets
SCREENS
4
STATUS
Live

/GOAL

Reply to every enquiry in minutes, and put the agent's attention on the buyers who are ready now.

/STACK

Technologies used

  • n8n
  • Claude API
  • Google Sheets
  • Telegram Bot API
  • Gmail
  • JavaScript
  • Vitest
  • Automation
  • AI
  • Real estate

/ARCHITECTURE

How it is built

  1. 01
    Intaken8n WebhookOne address for every lead source: website form, IDX listing pages and forwarded lead emails.
  2. 02
    Clean up and de-duplicaten8n Code (JavaScript)Normalises fields from different forms, checks the hidden spam field and skips the same contact within 30 days.
  3. 03
    AI triageClaude API, structured JSONReturns intent, budget, area, timeline, urgency 1–5, a summary and a drafted reply in a fixed schema; tested rules take over if the call fails or refuses.
  4. 04
    CRM and routingGoogle Sheets + SwitchSaves every lead as a row, then sends hot leads to the agent, warm leads an acknowledgement, and logs the rest.
  5. 05
    Follow-up and reportingSchedule triggers + TelegramHourly reminders for leads waiting 48 hours or more, and a Monday report on sources, reply times and missed hot leads.

/SCOPE

What was delivered

  • Accept enquiries from several sources through one webhook
  • Skip duplicate and invalid enquiries, and catch form spam
  • Score each lead with Claude, with a rule-based fallback
  • Save every lead to a Google Sheets CRM
  • Alert the agent about hot leads with a drafted reply to check
  • Acknowledge warm leads by email automatically
  • Remind the agent about leads unanswered after 48 hours
  • Send a weekly report with the median time to first reply

/NOTES

Scope boundaries

A sample project built to show how I design automation, not work for a client: the agency, enquiries and report figures are sample data. The scoring, follow-up and report logic is covered by 17 automated tests, including runs of the built workflow's code steps, but the workflow has not been run inside a live n8n account. Before using it you connect your own Google Sheets, Gmail, Telegram and Anthropic accounts, and the agent always checks a drafted reply before sending it.

/GALLERY

The whole workflow: one intake path with AI triage and three outcomes, plus hourly follow-ups and a Monday report.
One enquiry end to end, produced by the workflow's own code on a sample enquiry (rules fallback shown; live runs use Claude).
The Monday report, generated by the workflow's report step from sample CRM rows.

/MORE_WORK