Category: Automations › Lead Generation & CRM · Best for: B2B sellers targeting a city or niche · Platform: n8n · Steps: 36
What it does
Pick a niche and a city, and get a list of local businesses to contact.
I’m Alex Kim, an AI-Native Workflow Automation Architect Building Solutions to Optimize your Personal and Professional Life.
Works with: Google Sheets
What you get
- The n8n workflow file (
workflow.json), ready to import - This setup guide
- The list of fields to change for your own accounts (see Install below)
- Email support if you get stuck
Before you start
-
An n8n account. Easiest: n8n Cloud (free trial). Self-host for free with Docker:
docker run -it --rm -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n, then open http://localhost:5678. -
Accounts and API keys for these services:
- Google (Sheets, Gmail, Drive, Calendar, Docs): how to connect (used by GMaps API, Update Status to Success, Add rows in Google Sheets, GS - Get Subcategory, GS - Get Zip Codes, GS - Get Status)
Install
- In n8n, click Create workflow (top right).
- Click the ⋯ menu → Import from file and choose
workflow.json. Or open the file, copy everything and paste it onto the empty canvas with Ctrl/Cmd + V. - Open each node with a red warning triangle and pick or create the matching credential from the list above.
- Point these fields at your own sheets, chats and accounts:
- Update Status to Success →
sheetName: choose your own - Update Status to Success →
documentId: choose your own - Add rows in Google Sheets →
sheetName: choose your own - Add rows in Google Sheets →
documentId: choose your own - GS - Get Subcategory →
sheetName: choose your own - GS - Get Subcategory →
documentId: choose your own - GS - Get Zip Codes →
sheetName: choose your own - GS - Get Zip Codes →
documentId: choose your own - GS - Get Status →
sheetName: choose your own - GS - Get Status →
documentId: choose your own
- Update Status to Success →
- Click Save.
Test it
- Click Test workflow (or Execute workflow). When clicking "Execute Workflow" starts it. Trigger it once with real sample data.
- Click each node to check its output. A green tick means the step worked.
- Fix any red node: it's almost always a credential or a field that still points at a sheet or chat that isn't yours.
Go live
Toggle Active (top right). From now on it runs on its own. Check Executions in the left sidebar to see every run.
How it works, step by step
- When clicking "Execute Workflow" starts the workflow (Manual).
- Run workflow every hours starts the workflow (Schedule).
- Execute Workflow Trigger starts the workflow (Execute Workflow).
- Settings reshapes the data for the next step.
- GS - Get Zip Codes uses Google Sheets.
- Zips reshapes the data for the next step.
- Filter Zips checks a condition and routes items accordingly.
- Set Row Number reshapes the data for the next step.
- Split Out uses Split Out.
- Limit uses Limit.
- Loop Zips uses Split In Batches.
- GS - Get Subcategory uses Google Sheets.
- Filter Subcategories checks a condition and routes items accordingly.
- Subcategory reshapes the data for the next step.
- Loop Subcats uses Split In Batches.
- Set Zip reshapes the data for the next step.
- GMaps API calls an external API (https://places.googleapis.com/v1/places:searchText).
- If Empty checks a condition and routes items accordingly.
- Place Array reshapes the data for the next step.
- Set Place ID reshapes the data for the next step.
- Remove Duplicates uses Remove Duplicates.
- Add rows in Google Sheets uses Google Sheets to appendOrUpdate.
- GS - Get Status uses Google Sheets.
- Exponential Backoff reshapes the data for the next step.
- Update Status to Success uses Google Sheets to update.
- Exponential Backoff2 reshapes the data for the next step.
- Wait pauses before continuing.
- Exponential Backoff1 reshapes the data for the next step.
- Wait2 pauses before continuing.
- Check Max Retries1 checks a condition and routes items accordingly.
- Wait1 pauses before continuing.
- Check Max Retries2 checks a condition and routes items accordingly.
- Stop and Error1 uses Stop And Error.
- Check Max Retries checks a condition and routes items accordingly.
- Stop and Error2 uses Stop And Error.
- Stop and Error uses Stop And Error.
India & US notes
India: Zoho CRM and WhatsApp follow-ups are the most common combo; you can swap the CRM node for Zoho CRM. US: HubSpot free CRM is the usual starting point.
Extra setup notes
These notes are also on the canvas as yellow sticky notes:
AlexK1919
I’m Alex Kim, an AI-Native Workflow Automation Architect Building Solutions to Optimize your Personal and Professional Life.
About Me
Products Used
Google Maps API via Google Cloud Account
Settings
In the Google Sheets document, set the subcategories you'd like to search for
Set the URL of your Google Sheets document
Set the Zip Code sheet name
Triggers
Google Maps API
Data Prep
Troubleshooting
- "Credentials not found": open the node and select your credential again.
- Google "access blocked": in Google Cloud, add your email as a test user on the OAuth consent screen.
- Webhook not firing: copy the node's Production URL (not Test URL) into the other app, and make sure the workflow is Active.
- AI node errors: check your API key has billing enabled and the model name exists on your plan.
- Nothing happens on schedule: the workflow must be Active, and self-hosted n8n must stay running.
Need help?
Reply to your Morning Method order email and we'll help you get it running.
© Morning Method