Templates / Automate WordPress contact form (CF7) responses and classification with Gemini

Automate WordPress contact form (CF7) responses and classification with Gemini

Ready for 3.0

by Davide Boizza ✓ · 2,365 views · created 2025-04-08 · Ticket Management, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 19 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Google Gemini Chat Model, Gmail and Google Sheets.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Set Fields (Edit Fields (Set)): sets 5 fields: first_name, last_name, email…
  2. Message Classifier (Text Classifier): classifies text into categories with AI, with model: Google Gemini Chat Model
  3. Email writer (Product info) (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model; output parser: Subject and Text
  4. Email writer (Order info) (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model; output parser: Subject and Text
  5. Email writer (Others) (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model; output parser: Subject and Text
  6. Email draft - Product info (Gmail): work with draft
  7. Email draft - Order info (Gmail): work with draft
  8. Email draft - Other info (Gmail): work with draft
  9. Save on Sheet (product) (Google Sheets): append
  10. Save on Sheet (order) (Google Sheets): append

…plus 1 more step. See the full node list below.

Services it uses

Google Gemini Chat ModelGmailGoogle Sheets

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (8)

From the author

This workflow optimizes the management of inquiries received through a contact form (Contact Form 7 - CF7 Plugin) on a WordPress site, automating the process of classification, response drafting, and data storage. This workflow is particularly useful for…

Excerpt from Davide Boizza's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.