Score and auto-reply to new leads with OpenAI and Gmail
Ready for 3.0What this workflow does
This AI workflow has 9 nodes and runs when someone submits an n8n form (“Contact Us”). Along the way it connects OpenAI, Gmail and Google Sheets.
How it runs
Trigger: When someone submits an n8n form (“Contact Us”).
- Configure Your Settings (Edit Fields (Set)): sets 5 fields: businessName, ownerName, ownerEmail…
- Score Lead & Draft Reply (OpenAI): uses OpenAI
- Parse AI Response (Code): runs custom JavaScript code
- Route by Lead Quality (Switch): routes items into 3 branches
- Log Lead with Score (Google Sheets): append
- Reply to Hot Lead (Gmail): uses Gmail
- Reply to Warm Lead (Gmail): uses Gmail
- Reply to Cold Lead (Gmail): uses Gmail
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (7)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Edit Fields (Set)
n8n-nodes-base.set - OpenAI
@n8n/n8n-nodes-langchain.openAi - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch - Gmail
n8n-nodes-base.gmail - Google Sheets
n8n-nodes-base.googleSheets
From the author
++Who is this for++ Small business owners, freelancers, and agencies who receive inbound leads through a web form and want instant, personalized follow-up — without manually reading every submission. ++What it does++ When someone fills out your lead intake…