What This Workflow Does
This n8n workflow automates the processing and routing of WordPress Contact Form 7 submissions. When a visitor submits a contact form on your WordPress site, the workflow automatically captures the response, classifies it by type or department, generates a draft reply using AI, and logs the information for your team to review and action.
How It Works
The workflow begins when a contact form submission triggers a webhook from your WordPress site. Here is the step-by-step process:
- A Contact Form 7 submission is sent via webhook to n8n
- The incoming data is formatted and prepared for processing
- Google Gemini AI analyzes the message content to understand context and intent
- A text classifier categorizes the submission into predefined departments or topics
- An LLM chain generates a professional draft response with subject line and email body
- The classified information and draft reply are stored in Google Sheets for team review
- The workflow is logged with completion details
Use Cases
- Customer Support Triage: Automatically sort support tickets by urgency level and route them to the appropriate support team member or department
- Lead Qualification: Classify incoming leads by business type, budget range, or interest category to prioritize sales follow-ups
- Content Inquiry Management: Route blog inquiries, partnership proposals, and media requests to the correct department automatically
- Event Registration Processing: Categorize event registrations by attendance type and automatically draft personalized confirmation emails
- Feedback Collection: Classify customer feedback as praise, complaint, or suggestion, then generate appropriate response templates for your team
Nodes Used
- Webhook: Receives Contact Form 7 submissions from WordPress
- Set Node: Formats and prepares the form data for processing
- Google Gemini: Analyzes message content using advanced AI language models
- Text Classifier: Categorizes submissions into defined categories or departments
- Chain LLM: Generates professional draft email responses with subject lines
- Gmail: Sends notifications or responses via email
- Google Sheets: Records and stores classified submissions and draft replies
- Output Parser Structured: Formats the final output in a structured format
- Sticky Note: Provides workflow documentation and notes
Prerequisites
- Active WordPress site with Contact Form 7 plugin installed
- CF7 to Webhook plugin installed and activated on your WordPress site
- n8n account with access to create and manage workflows
- Google account for Gemini AI access and Google Sheets integration
- Gmail account configured for sending email notifications
- Webhook URL from n8n added to the CF7 to Webhook plugin settings
- Predefined classification categories created before workflow deployment
Difficulty Level
Intermediate. This workflow requires basic knowledge of n8n, WordPress plugins, and integration setup. You will need to configure the webhook connection between WordPress and n8n, set up Google API credentials, define your classification categories, and test the workflow before deploying to production. No coding is required, but familiarity with automation platforms is recommended.
This workflow template is shared under the n8n fair-code license. Free to use and modify.