Contact form triage and auto-replies

OpenAI sorts form requests and drafts replies. This n8n template receives contact form POST requests with name, email and message through an n8n webhook. OpenAI gpt-4o-mini classifies category, urgency and sentiment, writes a one-sentence summary and drafts an email reply in the visitor's language, all in strict JSON. Spam is appended as a flagged row to Google Sheets. Other requests are posted as an alert to a Slack channel, the drafted reply is sent to the visitor with Gmail, and the submission is logged to Google Sheets. It is for businesses that receive requests through a website contact form.

n8nRead on 2026-11-168 steps

Steps

  1. Trigger: Webhook receives a contact-form POST
    Name, email, message.
  2. OpenAI (gpt-4o-mini) classifies and drafts a replyOpenAI
    Category, urgency, sentiment, summary.
  3. Normalizes the AI output
  4. Spam is logged to Google Sheets and skippedGoogle Sheets
  5. Slack alert for non-spam submissionsSlack
  6. Output: Sends the AI auto-reply via GmailGmail
  7. Output: Logs the submission to Google SheetsGoogle Sheets
  8. Output: Responds to the webhook with received

Limits

  • The form must post name, email and message to the webhook.
  • The AI-drafted reply is sent to the visitor without a review step described on the page.

What it does well

  • Spam is logged apart and gets no Slack alert.
  • Replies are drafted in the visitor's language.

Before you import

Create and connect OpenAI, Slack, Gmail and Google Sheets credentials in n8n, then set the Google Sheets document ID, the sheet name and the Slack channel.

Similar templates