Quick Overview
This workflow captures inbound website leads via an n8n form, uses OpenAI to infer firmographics and score ICP fit, upserts the lead into HubSpot, and for high-priority leads posts an instant alert to Slack and creates a Gmail follow-up draft.
How it works
- Receives a new submission from an n8n Form with the lead’s name, work email, website, and message.
- Sends the lead details to OpenAI to infer industry and company size, score ICP fit (0–100), assign a Hot/Warm/Cold priority, and draft a suggested reply as structured JSON.
- Upserts the lead as a contact in HubSpot and stores the AI summary, score, and priority in the contact record.
- Checks whether the lead is marked as Hot based on the AI priority.
- For Hot leads, posts a detailed alert message to a selected Slack channel.
- For Hot leads, creates a Gmail draft addressed to the lead using the AI-generated suggested reply.
Setup
- Connect credentials for OpenAI, HubSpot, Slack, and Gmail.
- Edit the Ideal Customer Profile text in the OpenAI prompt to match your target industries, regions, and qualification rules.
- Select the Slack channel to post hot-lead alerts to in the Slack message step.
- Customize the form fields and copy the form URL from the n8n Form trigger to embed or link it from your website.