Automate WordPress contact form (CF7) responses and classification with Gemini
Ready for 3.0What 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.
- Set Fields (Edit Fields (Set)): sets 5 fields: first_name, last_name, email…
- Message Classifier (Text Classifier): classifies text into categories with AI, with model: Google Gemini Chat Model
- Email writer (Product info) (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model; output parser: Subject and Text
- Email writer (Order info) (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model; output parser: Subject and Text
- Email writer (Others) (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model; output parser: Subject and Text
- Email draft - Product info (Gmail): work with draft
- Email draft - Order info (Gmail): work with draft
- Email draft - Other info (Gmail): work with draft
- Save on Sheet (product) (Google Sheets): append
- Save on Sheet (order) (Google Sheets): append
…plus 1 more step. See the full node list below.
Services it uses
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)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Text Classifier
@n8n/n8n-nodes-langchain.textClassifier - Gmail
n8n-nodes-base.gmail - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Google Sheets
n8n-nodes-base.googleSheets - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured
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…