Triage website contact form leads with webhooks and Google Gemini
Ready for 3.0What this workflow does
This workflow has 6 nodes and runs when an HTTP POST request hits its webhook URL. It uses only n8n's built-in nodes. It also calls generativelanguage.googleapis.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Validate Submission and Rate Limit (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Post to Gemini API (HTTP Request): calls generativelanguage.googleapis.com (POST)
- Respond to Form Submission (Respond to Webhook): sends the response back to the webhook caller
- Parse Gemini Response (Code): runs custom JavaScript code
HTTP calls to: generativelanguage.googleapis.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 (5)
- Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
Quick overview Rate every website inquiry the moment it arrives. Google Gemini classifies each contact form submission as urgent, high, normal or planned, adds a short summary and a next step, and returns the result to your website instantly. How it works 1.…