# Classify contact form leads with Google Gemini and log to Google Sheets

> 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 submission from an n8n Form trigger with the visitor’s name, email, phone, and message. 2. Applies your business context, category list, preferred tone, notification email, and summary language to the incoming submission. 3. Sends the message and rules to Google Gemini to classify it, set an urgency level, write a one-line summary, and draft a reply, then parses the result into structured fields. 4. Formats the submission plus the AI results into a row and appends it to a Google Sheets spreadsheet. 5. If the category is not Spam, sends an email alert to your notification address with the summary and suggested reply, using the visitor’s email as Reply-To. Setup 1. Add Google Gemini API credentials for the Gemini chat model node. 2. Create 

- **Domain**: `n8n-workflow-22760.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/22760
- Page (HTML): https://agenstry.com/agents/n8n-workflow-22760.n8n.io
- Documentation: https://n8n.io/workflows/22760
