Wired Pipeline

case study · HubSpot API integration

Website form to HubSpot, with no duplicates and no junk

HubSpot APIPythonWebhooksData quality

The problem

The standard form plugins dump every submission into the CRM as-is. Double clicks make two contacts. Colleagues from the same company end up unlinked. Quote requests sit as plain contacts until someone notices, and bots fill the list with garbage.

What we built

  • A small service the website form posts to, which writes to HubSpot through the API
  • Finds the contact by email and only fills empty fields, so it never overwrites what sales typed
  • Finds or creates the company from the email domain and links the contact; personal Gmail and similar addresses are skipped
  • Opens a deal in the sales pipeline only when the lead asks for a quote, with the budget as the amount
  • Attaches the message as a note, rejects bots with a hidden trap field, and keeps a ledger so a resubmit is never filed twice
Test run: filed, duplicate skipped, matched by domain, spam rejected
Five test submissions: filed, double submit skipped, colleague matched to the same company, bot and bad input rejected.
HubSpot company record with two contacts and one deal
The result in HubSpot: one company, both contacts linked, one deal in New Inquiry.
✓ 5 of 5 test cases handled correctly against a live HubSpot portal
✓ 0 duplicates, 0 bot records
# test leads use a made-up, unregistered domain.

Leads landing in your CRM messy?