CRM

Pre-Create Duplicate Block via Webhook with Survivorship Enrichment

Receives new-contact payloads on a webhook before they hit the CRM, checks HubSpot for an existing match.

CategoryCRM
Enginesim
Difficultyintermediate
Triggerwebhook
Steps6
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerWebhook receives inbound contact payloadHTTP webhook
  • ActionSearch HubSpot for an existing matchHubSpotHubSpot
  • LogicBranch: enrich existing vs create new
  • ActionApply survivorship enrichment to HubSpot recordHubSpotHubSpot
  • ActionCreate new HubSpot contact when no matchHubSpotHubSpot
  • OutputRecord intake decision in PostgresPostgreSQLPostgres

What it does

This workflow stops duplicates at the front door. Inbound contact data (from a form handler, lead vendor, or integration) is posted to a webhook first. The flow checks HubSpot for an existing match; if one exists, it enriches that record using survivorship rules (only filling or upgrading fields where the new source outranks the stored one) instead of creating a duplicate. If no match exists, it creates a clean new contact.

When to use it

Use it when you control the intake pipeline and want to prevent duplicates rather than clean them up later. Best for high-volume lead capture where every new submission risks re-creating an existing contact.

How it works

  1. 1A webhook receives the incoming contact payload.
  2. 2The flow searches HubSpot for an existing contact by email and phone.
  3. 3A logic branch decides enrich-existing versus create-new based on whether a match was found.
  4. 4On a match, it applies survivorship rules and updates only the fields where the inbound source wins, in HubSpot.
  5. 5On no match, it creates a new HubSpot contact.
  6. 6The decision (matched/enriched or created, with winning fields and sources) is recorded in Postgres.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect HTTP webhookTrigger any URL on agent actions.
  2. 2
    Connect HubSpotCRM, deals, marketing, support.
  3. 3
    Connect PostgresAny Postgres URL — query, write, migrate.
  4. 4
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  5. 5
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  6. 6
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.