Quick Overview
This workflow receives form submissions via an n8n webhook, normalizes lead fields (name, email, phone, company, message), upserts the contact into HubSpot, and posts a new-lead notification to a Slack channel.
How it works
- Receives a POST request with lead data through an n8n webhook endpoint.
- Extracts common field variants from the payload, splits the full name into first/last name, cleans the phone number, and validates the email format.
- Upserts the contact in HubSpot using the email as the unique identifier and updates name, company, and phone properties.
- Sends a formatted new-lead message to Slack including the lead’s name, email, company, and message.
Setup
- Add a HubSpot credential (Private App token with Contacts read/write) and select it in the HubSpot upsert step.
- Add a Slack credential with permission to post messages and invite the Slack app/bot to your target channel.
- Set the Slack channel (default #leads) where notifications should be posted.
- Activate the workflow, copy the production webhook URL, and configure your form tool or website to POST submissions to that endpoint.