Library / Documents, PDF & OCR
Documents, PDF & OCR
Triage website contact form leads with webhooks and Google Gemini
When an API call/webhook arrives, it reads and extracts data from documents with Google Gemini.
What it does
## AI lead triage for website contact forms (Gemini) ### How it works This workflow receives website contact form submissions through a webhook, validates them and applies rate limiting before calling AI. Valid requests are sent to Google Gemini, which rates the lead as urgent, high, normal or planned and adds a short summary and a suggested next step. The result is returned to the website as JSON. Invalid, spam (honeypot) or rate-limited requests bypass Gemini and get a direct response instead. ### Setup steps - Create a Gemini API key at aistudio.google.com and add it as a Google Gemini (PaLM) API credential in Post to Gemini API. - In Validate Submission and Rate Limit, edit BUSINESS, SERVICES, MAX_PER_HOUR and MAX_PER_DAY at the top of the code. - In When Form Submitted, set Allowed Origins to your website domain. - Activate the workflow and POST your form to the production webhook URL, e.g.: {"service":"repair","answers":{"Since when":"today"},"message":"Heating is off","contactPreference":"callback","website":""} ### Customization Adjust the priority rules in the Gemini prompt to match your industry, or add an email, Slack or Google Sheets node after Parse Gemini Response to notify your team or log every lead.
The steps
- When Form Submitted
- Validate Submission and Rate Limit
- If Request Valid
- Post to Gemini API
- Parse Gemini Response
- Respond to Form Submission
Similar automations
CRM & Sales PipelineCreate and deduplicate HubSpot contacts from website form webhooks12 stepsLead Generation & EnrichmentRoute contact form leads into HighLevel CRM and notify sales on Slack19 stepsLead Generation & EnrichmentQualify inbound form leads with Gaffa website checks and HubSpot12 stepsLead Generation & EnrichmentSave website form leads to Google Sheets and send Gmail auto-replies7 steps