Score and reply to new leads using OpenRouter, Gmail and Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 16 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Gmail, Google Sheets and OpenRouter Chat Model.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Client Settings + Clean Lead (Edit Fields (Set)): sets 10 fields: businessName, ownerEmail, settingsSheetId…
- OpenRouter — Score + Draft Reply (Basic LLM Chain): sends a prompt to an LLM, with model: OpenRouter Chat Model
- Parse Claude JSON Safely (Code): runs custom JavaScript code
- Prepare Error Log (Edit Fields (Set)): sets 4 fields: errorTimestamp, errorNode, errorMessage…
- Can We Email This Lead? (If): checks a condition and branches into true / false
- Log Error in Google Sheets (Google Sheets): append
- Send Personal Reply by Gmail (Gmail): uses Gmail
- Save Lead — No Email (Google Sheets): append
- Is No-Email Lead Hot? (If): checks a condition and branches into true / false
- Alert Owner — Workflow Error (Gmail): uses Gmail
…plus 4 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Sheets + OpenRouter templates (210) · Other Gmail + OpenRouter templates (135)
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 (8)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail - Google Sheets
n8n-nodes-base.googleSheets - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm
From the author
Quick overview This workflow receives website leads via webhook, uses OpenRouter to score the enquiry and draft a short reply, then sends the response through Gmail and logs the lead (and any errors) to Google Sheets. How it works 1. Receives a lead…