Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

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

  1. When Form Submitted
  2. Validate Submission and Rate Limit
  3. If Request Valid
  4. Post to Gemini API
  5. Parse Gemini Response
  6. Respond to Form Submission

Similar automations