The build
To send a form submission to Slack and your CRM, point the form tool's webhook at a receiver in Zapier, Make, n8n or a small function. The receiver checks and dedupes the submission, creates or updates the contact and company, assigns an owner, then posts a Slack alert to that owner with the key fields and a link to the record.
That sounds like a five-minute Zap. The happy path is. The real work is everything around it: spam, Gmail addresses, double clicks, owners on vacation, leads at 11 p.m., and Slack's rate limit when a webinar ends and 80 people fill the form at once.
This recipe covers the full build. You'll get the form payload, the field map, the Slack message, and three builds: Zapier, n8n or Make, and a code version. Then we cover the edge cases, testing, and how to measure speed to lead. If webhooks are new to you, start with the complete guide to webhooks for GTM teams.
Key takeaways
- Upsert, don't create. Search by email first, then match the company by domain, so one person never becomes two records.
- Plan the fallbacks. Every flow needs a rule for free email, no owner found, and after-hours leads before it goes live.
- Give reps context. The Slack alert should hold everything a rep needs to act in one glance, plus a link to the record.
- Respect the limits. Slack allows about one message per second per channel, so queue alerts during spikes.
- Measure the clock. Store when the form was sent and when the first touch happened, then report the median every week.
What does the form to CRM to Slack flow do?
Here's the whole flow on one page. Each box is a step you can test on its own.
Demo form ──webhook──▶ Receiver
│ 1. verify signature, return 200 fast
│ 2. reject spam (honeypot, timing)
│ 3. dedupe by event ID
▼
Normalize ──▶ lowercase email, pull domain, flag free email
▼
Enrich (optional) ──▶ company size, industry, country
▼
CRM ──▶ find contact by email ──▶ upsert
└─▶ find company by domain ──▶ associate or create
▼
Assign owner ──▶ account owner, else routing rule, else fallback
▼
Slack ──▶ alert owner with fields and record link
▼
Log ──▶ event row with timings and status
The order matters. You verify and dedupe before anything touches the CRM. You match the company before you assign an owner, because the account owner usually wins. And you log at the end so you can measure how long each lead took.
What should the demo form send?
Your form tool decides the payload shape. Most tools send the answers plus some metadata. Before you build anything, add three things to the form that the flow will need.
- Hidden fields for source. Capture
utm_source,utm_medium,utm_campaignand the page URL. Without them, the alert can't tell a rep where the lead came from. - A honeypot field. This is a hidden field real people never see. Bots fill in every field, so any value in it means spam.
- Stable field keys. In Typeform that's the field
ref. Set clear refs likework_emailandcompany. Labels change when marketing edits a question. Refs don't.
Here's a trimmed example in the shape Typeform sends. The data is fake.
{
"event_id": "01JDX4K9Q2EXAMPLE",
"event_type": "form_response",
"form_response": {
"form_id": "aBc123",
"landed_at": "2026-11-28T15:03:20Z",
"submitted_at": "2026-11-28T15:04:12Z",
"hidden": {
"utm_source": "linkedin",
"utm_campaign": "q4-demo",
"page_url": "https://www.example.com/pricing",
"hp": ""
},
"answers": [
{ "type": "text", "text": "Jane", "field": { "ref": "first_name" } },
{ "type": "text", "text": "Doe", "field": { "ref": "last_name" } },
{ "type": "email", "email": "Jane.Doe@Example.com", "field": { "ref": "work_email" } },
{ "type": "text", "text": "Example Co", "field": { "ref": "company" } },
{ "type": "choice", "choice": { "label": "51-200" }, "field": { "ref": "company_size" } },
{ "type": "long_text", "text": "Need help routing inbound leads to the right AE.", "field": { "ref": "notes" } }
]
}
}
Two fields here do quiet work. landed_at and submitted_at tell you how long the person spent on the form. A bot often submits in under two seconds. And event_id is your dedupe key.
How do you map form fields to the CRM?
Write the field mapping down before you build. It's the spec for every version of this flow, and it's what you'll check when a field shows up blank.
| Form field (ref) | HubSpot property | Salesforce field (Lead) | Transform | Required |
|---|---|---|---|---|
first_name |
firstname |
FirstName |
Trim, title case | No |
last_name |
lastname |
LastName |
Trim; Salesforce needs a value, use "Unknown" if blank | Yes in Salesforce |
work_email |
email |
Email |
Trim, lowercase | Yes |
| (derived) | email_domain (custom) |
Email_Domain__c (custom) |
Text after "@" | Yes |
company |
company |
Company |
Trim; Salesforce needs a value | Yes in Salesforce |
company_size |
company_size (custom dropdown) |
Company_Size__c |
Map "51-200" to "51_200" | No |
notes |
demo_notes (custom) |
Description |
Trim, cap at 1,000 characters | No |
hidden.utm_source |
utm_source (custom) |
UTM_Source__c |
As is | No |
hidden.page_url |
conversion_page (custom) |
Conversion_Page__c |
Strip query string | No |
submitted_at |
demo_requested_at (custom datetime) |
Demo_Requested_At__c |
ISO 8601 to CRM format | Yes |
| (constant) | lead_source |
LeadSource |
"Demo request" | Yes |
Three rules keep this map honest. Never write a blank over a value that's already there. Lowercase emails before every search and write. And store demo_requested_at from the form, not from when the flow ran. That timestamp is the start of your speed-to-lead clock.
How do you validate and dedupe the submission?
Bad data enters at the form. Catch it before it reaches the CRM and wastes a rep's time.
Stop spam at the door
Run three cheap checks, in this order.
- Honeypot. If the hidden
hpfield has any value, drop the submission. Return 200 so the bot doesn't retry. - Time on form. If
submitted_atminuslanded_atis under three seconds, flag it. Don't drop it yet. Some people use autofill. - Junk patterns. Flag emails at your own domain from people who aren't staff, obvious test addresses, and company names like "test" or "asdf."
Flagged leads still go in the CRM with a spam_suspected flag, but they skip the Slack alert. Review them once a day. That keeps reps' trust in the channel high. One bot burst that floods Slack can teach reps to mute it for good.
Handle free email domains
A lead at gmail.com isn't from a company called Gmail. If your flow matches companies by domain, it will happily attach every Gmail lead to one giant fake account.
Keep a list of free email domains and check each lead against it. When it matches, skip domain matching, set free_email = true, and keep the company name the person typed. HubSpot's own auto-association setting does something similar. For a freemail contact it checks the Website URL instead, and if that's empty, no company gets linked.
Dedupe twice
Deduplication happens in two places.
First, dedupe the event. Store each event_id and skip any you've already handled. This catches vendor retries.
Second, dedupe the person. Use an upsert keyed on email so a second submission updates the first record. This catches people who fill the form twice, which is common when the confirmation page is slow.
Here's the trap. HubSpot's search docs say new or updated records can take a few moments to show up in search. So if someone double-clicks submit, two runs can both search, both find nothing, and both create a contact. An upsert by email avoids that race. HubSpot's contacts API guide confirms the batch upsert endpoint takes email as the ID property.
Should you enrich before routing?
Only if routing needs the data. If you route by company size or region and the form doesn't ask, you need enrichment first. If you route by account owner or round robin, enrich after the alert so the rep isn't waiting.
Set a time budget. If enrichment doesn't return in a few seconds, route with what you have and backfill later. A lead that waits a minute for a perfect company size is worse off than one that reaches a rep now with a blank field.
Use your enrichment tool or a provider like People Data Labs, Apollo or Clearbit. If you run several, the enrichment waterfall guide covers the order and the cost per match.
How do you create or update the contact and company?
This is the heart of the flow. Search by email first. Then match the company by domain. Then write.
HubSpot version
- Upsert the contact by email. Call the batch upsert endpoint with
idPropertyset toemail. One call creates or updates. - Find the company by domain. Search companies where
domainequals the email domain. Skip this for free email. - Associate or create. If a company exists, link the contact. If not, create the company with the domain and the typed name, then link.
- Set lifecycle and lead status. Move the contact to the stage your team uses for demo requests. My take on stage rules is in lifecycle stages from MQL to SQL.
Watch the limits as you scale. As of November 2026, HubSpot's search endpoints allow five requests per second per account, per its search docs. Its usage guidelines list 190 requests per 10 seconds for a private app on Professional. A normal day of demo requests won't get close. A bulk replay after an outage can.
If you turn on HubSpot's auto-association, know one quirk. When several companies share a domain, HubSpot links the contact to one of them and you can't choose which. Clean up duplicate companies before you rely on it in HubSpot.
Salesforce version
Salesforce adds a twist: the person might already be a Contact on an Account, or a Lead, or nothing yet. Check in that order.
-- 1. Is this person already a Contact? If so, update them, don't make a Lead.
SELECT Id, AccountId, OwnerId FROM Contact WHERE Email = 'jane.doe@example.com' LIMIT 1
-- 2. Is there an open Lead with this email?
SELECT Id, OwnerId, Status FROM Lead WHERE Email = 'jane.doe@example.com' AND IsConverted = false LIMIT 1
-- 3. Does an Account own this domain? Match on a clean custom field, not the messy Website field.
SELECT Id, OwnerId, Name FROM Account WHERE Domain__c = 'example.com' LIMIT 1
The third query is lead-to-account matching. Salesforce's Website field holds values like "https://www.example.com/" and "example.com/en". Add a Domain__c field with a clean domain and fill it with a flow. Then the match is a simple equals. Teams with complex hierarchies often buy LeanData for this step.
When you create a Lead through the REST API, mind the Sforce-Auto-Assign header. Salesforce's assignment rule header docs say it defaults to TRUE, so your active assignment rules run even if you don't send it. Send FALSE if your flow assigns the owner itself. Otherwise the two can fight.
How do you assign an owner?
Owner logic should follow a short, written order. The first rule that returns an owner wins.
| Order | Rule | Example |
|---|---|---|
| 1 | Existing contact owner | Jane is already a contact owned by Priya, so Priya gets it |
| 2 | Matched account owner | Example Co is owned by Marcus, so Marcus gets it |
| 3 | Territory or segment rule | 51 to 200 employees in North America goes to the mid-market pod |
| 4 | Round robin within the pod | Next available rep in the pod |
| 5 | Fallback owner | A named manager or an "inbound queue" user |
Rules 1 and 2 respect record ownership. Nothing annoys an AE more than a teammate calling their open account. Rule 4 is a round-robin assignment, and it should skip reps who are out of office. My full take on these rules is in the lead routing rules guide.
Rule 5 is the one teams forget. If every other rule fails, the lead must still land with a real person. A lead assigned to a deactivated user or to nobody is a lead nobody calls.
What should the Slack alert include?
The alert has one job: let the owner act without opening five tabs. Give them who, what company, why now, where from, and a link.
Pick the delivery method first. If all you need is a basic alert, HubSpot's Slack workflow actions can notify the record owner on Professional or Enterprise. For everything in this recipe, send it yourself. A Slack incoming webhook posts to one fixed channel. Slack's incoming webhook docs say you can't override that channel, the username or the icon. To DM the owner, you need a Slack app with a bot token and the chat.postMessage method. You also need the owner's Slack user ID, which you can look up by their work email.
My default is a post to #inbound-leads with an @mention of the owner. Managers see volume, and the owner still gets pinged. Here's the Block Kit message for that.
{
"channel": "C0INBOUND1",
"text": "New demo request: Jane Doe, Example Co (owner: Priya)",
"blocks": [
{
"type": "header",
"text": { "type": "plain_text", "text": "New demo request: Example Co" }
},
{
"type": "section",
"text": { "type": "mrkdwn", "text": "<@U0PRIYA01> this one is yours. Requested 1 min ago." },
"fields": [
{ "type": "mrkdwn", "text": "*Name*\nJane Doe" },
{ "type": "mrkdwn", "text": "*Email*\njane.doe@example.com" },
{ "type": "mrkdwn", "text": "*Company*\nExample Co (51-200)" },
{ "type": "mrkdwn", "text": "*Source*\nlinkedin / q4-demo" },
{ "type": "mrkdwn", "text": "*Page*\n/pricing" },
{ "type": "mrkdwn", "text": "*Account*\nExisting, owner Priya" }
]
},
{
"type": "section",
"text": { "type": "mrkdwn", "text": "*Notes*\n>Need help routing inbound leads to the right AE." }
},
{
"type": "actions",
"elements": [
{ "type": "button", "text": { "type": "plain_text", "text": "Open in CRM" }, "url": "https://app.hubspot.com/contacts/9999999/record/0-1/51", "style": "primary" }
]
}
]
}
Keep the top-level text field. Slack shows it in notifications and to screen readers. Slack's section block reference caps a section at 10 fields, each up to 2,000 characters, so six short fields leave plenty of room. Truncate long notes yourself rather than let the post fail.
How do you build it in Zapier?
Zapier is the fastest build. It suits a team with no engineer and a few hundred demo requests a month. Here are the steps.
- Trigger: Webhooks by Zapier, Catch Hook. Copy the URL into your form tool's webhook settings. Send a test submission so Zapier learns the fields. Use Catch Raw Hook instead if you plan to verify the signature in a code step.
- Filter. Continue only if the honeypot field is empty and the email exists.
- Formatter, Text. Lowercase the email. Split it on "@" and keep the second part as the domain.
- Code by Zapier or a Lookup Table. Check the domain against your free email list and output
free_emailas true or false. - HubSpot: Create or Update Contact. Map fields from your field map table. This step upserts by email.
- HubSpot: Find Company. Search by domain, only when
free_emailis false. Turn on "create if not found" only if your team wants auto-created companies. - HubSpot: associate the contact and company.
- Owner logic. Use the company owner if one exists. Otherwise use a Paths step or Zapier's lead router for round robin, with your fallback owner as the last path.
- Slack: Find User by Email, using the owner's email.
- Slack: Send Channel Message to #inbound-leads with the Block Kit JSON and the @mention.
Two Zapier limits matter here. Zapier's Webhooks by Zapier help page lists the trigger as unavailable on the Free plan, as of November 2026. And Zapier always answers the sender with a 200, even if a later step fails. Turn on Zapier's error notifications so a failed HubSpot step doesn't vanish.
How do you build it in n8n or Make?
n8n and Make give you more control for about the same effort. Here's the n8n version. Make's version uses the same steps with its own module names.
- Webhook node. Method POST. Turn on the Raw Body option if you'll verify the signature. Set Respond to "Using Respond to Webhook node."
- Code node: verify. Recompute the HMAC from the raw body and compare it to the signature header. Stop on mismatch.
- Respond to Webhook node. Return 200 right away. Everything after this runs without making the sender wait.
- Code node: normalize. Lowercase the email, pull the domain, check the free email list, check the honeypot and time on form.
- Postgres node or another database node: dedupe. Insert the event ID. If it already exists, stop.
- HTTP Request node: HubSpot upsert by email, then company search by domain. Or use the HubSpot node if it covers your fields.
- Switch node: owner logic. Contact owner, then account owner, then round robin, then fallback.
- Slack node: post message with the Block Kit JSON.
- Error workflow. Point the workflow's error setting at a second workflow that posts failures to a private #ops-alerts channel.
The classic n8n bug: you paste the test URL into Typeform, it works while you watch, then nothing runs in production. Per the n8n Webhook node docs, the test URL only listens while you click "Listen for test event." Swap in the production URL and publish the workflow.
In Make, use a Custom webhook trigger, then a Webhook response module early in the scenario. Make's webhooks help page notes that a mid-scenario response can stop later errors from deactivating the scenario. That's fine here, as long as you add an error handler route that alerts you.
What does the code version look like?
Use code when you need exact signature checks, strict dedupe, or volume beyond what you want to pay an iPaaS for. Here's a trimmed handler for any runtime that uses the standard Request and Response objects, like Vercel functions or Cloudflare Workers. It verifies a Typeform signature, dedupes, and queues the work.
// receiver.js: answer fast, do the work later. Trimmed for clarity.
import crypto from "node:crypto";
export default async function receiver(request) {
const raw = await request.text(); // raw body, before any JSON parsing
const given = request.headers.get("typeform-signature") || "";
const expected = "sha256=" + crypto
.createHmac("sha256", process.env.TYPEFORM_SECRET)
.update(raw)
.digest("base64");
const a = Buffer.from(given), b = Buffer.from(expected);
if (a.length !== b.length || !crypto.timingSafeEqual(a, b)) {
return new Response("bad signature", { status: 401 });
}
const event = JSON.parse(raw);
const isNew = await db.insertIfNew("webhook_events", { source: "typeform", event_id: event.event_id, payload: event });
if (!isNew) return new Response("duplicate", { status: 200 });
await queue.send({ type: "demo_request", event_id: event.event_id });
return new Response("ok", { status: 200 });
}
// worker.js: runs from the queue, retries on failure. Trimmed for clarity.
const HS = "https://api.hubapi.com";
const hs = (path, body) => fetch(HS + path, {
method: "POST",
headers: { Authorization: `Bearer ${process.env.HUBSPOT_TOKEN}`, "Content-Type": "application/json" },
body: JSON.stringify(body)
}).then((r) => { if (!r.ok) throw new Error(`HubSpot ${r.status}`); return r.json(); });
export async function processDemoRequest(event) {
const lead = normalize(event); // email, domain, free_email, spam flags, fields
if (lead.spam) return markDone(event, "spam_suspected");
// 1. Upsert the contact by email.
const up = await hs("/crm/v3/objects/contacts/batch/upsert", {
inputs: [{ idProperty: "email", id: lead.email, properties: lead.contactProps }]
});
const contactId = up.results[0].id;
// 2. Match the company by domain, unless it's a free email.
let company = null;
if (!lead.free_email) {
const found = await hs("/crm/v3/objects/companies/search", {
filterGroups: [{ filters: [{ propertyName: "domain", operator: "EQ", value: lead.domain }] }],
properties: ["name", "domain", "hubspot_owner_id"], limit: 1
});
company = found.results[0] || null;
}
// 3. Owner: contact owner, then account owner, then round robin, then fallback.
const ownerId = up.results[0].properties.hubspot_owner_id
|| company?.properties.hubspot_owner_id
|| await roundRobin(lead.segment)
|| process.env.FALLBACK_OWNER_ID;
await setOwnerAndAssociate(contactId, company?.id, ownerId);
// 4. Alert the owner in Slack, through a queue that sends at most one message per second.
await slackQueue.send(buildBlocks(lead, contactId, ownerId));
await markDone(event, "routed", { contactId, ownerId });
}
The helpers (normalize, roundRobin, setOwnerAndAssociate, buildBlocks) are short and specific to your CRM. The structure is what matters: a receiver that never does slow work, and a worker that can fail and retry without making duplicates.
How do you handle the edge cases?
The happy path takes an afternoon. These cases take the rest of the week. Decide each rule before launch, write it in the flow's doc, and test it.
Owner not found
The owner ID points to a deactivated user, or no rule matches. Send the lead to the fallback owner and post in #inbound-leads with "No owner found, @manager please assign." Then fix the rule that failed. Track how often this happens. More than a few a month means your routing table has a hole.
After hours and weekends
A lead at 11 p.m. on a Friday shouldn't sit until Monday with no reply. Pick one of these and write it down:
- Send an automatic email right away with a booking link to the owner's calendar.
- Route to a rep in a later time zone if you have one.
- Post to the channel with an "after hours" tag, and stop the SLA clock until business hours start.
Use the lead's time zone and the owner's working hours, not the server's clock. Your flow's server probably runs in UTC.
Slack rate limits
Slack's rate limit docs say apps may post no more than one message per second per channel, with short bursts allowed. Incoming webhooks have the same one-per-second limit. Above that, Slack returns a 429 with a Retry-After header in seconds.
That matters after a webinar, when 80 people fill the form in two minutes. Send Slack messages through a small queue that posts one per second and honors Retry-After. Zapier users hit this too, and Zapier has a help article on Slack throttling for the exact error.
Existing customers
When the matched company is already a customer, the demo request is probably a support issue or an expansion lead. Route it to the account manager, not a new-business AE, and tag the alert "Existing customer."
Partial or messy data
People type "N/A" in the company field or paste a phone number into the email box. Validate the email format before any CRM write. If it fails, log it and alert ops instead of a rep.
How do you test the flow before launch?
Test every branch, not just the happy path. Here's how I do it.
- Capture a real payload. Point the form at a request bin, such as webhook.site, and submit once. Save the JSON. Build your mapping from this, not from the docs.
- Run it locally. Use a tunnel like ngrok to forward webhooks to a handler on your laptop. ngrok's web inspection interface at localhost:4040 shows each request and lets you replay it with one click.
- Work through a test matrix. Submit one case per row below and check the CRM record and the Slack post by hand.
| Test case | Expected result |
|---|---|
| New person, new company domain | New contact, new company, round-robin owner, alert |
| New person at an existing account | New contact linked to account, account owner, alert |
| Existing contact submits again | Same record updated, no duplicate, alert says "returning" |
| Gmail address | No company match, free_email true, routed by fallback rule |
| Honeypot filled | Logged as spam, no alert |
| Same event sent twice | Second one skipped as duplicate |
| Owner deactivated | Fallback owner, "no owner found" alert |
| Submission at 11 p.m. Saturday | After-hours rule fires |
| Existing customer | Routed to account manager, tagged |
| 20 submissions in 10 seconds | All land in CRM, Slack posts spaced out, no 429 failures |
Use test emails on a domain you own, and clean up the test records after. Leaving "Jane Test" in the CRM wrecks next month's reports.
How do you measure speed to lead?
You can't improve what you don't time. Store two timestamps on every demo request:


demo_requested_at: when the form was sent, from the payload.first_response_at: when the first real touch happened, like a logged call, a sent email or a booked meeting.
Speed to lead is the gap between them. Report it weekly as the median and the slowest 10 percent, split by owner and by business hours versus after hours. The average hides the leads that waited two days.
Also log when each step of the flow ran. If the flow takes 4 minutes to post the alert, that's 4 minutes no rep can win back. A well-built flow should post within a minute of the submission.
Is speed worth this much effort? The best-known research is "The Short Life of Online Sales Leads" by Oldroyd, McElheran and Elkington in Harvard Business Review. Its summary says most companies are not responding nearly fast enough. I'd rather you measure your own numbers than lean on any one study. Here's how to size the prize for your team.
Run the same math with your real rates in the pipeline target calculator. Then set an SLA your team can hit every day, and hold the line on it.
What are the common mistakes?
These are the most common failures in form to CRM to Slack flows.
- Search, then create. It makes duplicates when two runs race. Use an upsert by email.
- Matching Gmail to a company. One fake "Gmail" account ends up with hundreds of contacts. Check free email first.
- No fallback owner. Leads land on deactivated users and nobody calls them.
- Alerting on spam. One bot burst and reps mute the channel. Filter first, alert second.
- Thin alerts. "New lead: jane@example.com" makes reps open the CRM to learn anything. Put the context in the message.
- Test URL in production. Common in n8n. Switch to the production URL before launch.
- Timing from the wrong clock. Speed to lead measured from when the flow ran, not when the form was sent, hides slow flows.
- No volume alert. The form tool stops sending after a site change and nobody notices for a week. Alert when submissions drop below normal.
What to do this week
Write your field map and your owner order on one page. Add the honeypot and source hidden fields to your demo form. Then point the form at a request bin and save one real payload.
Build the flow in the tool your team can maintain: Zapier for speed, n8n or Make for control, code for strict needs. Work through the test matrix before launch, and add the two timestamps so you can report speed to lead from week one.
If you want help building or reviewing the flow, that's the kind of work we do in GTM engineering.