AI Contact Form Spam Filter: Classify & Route Submissions
Contact forms on websites receive both genuine inquiries and spam, requiring manual review to distinguish between them. This workflow uses AI to instantly classify each submission as spam or legitimate, logs all submissions to a Google Sheet, and only sends you email notifications for legitimate leads. Spam submissions are quietly logged without alerts, saving you time filtering manually.
What this workflow does
- A Webhook node receives form submissions from your website.
- An OpenAI node classifies the submission as spam or legitimate with a confidence reason.
- An IF node routes spam to a 'Spam Log' sheet, and legitimate submissions to a 'Leads' sheet.
- For legitimate submissions, a Gmail node sends you an alert with the lead details.
- All submissions are tracked in sheets for analytics and training improvements.
Setup guide
- Import the JSON into n8n (Workflows > Import from File).
- Connect OpenAI, Google Sheets, and Gmail in their respective nodes.
- Replace REPLACE_WITH_SPREADSHEET with your Google Sheet ID.
- Set up the Webhook URL on your website's contact form handler.
- Customize the AI classification prompt to match your spam patterns.
- Test with sample submissions before going live.
Want this running 24/7?
Self-host n8n on a cheap VPS and this workflow runs around the clock for less than a coffee a month.
Get an n8n VPS from $5/monthFAQ
Want the workflows this one is a warm-up for?
The Mega Bundle packs both WorkflowForge Pro volumes — 32 production-grade workflows: automations (cart recovery, lead scoring, invoice extraction) and AI agents (support agent, calendar assistant, research agent), each with a setup guide. $39 for both, instant download.
Get the Mega Bundle →Need it customized for your exact process?
I build custom n8n automations and AI agents professionally: your tools, your edge cases, tested and documented.
Hire me on Fiverr →