AGENT?GET /zapier/awesome-zaps/capture-leads-from-every-source-in-hubspot/SKILL.mdand deploy the files next to it
All zaps

Unified lead capture

Leads from your ad, form and lead-gen sources are cleaned up and added to HubSpot as one consistent contact, so no one checks each platform by hand.

Install it

For your agent
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/capture-leads-from-every-source-in-hubspot/

Paste into Claude, ChatGPT, Cursor or any agent.

Apps it uses
Webhooks by ZapierAI by ZapierHubSpot
Author
Zapier
Source
zapier/awesome-zaps, folder zaps/capture-leads-from-every-source-in-hubspot

Set it up with the CLI

  1. Add it. Copies the folder into zaps/capture-leads-from-every-source-in-hubspot/. Outside a project, it makes one first.
    npx zap-pack add awesome-zaps/capture-leads-from-every-source-in-hubspot
  2. Fill in the values in config.ts, and in any other file the list marks. Replace each one as its comment and SKILL.md say.
  3. Deploy it. Asks for any value still left, signs you in to Zapier if you aren't, then publishes it to your account.
    npx zap-pack deploy capture-leads-from-every-source-in-hubspot
  4. Check it. Its recent runs, with status and errors.
    npx zap-pack logs capture-leads-from-every-source-in-hubspot

zaps/capture-leads-from-every-source-in-hubspot/

Agents: add --yes to any command so it never prompts. When it needs an answer only the user can give, it stops and names the flag that supplies it.

What it does

  1. Trigger: a lead arrives at a Webhooks by Zapier catch hook (webhook, hook_v2). Each lead source posts its lead to that hook as JSON, with the keys listed under Notes.
  2. The Zap stops with no write if the lead has no email address.
  3. It splits the name into first and last name, using the given names when the source sends them and the full name when it doesn't.
  4. It maps the company size to HubSpot's size ranges (1-5, 5-25, 25-50, 50-100, 100-500, 500-1000, 1000+).
  5. AI by Zapier classifies the job role and the seniority into HubSpot's values. Blank input is left blank.
  6. HubSpot creates the contact, or updates it when the email already exists.

Ask the user

Nothing to ask. The Zap has no settings to set. Connect the HubSpot account in the Build it section below.

Build it

Trigger: webhook / hook_v2 (Webhooks by Zapier, Catch Hook). It has no connection.

Connections:

  • hubspot: the HubSpot portal that receives the leads. Pick the account that owns the contacts; it must be able to create and update them.

If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/capture-leads-from-every-source-in-hubspot, replace each REPLACE_… value as this file says, then run npx zap-pack deploy capture-leads-from-every-source-in-hubspot, which signs the user in to Zapier when it gets there. Otherwise build with Zapier MCP, as the steps below say. No Zapier MCP tools? Read https://docs.zapier.com/mcp/get-started/quickstart.md and follow the page for the app you are running in to get the user connected, then continue with this build.

  1. Accounts: bind hubspot to the user's HubSpot connection. Webhooks by Zapier and AI by Zapier need no connection of this kind; AI by Zapier uses Zapier-managed credentials.
  2. Source: publish workflow.ts and lib/normalize.ts. triggers/hook.ts and connections/ are settings, not code: set the workflow's trigger and connection bindings from them. The trigger file names the app by its slug; for the trigger's selected_api, call search_triggers with webhook, find the row whose key is hook_v2, and use <app_key>@<app_version> from it.
  3. Build guide: load Zapier's build guide with get_zapier_skill("zapier:build-workflows") and follow it to create, test and publish the workflow.
  4. Fields: inspect each action's fields with the user's connection before the first test run, and fix any key in workflow.ts that doesn't match. The HubSpot upsert_contact action is the one most likely to need it.

Test it

Run this sample as a draft test (run_workflow_draft in Zapier MCP), using an address on the reserved example.com domain:

{
  "email": "jordan.lee@example.com",
  "full_name": "Jordan Lee",
  "job_title": "Operations Manager",
  "employment_role": "Operations manager",
  "employment_seniority": "Manager",
  "company_name": "Example Co",
  "number_of_employees": "100 to 250",
  "phone_number": "+15555550100",
  "linkedin_url": "https://www.linkedin.com/in/example",
  "message": "Interested in a demo",
  "source": "sample"
}

Confirm the HubSpot contact for jordan.lee@example.com has the first name Jordan, last name Lee, company size 50-100, and a role and seniority value from the lists in workflow.ts.

Notes

  • Once the Zap is published and its trigger is active, give the user the webhook URL. Each lead source posts to it; anyone with that URL can add contacts to HubSpot, so never commit it.
  • Keys the catch hook accepts: email, first_name, last_name, full_name, job_title, employment_role, employment_seniority, company_name, number_of_employees, phone_number, linkedin_url, message, source. Each value is text. Map a source's own field names to these in the source's Zap before it posts.
  • A lead source that Zapier has no catch-hook path for needs its own Zap that reads the source and posts to this hook.
  • Role and seniority come from a model, so check the first few contacts in HubSpot. Blank input stays blank.
  • The company size is the lower end of the range the source sends, so 250 to 500 becomes 100-500.
  • Never commit a real HubSpot portal or contact.