Quick Overview
This workflow receives Webflow form submissions via a webhook, normalizes and validates lead data, and syncs accepted leads to Salesforce by updating or creating a Lead record. It then scores the lead and sends high-quality submissions to a selected team inbox using Gmail.
How it works
- Receives a Webflow form submission through a POST webhook endpoint.
- Normalizes common field names (name, email, phone, company, message) and blocks invalid, honeypot, or disposable-email submissions by returning an HTTP error or quarantine response.
- Looks up an existing Lead in Salesforce by the submitted email address and returns a CRM error response if the lookup fails.
- Updates the matching Salesforce Lead or creates a new Lead when none exists, and returns a CRM error response if the write fails.
- Scores the synced lead based on email domain, company, phone, and message detail, and selects an SDR/CS/Sales notification inbox.
- Sends an email notification via Gmail only for high-quality leads and responds to the webhook with a JSON success payload including the Salesforce record ID and quality status.
Setup
- Add a Salesforce OAuth credential and apply it to the Salesforce nodes used for lookup, update, and create.
- Add a Gmail OAuth credential and set the sender/access in the Gmail email node.
- Copy the production webhook URL into your Webflow form integration (or custom form script) so submissions POST to this workflow.
- Update the scoring script constants to choose the notification team (sdr/cs/sales) and replace the example inbox addresses with real recipients.
- Ensure your Webflow form submits an email field (and optionally name, phone, company, and message) so the workflow can normalize and score the lead correctly.