Mindket

Contact form messages routed by AI and logged to Sheets

Newversion 1 · updated

Overview

An n8n workflow that classifies each contact form message with AI, emails the matching department and adds a row to a Google Sheet.

Contact form messages routed by AI and logged to Sheets is an n8n workflow in the Business category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page or copy its JSON, then import it into an n8n canvas. Nothing runs until you activate it in n8n.

At a glance

Runs in
  • n8n Cloud: import the file there and share the form’s address
  • Your own n8n server: the same file and steps
  • Your website: link to the form, or feed the workflow from another form through a webhook
  • Google Sheets and email: where the messages land

Platform

Connects 3 apps

How it works

Trigger

Contact form submitted

It starts when a visitor submits the Contacts form:

  • Name, a required field
  • Email, a required field
  • Message, a required text area

Actions

  1. The Text Classifier reads the message and picks Request Quote, Product info, General problem, Order or other
  2. The department for that category gets an email with the visitor’s name, address and message
  3. The reply address of that email is the visitor’s
  4. A row with the time, name, address, message, category and recipient is added to the Google Sheet

Result

An email in the right department’s inbox and a matching row in the sheet

Integrations

What you need before you start.

OpenAI

Language model

Classifies the message into one of the categories, or other.

NeedsAn OpenAI API key

Email (SMTP)

Outgoing mail

Sends the message to the department that matches its category.

NeedsAn SMTP account and a sender address

Google Sheets

Request log

Keeps one row for every message with its category.

NeedsA Google Sheets credential and a spreadsheet with six headers

Workflow check

Checked by Mindket on 13 Nov 2026

Steps
12 steps, starting on a form
AI
1 step calls an AI model: Text Classifier
Sign-ins
Signs in to: Email, Google Sheets and OpenAI
API keys
No API key is left in the file
Step types
Mindket’s checker reads all 4 of its step types

Read from the workflow’s file, not from a run.

About

What it is

This n8n workflow turns a contact form into a routed inbox. A visitor fills in a name, an email address and a message. An AI Text Classifier labels it as a quote request, product information, a general problem, an order question or other. The message is emailed to the matching department and added as a row to a Google Sheet. Thirteen nodes run it, beside one sticky note.

Who it suits

Online shops and support teams whose contact form serves several departments. Skip it if your form needs more than a name, an address and a message, or if you cannot send message text to OpenAI.

Who uses it, and how
IndustryWho uses itHow they use itExample
RetailOnline shopsSend quote requests to salesA shop owner gets bulk price questions in the quotes inbox.
SupportSupport teamsSeparate problems from order questionsA support lead sees damaged goods reports apart from product questions.
WholesaleDistributorsLog every request in one sheetA distributor reviews the month’s requests by category.
AgenciesSmall agenciesRoute a client’s contact formAn agency sets up one form for a client with three departments.

You need some n8n, an SMTP account and a Google Sheet: import a file, add three credentials, fill in the addresses and set up the sheet’s headers.

Where to use it

Any n8n that can reach OpenAI, an SMTP server and Google Sheets will run it. The form is served by n8n itself.

  • n8n Cloud: import the file there and share the form’s address
  • Your own n8n server: the same file and steps
  • Your website: link to the form, or feed the workflow from another form through a webhook
  • Google Sheets and email: where the messages land

Setup

Download saves a zip with workflow.json and Mindket’s setup notes in your downloads folder. Setup takes three credentials, six addresses and a sheet with six headers.

What you need first
NeedDetail
n8nOn n8n Cloud or on a server of your own
OpenAIAn API key
SMTPA mail account to send from
Google SheetsA spreadsheet whose first row holds DATA, NOME, EMAIL, RICHIESTA, CATEGORIA and TO
  1. In n8n, create a workflow, open its menu, choose Import from File and pick workflow.json.
  2. Add an OpenAI credential and select it in OpenAI.
  3. Add an SMTP credential and select it in the five department nodes. Replace each address placeholder.
  4. Add a Google Sheets credential, select it in the five database nodes and replace <YOUR_SHEET_ID>.
  5. Open the form’s test address from On form submission, send a message and look at the inbox and the sheet.

How to use it

Share the form’s address. Each message lands in one department’s inbox, and a row with its category appears in the sheet. Use your own addresses while you test.

What to change for a different result
To changeWhere
The categoriesText Classifier
Who gets which messagetoEmail in each department node
The email wordingThe body in each department node
The formThe fields in On form submission

Example

A customer writes that a parcel arrived broken and asks for a replacement. The classifier picks General problem.

The support address gets an email with the message, and the reply address is the customer’s. A row with the time, name, address, message and category appears in the sheet.

For newcomers and experts

If you are new. n8n draws a workflow as boxes joined by lines, and each box, a node, does one job. Here one box shows the form, one decides the category, five send email and five add rows. Try it first with your own address.

For experts. A Form Trigger feeds a Text Classifier with the fallback set to other, so it has five outputs. Each output goes to an Email Send node and then to a Google Sheets append node.

Where to look closer
NodeWhat it doesWhat to know
Text ClassifierPicks one category for the messageIts outputs follow the order of the categories, with other last
Quote Dep.Emails the quote departmentThe reply address is the visitor’s
Quote DBAdds one row to the sheetEach database node writes its own category in CATEGORIA
OpenAIThe language model for the classifierIt answers in JSON text and calls no tool

Good to know

This workflow sends real email, so try it with your own addresses first.

  • The repair: OpenAI’s deprecations page, read on 12 November 2026, gives 14 January 2027 as the shutdown date of gpt-4o-mini. This copy names gpt-6-luna
  • The wiring: the Product info output led nowhere, and the quote output also fed the product department. Each category now reaches its own department
  • The sheet: every row used to say info prodotti in CATEGORIA. Each node now writes its own category, and a leftover line about a product type is gone from the emails
  • Not run: this copy was not run against OpenAI, an SMTP server or Google Sheets
  • Your data: the message goes to OpenAI, and the name, address and message go to the departments and the sheet
  • Credentials: the JSON holds none

README and files

README

Contact form messages routed by AI and logged to Sheets

An n8n workflow with a contact form for an online shop. A Text Classifier sorts each message as a quote request, product information, a general problem, an order question or other. The message is then emailed to the matching department and added as a row to a Google Sheet.

What is inside

  • workflow.json: the workflow as n8n exports it, fourteen nodes: thirteen that do the work and one sticky note. It holds no credential.
  • README.md: these notes.

What we changed from the original copy

  • The credential links are gone. Select your own for OpenAI, SMTP and Google Sheets.
  • The model was gpt-4o-mini. OpenAI's deprecations page, read on 12 November 2026, gives 14 January 2027 as its shutdown date and names gpt-6-luna.
  • The Text Classifier reads the model's reply as JSON text and does not call a tool, as n8n's source shows. The OpenAI node therefore names gpt-6-luna.
  • The Product info output led nowhere, and the Request Quote output fed the product department as well as the quote department. Request Quote now goes to Quote Dep. only, and Product info goes to Prod. Dep..
  • All five Google Sheets nodes wrote the same value, info prodotti, in CATEGORIA. Each one now writes its own category: Request Quote, Product info, General problem, Order or other.
  • The email body ended with a Tipo prodotto line that reads a field the form does not have. That line is removed.
  • The addresses and the sheet id are placeholders: <YOUR_QUOTES_EMAIL>, <YOUR_PRODUCTS_EMAIL>, <YOUR_SUPPORT_EMAIL>, <YOUR_ORDERS_EMAIL>, <YOUR_OTHER_EMAIL>, <YOUR_SENDER_EMAIL> and <YOUR_SHEET_ID>. The tab is named Sheet1.
  • The note is rewritten, with a setup list.
  • Nothing else.

Before you start

  • An n8n instance, on n8n Cloud or your own server.
  • An OpenAI API key.
  • An SMTP account to send from, and the address it sends as.
  • A Google Sheet whose first row holds the headers DATA, NOME, EMAIL, RICHIESTA, CATEGORIA and TO.

Set it up

  1. In n8n, create a workflow, open its menu and choose Import from File. Pick workflow.json.
  2. Add an OpenAI credential and select it in OpenAI.
  3. Add an SMTP credential and select it in the five department nodes. Replace each <YOUR_..._EMAIL> placeholder with the address that should receive that kind of message.
  4. Add a Google Sheets credential and select it in the five database nodes. Replace <YOUR_SHEET_ID> in each one with your spreadsheet's id and check the tab name.
  5. Open the form's test address from On form submission, send a message and look at the inbox and the sheet.

How a run goes

  1. On form submission shows a form titled Contacts with the required fields Name, Email and Message. It answers the visitor when the last node finishes.
  2. Text Classifier reads the message and picks one of four categories, or the fallback other.
  3. One of the five department nodes sends an email. The subject starts with [n8n Contacts] and the department, and the reply address is the visitor's.
  4. The matching database node adds a row. DATA is the submission time, NOME, EMAIL and RICHIESTA come from the form, CATEGORIA is the category and TO is the recipient.

Change the look

  • The categories and their descriptions: Text Classifier. A new category adds an output, which needs its own email and sheet nodes.
  • Who gets which message: toEmail in each department node.
  • The email wording: the body in each department node.
  • The form's fields: On form submission.

Good to know

  • The workflow sends real email, so use your own addresses while you test.
  • A message that fits no category goes to Other Dep., because the fallback option is set to other.
  • This copy was not run against OpenAI, an SMTP server or Google Sheets.
  • The message text goes to OpenAI. The name, address and message go to the departments and the sheet.
  • The JSON holds no credential.
Files
NOTICE.md  669 B
README.md  4 KB
workflow.json  22 KB

3 files, 26 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-12

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

Bonsai-27B-GGUF

lmstudio-community · Kit

A GGUF conversion of the 27B Bonsai model for LM Studio, with a 3.80 GB Q1_0 language file and a 0.93 GB BF16 vision projector. Tested for text, vision and par…

New

Runs DeepSeek-V4.1-Flash-1017 as a 2.9 bits-per-weight EXL3 quantization, a 196 GiB copy for people serving large models on their own hardware. Perplexity stay…

New

MusicGen Small

facebook · Kit

Generates short music clips from a text description or an audio prompt, in the small checkpoint of facebook's MusicGen. It suits developers and music hobbyists…

New

Similar in Business

See all in Business

pplx-decider-v1.1-27b

perplexity-ai · Kit

Picks the best option for a decision from text and images, such as which team should handle a request, with a probability for each choice, for developers who b…

New

NuExtract3

numind · Kit

Reads documents as text or images and fills a JSON template with the fields you ask for, or converts the pages to Markdown. A 4B model for teams that process s…

New

Drex DLM

nace-ai · Kit

Scores yes or no, multiple choice and rating questions about a document in one pass, with a probability for every option. An 8B decision model from Nace.AI tha…

New