Qualify website leads with OpenAI and log replies in Gmail and Sheets
Ready for 3.0What this workflow does
This AI workflow has 38 nodes and runs when an HTTP POST request hits its webhook URL (plus 2 other triggers). Along the way it connects Google Sheets, OpenAI Chat Model, Gmail and Slack.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 2 other triggers).
- Configure your settings (Edit Fields (Set)): sets 20 fields: your_name, your_email, business_name…
- Create a sample lead (Code): runs custom JavaScript code
- Is this the follow-up run? (If): checks a condition and branches into true / false
- Read leads waiting on a follow-up (Google Sheets): read
- Normalize and screen the lead (Code): runs custom JavaScript code
- Pick leads due for a follow-up (Code): runs custom JavaScript code
- Route by screening result (Switch): routes items into 3 branches
- Find replies from these leads (Gmail): get many
- Look up this email in the lead log (Google Sheets): read
- Build the log row (Code): runs custom JavaScript code
…plus 20 more steps. See the full node list below.
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (13)
- Webhook
n8n-nodes-base.webhook - Manual Trigger
n8n-nodes-base.manualTrigger - Code
n8n-nodes-base.code - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Switch
n8n-nodes-base.switch - Google Sheets
n8n-nodes-base.googleSheets - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Gmail
n8n-nodes-base.gmail - Slack
n8n-nodes-base.slack
From the author
Quick overview This workflow captures website form leads via a webhook, screens and scores them with OpenAI, logs every lead to Google Sheets, and creates Gmail reply and follow-up drafts (optionally alerting Slack for hot or risky leads) so you can review…