Qualify WordPress Contact Form 7 leads with Gemini, HubSpot, and Slack
Ready for 3.0What this workflow does
This AI workflow has 15 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Google Gemini Chat Model, HubSpot and Slack. It also calls api.hubapi.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Settings (Edit Fields (Set)): sets 8 fields: business, hot_score, sales_channel…
- Lead Fields (Code): runs custom JavaScript code
- Qualify Lead (Information Extractor): extracts structured fields from text with AI, with model: Gemini Chat Model
- Lead Verdict (Code): runs custom JavaScript code
- Route Lead (Switch): routes items into 3 branches
- Has Email (If): checks a condition and branches into true / false
- Notify Support (Slack): uses Slack
- Save to HubSpot (HubSpot): create or update (contact)
- Sales Alert (Code): runs custom JavaScript code
- Contact Saved (If): checks a condition and branches into true / false
…plus 2 more steps. See the full node list below.
Services it uses
HTTP calls to: api.hubapi.com
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 (11)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Information Extractor
@n8n/n8n-nodes-langchain.informationExtractor - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Switch
n8n-nodes-base.switch - If
n8n-nodes-base.if - HubSpot
n8n-nodes-base.hubspot - HTTP Request
n8n-nodes-base.httpRequest - Slack
n8n-nodes-base.slack - No Operation, do nothing
n8n-nodes-base.noOp
From the author
Quick overview Gemini reads every Contact Form 7 submission and sorts it into lead, support or spam. Leads are scored from 1 to 5 and saved to HubSpot with a note, support requests go to their own Slack channel, and spam never reaches your CRM. How it works…