Aisha AliyuGTM Systems Engineer ← All case studies
RevOps

Partner Lead Conflict Check

A HubSpot workflow that checks every partner lead the moment it comes in, decides who owns it, and routes it automatically.

Layer: RevOpsCRM: HubSpot
View the code on GitHub
The problem

Partners and AEs chasing the same account.

Companies that sell through partners get leads from two places: their own AEs and their partners. When a partner submits a lead, nobody checks whether an AE is already talking to that company. The same issues come up again and again:

  • Two people chase the same account. The partner and the AE both reach out, and the prospect gets mixed messages.
  • Arguments over credit. When the deal closes, nobody agrees on who sourced it.
  • Partners lose trust. Leads get rejected late, or silently ignored, with no clear reason.
  • HubSpot's duplicate check is too narrow. It only matches exact email or exact domain, so "Acme Inc" and "ACME Incorporated" slip through as two companies.
The solution

Every partner lead checked, decided and routed on arrival.

The industry name for this is deal registration. For example:

A partner submits a lead from Acme Inc.

Acme already has an open deal owned by an AE.

Result: Conflict Found. The AE keeps the account, no duplicate deal is created, and Slack explains why.

ProblemWhat the workflow does
Two people chase the same accountChecks for an open deal or recent activity before anyone acts on the lead
Arguments over creditRecords the submitting partner, the decision and the reason on every contact
Partners lose trustEvery decision comes with a plain-English reason, and dormant accounts go to the partner instead of being blocked
Duplicate check is too narrowMatches on email domain and on a cleaned company name ("Acme Inc" = "ACME Incorporated")
The rules

Two clear decisions, and a person for anything in between.

DecisionWhen, and what happens
Conflict FoundThe company has an open deal, or meaningful activity in the last 90 days. The AE keeps the account, no deal is created, and Slack explains why.
No ConflictNo matching company, or the company is owned but inactive. The partner gets credit, a deal is created and an owner is assigned.
FallbackAnything unclear. A person is alerted in Slack to review it.

Meaningful activity means a completed call, a meeting, or an email reply from the prospect. Outgoing emails don't count, so a rep can't "own" an account just by having it in a sequence.

How it works

A HubSpot workflow with two custom code steps.

  1. A partner submits a lead. Each partner has their own form link, which fills in the submitting partner automatically.
  2. The workflow starts when a contact is created with Partner as the lead source.
  3. Step 1 checks for a conflict. It finds the matching company by email domain and cleaned company name, then checks for open deals and meaningful activity in the last 90 days.
  4. Step 2 saves the result on the contact: the decision, the matched company, the matched AE and a one-line reason.
  5. The branch routes the lead: assign an owner and create the deal, alert the AE and partner manager in Slack, or ask a person to review.
The Partner Conflict Workflow in HubSpot: trigger, two custom code steps, then a branch to No Conflict, Conflict Found or Fallback
The live workflow in HubSpot. No Conflict assigns an owner and creates the deal. Conflict Found and Fallback send Slack alerts.
Safeguards

Fair to AEs, fair to partners.

  • Active AE accounts are protected. Open deals and recent calls, meetings and replies always keep the account with the AE.
  • Dormant accounts aren't blocked forever. An owner with no deal and no recent activity doesn't block the partner.
  • Sequences don't count as activity. Only completed calls, meetings and prospect replies do.
  • Personal emails are handled. Gmail, Outlook, Yahoo and similar domains are skipped, and matching falls back to the company name.
  • It never guesses. If HubSpot fails or times out, the lead goes to a person for review.
  • Every decision is explained on the contact record, so anyone can see why.
The result

Every partner lead gets a clear owner the moment it arrives, with the reason on the record. No double outreach, no credit disputes.

Built with
HubSpot WorkflowsHubSpot custom code (Node.js)HubSpot CRM APIHubSpot FormsSlack

Want a system like this?

Pick one free pilot project. I build it inside your tools, and you see the results before we talk about anything else.