Classify contact form leads with Google Gemini and log to Google Sheets
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 Google Gemini Chat Model and Google Sheets.
How it runs
Trigger: When someone submits an n8n form (“Contact us”).
- Business settings (Edit Fields (Set)): sets 7 fields: business_name, business_description, categories…
- Classify and draft reply (Basic LLM Chain): sends a prompt to an LLM, with model: Gemini model; output parser: Parse AI output
- Prepare row (Edit Fields (Set)): sets 9 fields: Date, Name, Email…
- Log lead in Google Sheets (Google Sheets): append
- Not spam? (If): checks a condition and branches into true / false
- Email lead alert (Send Email): sends an email over SMTP
Services it uses
Other Google Gemini + Google Sheets templates (819)
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)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if - Send Email
n8n-nodes-base.emailSend - Edit Fields (Set)
n8n-nodes-base.set
From the author
Quick overview This workflow captures website contact form submissions, uses Google Gemini to classify the lead and draft a reply, logs every message to Google Sheets, and emails an internal alert for non-spam inquiries. How it works 1. Receives a new…