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.
Steps
- Trigger: Webhook receives a contact-form POST
Name, email, message. - OpenAI (gpt-4o-mini) classifies and drafts a replyOpenAI
Category, urgency, sentiment, summary. - Normalizes the AI output
- Spam is logged to Google Sheets and skippedGoogle Sheets
- Slack alert for non-spam submissionsSlack
- Output: Sends the AI auto-reply via GmailGmail
- Output: Logs the submission to Google SheetsGoogle Sheets
- 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
Support tickets to Jira with Gemini
Also for customer support, 8 steps.
Label Gmail emails with Google Gemini
Also for customer support, 5 steps.
Support tickets: AI reply or escalate
Also for customer support, 9 steps.
Gmail and OpenAI: 29 templates compared
Same two apps, different steps.
Google Sheets and OpenAI: 24 templates compared
Same two apps, different steps.
Gmail and Google Sheets: 22 templates compared
Same two apps, different steps.
Gmail and Slack: 18 templates compared
Same two apps, different steps.
OpenAI and Slack: 17 templates compared
Same two apps, different steps.
Google Sheets and Slack: 16 templates compared
Same two apps, different steps.
Sort incoming requests
Other templates that do this task.