Category: Automations › Lead Generation & CRM · Best for: Anyone drowning in unqualified leads · Platform: n8n · Steps: 5
What it does
Every new lead in your sheet gets a score from AI, so you call the best ones first.
This template uses Google Sheet document connected to Google Forms, but a standalone Sheet document will work too
Works with: Google Sheets, OpenAI
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 Update lead status, Check for new entries)
- OpenAI API key: how to connect (used by Qualify leads with GPT)
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 lead status →
id: replace the placeholder with your own - Update lead status →
displayName: replace the placeholder with your own - Update lead status →
sheetName: choose your own - Update lead status →
documentId: choose your own - Check for new entries →
sheetName: choose your own - Check for new entries →
documentId: choose your own
- Update lead status →
- Click Save.
Test it
- Click Test workflow (or Execute workflow). Check for new entries 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
- Check for new entries starts the workflow (Google Sheets).
- Merge uses Merge.
- Qualify leads with GPT uses OpenAI to chat.
- Update lead status uses Google Sheets to update.
- Extract JSON reply reshapes the data for the next step.
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:
1. Create a Google Sheet document
- This template uses Google Sheet document connected to Google Forms, but a standalone Sheet document will work too
- Adapt initial trigger to your needs: check for new entries periodically or add a manual trigger
Link to the Google Sheet template
2. Provide lead qualification instructions
- Create a system message with overall instructions
- Add a user message with the JSON variables
- Set node parses the resulting JSON object, but you can also request a plain string response in the system message
3. Combine the initial data with GPT response
- This Merge node puts together original records from the google sheet and responses from the OpenAI
4. Update the Google Sheet document
- Provide Column to Match On (usually a timestamp in case of Google Forms)
- Enter the result from GPT into a separate column
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