Automate WordPress contact form CF7 responses and classificati
This workflow optimizes the management of inquiries received through a contact form (Contact Form 7 - CF7 Plugin) on a WordPress site, automating the process...
🔌 Nodes & Integrations Used (6)
📖 Implementation & Setup Guide
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 businesses that receive multiple daily inquiries and want to improve their efficiency in managing customer communications.
**Benefits:** ✅ **Automation & Speed** – Reduces the time needed to handle inquiries manually. ✅ **Better Email Management** – Ensures every message receives a timely and accurate response. ✅ **Customization** – The generated draft can be edited before sending, maintaining a personal touch. ✅ **Inquiry History** – Storing data in Google Sheets allows for easy tracking of customer interactions. ✅ **Easy Integration** – Works seamlessly with Contact Form 7 without complex configurations.
----
How It Works 1. **Form Submission Handling**: The workflow starts with a WordPress form submission captured via a webhook. The form data (first name, last name, email, phone, and message) is extracted and structured using the "Set Fields" node. 2. **Message Classification**: The submitted message is classified into predefined categories (e.g., "Product Info," "Order Info," or "Other") using the "Message Classifier" node, powered by Google Gemini. 3. **Automated Email Drafting**: Based on the classification, the workflow generates a professional email draft using one of three "Email Writer" nodes (for Product, Order, or Other requests). Each node uses Google Gemini to craft a personalized response with a structured format (subject and body). 4. **Email Draft Creation**: The drafted email is sent as a Gmail draft to the appropriate department, including the original form data for context. 5. **Data Logging**: All submissions, along with their classifications and email drafts, are logged in a Google Sheets spreadsheet for record-keeping and further action.
---
Set Up Steps 1. **Install WordPress Plugin**: Install the "CF7 to Webhook" plugin on WordPress and configure it to send form submissions to the n8n webhook URL. 2. **Configure Webhook in n8n**: Set up the "From Wordpress" webhook node in n8n to receive POST requests from the WordPress form. 3. **Google Gemini Integration**: Ensure the Google Gemini nodes are properly authenticated with the correct API credentials. 4. **Gmail and Google Sheets Setup**: Authenticate the Gmail and Google Sheets nodes with the appropriate OAuth2 credentials and specify the target spreadsheet and sheet name. 5. **Customize Classification Categories**: Adjust the categories in the "Message Classifier" node to match your business needs. 6. **Test the Workflow**: Trigger a test form submission to verify the workflow processes data correctly, classifies the message, generates an email draft, and logs the data.
---
**Need help customizing?** [Contact me](mailto:info@n3w.it) for consulting and support or add me on [Linkedin](https://www.linkedin.com/in/davideboizza/).
⚡ How to import this workflow into n8n:
- Click the Direct Download JSON button above to save
Automate_WordPress_contact_form_CF7_responses_and_classificati.json. - Log in to your n8n Cloud or self-hosted n8n instance.
- In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
- Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
- Click Execute Workflow to test and switch to Active!
Related Email & Outreach Workflows
View All in Email & Outreach →Abandoned cart recovery for Shopify via Gmail Google Sheets T
Who is this for? This template is ideal for solo store owners, eCommerce marketers, automation beginners, or anyone using Shopify and Gmail who wants to reco...
Add new leads in Lemlist from Airtable
This workflow allows you to add new leads in Lemlist from Airtable. !workflow-screenshot Airtable node: This node lists all the emails that are stored in you...
Add Subscriber and Send Email Campaign
Production-ready n8n automation template for Add Subscriber and Send Email Campaign built by AhiXLight. Seamlessly connects Sendy with 3 configured nodes.
Add new contacts from HubSpot to the email list in Mailchimp
This workflow adds new HubSpot contacts to the Mailchimp email list. Prerequisites - HubSpot account and HubSpot credentials - Mailchimp account and Mailchim...