Mateen Ahmed

Open to remote roles & freelanceKarachi

Automations Automation case study

n8n automation / Demo build

Lead Engine

Captures every new real-estate lead, scores it hot, warm or cold with AI, alerts the team and emails the lead within seconds.

Type
Demo build for a fictional real-estate team
Runs on
n8n, self-hosted with Docker and PostgreSQL
Connects
Claude Haiku 5.5, HubSpot, Slack, Gmail, Apify

The problem

Real-estate teams lose leads when replies are slow, duplicates pile up in the CRM, and nobody knows which inquiry to call first.

10Workflows
15/15Sample test leads scored as expected
<$0.001AI cost per lead

What each lead gets

LeadHubSpotSlackEmail to the lead
HotContact and a dealFull alert: why it is hot, next action, budget, timeline and contact detailsThank-you within seconds. An agent will call today
WarmContact and a dealOne line to the teamWithin seconds. Contact within one business day
ColdContact onlyNothingNothing
Stopped before scoring
Seen beforeCounted as a repeat visit. No second deal, no second alert.
No valid email or phoneRejected.

What I built

  1. Scored with a reason

    Claude Haiku 5.5 scores each new lead hot, warm or cold, with a reason and a suggested next step. It judges only the details given, never the name.

  2. A person approves every outreach email

    A Google Maps search finds referral partners in a city and AI drafts a short first email from the public listing alone. Nothing is sent until someone clicks Approve in Slack.

  3. A summary every morning

    At 08:00 Slack gets the last 24 hours: new leads by score and source, hot and warm leads by name, repeat inquiries and outbound activity.

  4. Safe to test

    One switch sends every email to a test inbox, so testing never emails a real person. Real outbound needs two separate switches turned on.

  5. Built to fail loudly

    Every external call gets three tries. Failures go to a central error log and a Slack warning.

  6. Secured and capped

    The webhook needs a secret header, and the AI treats what a lead writes as data, not instructions. Each paid map search is capped at $0.50.

Next project Kindred

Let’s talk

Tell me what you are building, or what you are tired of doing by hand.