Contact form spam and enquiry sorting

GPT-4.1 tells real enquiries from spam. This n8n template receives contact form submissions through a webhook. An OpenAI model, GPT-4.1 in the title, classifies each message as a real enquiry, a seller or outreach message, or spam. Real enquiries are saved to an n8n data table, sent to the internal team and answered with a confirmation email through Gmail. Seller messages are saved and forwarded internally, with no automatic reply to the sender. Internal notices go to Telegram, which can be replaced with email. It is for businesses whose website form also receives sales pitches and spam.

n8nRead on 2026-11-166 steps

Steps

  1. Trigger: Form submission received through a webhook
  2. Data standardized into a clean structure
  3. AI classifies enquiry, seller or spamOpenAI
  4. Real enquiries saved, shared and answeredGmail
    Professional confirmation email.
  5. Seller messages saved and forwarded internally
    No automatic client reply.
  6. Spam filtered out

Limits

  • Internal notices use Telegram unless you switch them to email.

What it does well

  • Seller and outreach messages get no automatic reply.
  • Every real enquiry is saved before it is answered.

Before you import

Connect an OpenAI credential for classification and email generation, a Gmail credential for confirmation emails, Telegram as an option, and create the data table used to store submissions.

Similar templates