AI Agents

Classify WordPress form responses and route them automatically

24 nodes 290 149 Webhook
Download

Workflow Description

Automation that receives form submissions via webhook, uses Gemini to intelligently categorize them, sends targeted emails based on type, and stores structured data in Google Sheets for tracking and analysis.

How it works

  1. 1.Receive form data from WordPress via webhook trigger
  2. 2.Analyze and classify text using Gemini language model
  3. 3.Route responses by detected category (inquiry, complaint, request)
  4. 4.Send notifications to relevant teams via Gmail
  5. 5.Store classified data in Google Sheets for record-keeping
  6. 6.Create organized database for future analysis and reporting

Use cases

  • Automatically prioritize and categorize customer inquiries by topic
  • Route complaints to support team and suggestions to product team
  • Build centralized repository of all form submissions for insights

Requirements

  • WordPress site with contact forms or custom forms enabled
  • Google account with Gmail and Google Sheets access
  • Gemini API key from Google Cloud

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

Gemini If Gmail LLM Chain Google Sheets Output Parser

Details

Trigger Webhook
Nodes 24
Apps 6
Views 290
Downloads 149

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (24)

/

From Wordpress

Webhook

#1

Set Fields

Set

#2

Google Gemini Chat Model

Gemini Model

#3

Message Classifier

If

#4

Google Gemini Chat Model1

Gemini Model

#5

Email draft - Other info

Gmail

#6

Email writer (Others)

LLM Chain

#7

Google Gemini Chat Model2

Gemini Model

#8

Google Gemini Chat Model3

Gemini Model

#9

Email writer (Order info)

LLM Chain

#10

Email writer (Product info)

LLM Chain

#11

Email draft - Product info

Gmail

#12

Email draft - Order info

Gmail

#13

Save on Sheet (product)

Google Sheets

#14

Save on Sheet (order)

Google Sheets

#15

Save on Sheet (other)

Google Sheets

#16

Sticky Note

Sticky Note

#17

Sticky Note1

Sticky Note

#18

Sticky Note2

Sticky Note

#19

Sticky Note3

Sticky Note

#20

Subject and Text

Output Parser Structured

#21

Subject and Text 2

Output Parser Structured

#22

Subject and Text 3

Output Parser Structured

#23

Sticky Note4

Sticky Note

#24