Automation library · Lead generation

Qualify inbound real estate leads from Gmail with Gemini

Started by an arriving email, and works across Airtable, Gmail, Google Sheets, HubSpot and one other. It hands the judgement calls to Gemini. 18 steps, 3 branches: a working afternoon to understand properly.

MediumCalls a model: Gemini

18 stepsMedium: a working afternoon
3Branches: places the flow splits
0Loops or waits
5Services it connects to

The flow

Starts it 1Model 1Logic 6Service 10

The steps in the order they run, from what starts it.

  1. 1New Lead Email ReceivedGmail triggerStarts it
  2. 2Fetch Full EmailGmailService
  3. 3Valid Lead Email?IfLogic
  4. 4Extract Email MetadataCodeLogic
  5. 5Parse Email & Qualify LeadGoogle GeminiModel
  6. 6Parse AI OutputCodeLogic
  7. 7Has Lead Email?IfLogic
  8. 8Send Acknowledgment to LeadGmailService
  9. 9HubSpot: Upsert ContactHubspotService
  10. 10HubSpot: Create DealHubspotService
  11. 11Log to Lead Parser SheetGoogle SheetsService
  12. 12Airtable: Create Lead RecordAirtableService
  13. 13Is Lead Hot?IfLogic
  14. 14Store Airtable Record IDSetLogic
  15. 15Notify Agent for Hot LeadGmailService
  16. 16Notify Agent via SlackSlackService
  17. 17Update Row: Agent NotifiedGoogle SheetsService
  18. 18Airtable: Update Agent NotifiedAirtableService

How it's built

Starts on
An arriving email
Steps
18, with 3 branches
Size
Medium: a working afternoon
Connects to
Airtable, Gmail, Google Sheets, HubSpot, Slack
Model
Gemini

Questions

What does it need to run?

An n8n account, plus your own Airtable, Gmail, Google Sheets, HubSpot and Slack accounts, and a key for Gemini. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an arriving email.

Does it use AI?

Yes. It calls Gemini. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 18 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 18 steps before you point it at anything that matters.