> ## Documentation Index
> Fetch the complete documentation index at: https://help.revenuehero.io/llms.txt
> Use this file to discover all available pages before exploring further.

# HubSpot matching rules

> Book prospects with the rep who already owns them in HubSpot, using contacts, companies or the deals attached to them.

Matching rules check HubSpot for an existing owner before any calendar is shown, whether the prospect comes from a form, a campaign link or a handoff in Relays. If a contact, company or deal already has an owner, the prospect books with that owner, and your distribution rules only handle people you don't know yet.

> [!NOTE]
>
> **BEFORE YOU BEGIN**
>
> 1. [Connect HubSpot to RevenueHero](https://help.revenuehero.io/crm/hubspot/overview.md).
> 2. To match on deals, turn on **Enable Deals** in your HubSpot integration settings.
>
> New to matching? Start with [What are Matching Rules?](https://help.revenuehero.io/what-are-matching-rules.md) for how matching fits into a router.

## How matching works in a router

In an inbound router, matching runs after qualification and before territory routing, on every submission.

1. The prospect submits your form and the submission is enriched.
2. Qualification checks whether the prospect fits. Prospects who don't are disqualified and sent to the page you chose.
3. Your matching rules run in the order you set. The first rule that finds a record wins.
4. If a rule matches, territory routing is skipped and the prospect sees the owner's calendar.
5. If no rule matches, your distribution rules decide, for example by region or segment.
6. HubSpot is updated with the prospect, the owner and the meeting.

![Inbound router with matching rules on, running after qualification and before distribution rules](https://mintcdn.com/revenuehero/g8gVxauDSv3VNlZM/images/hubspot_matching_01_router_flow.png?fit=max\&auto=format\&n=g8gVxauDSv3VNlZM\&q=85\&s=0fb64422846faa21c5591226c62d0e0d)

## The five HubSpot match types

Each matching rule looks for one kind of HubSpot record and books the prospect with that record's owner. The same five match types work in inbound routers, campaign routers and Relays.

| Match type | What RevenueHero compares | Books with | Use it when |
| - | - | - | - |
| **Contact** | Prospect's email to the contact email | Contact owner | Reps should keep the people they're already working |
| **Company** | Prospect's email domain to the company domain | Company owner | Every new person from an owned company should reach its AE |
| **Associated Company** | Prospect's email to a contact, then that contact's company | Company owner | People email from a domain that differs from the company's website |
| **Related Contact Deal** | Prospect's email to a contact, then that contact's deal | Deal owner | People on an active deal should reach the rep running it |
| **Related Company Deal** | Prospect's email domain to a company, then that company's deal | Deal owner | Anyone from a company with an active deal should reach the deal owner |

If a company has more than one open deal, RevenueHero books with the owner of the most recently created one.

> [!NOTE]
>
> The two deal match types work only after **Enable Deals** is turned on in your HubSpot settings.

## What each match type looks like in practice

These examples use a B2B team with SDRs, regional AEs and customer success managers. Pick a tab to see who each prospect books with.

> [tab] People
>
> > [card] A known contact comes back
> >
> > **Contact match**
> >
> > A marketing manager downloaded a guide last month and is a contact owned by your SDR. Today they request a demo.
> >
> > **Books with:** that SDR

> [tab] Companies
>
> > [card] New person, known company
> >
> > **Company match**
> >
> > Someone from a company your Enterprise AE owns fills in the demo form. They aren't in HubSpot yet, but their email domain matches the company.
> >
> > **Books with:** the Enterprise AE
>
> > [card] Different email domain, same company
> >
> > **Associated Company match**
> >
> > A prospect emails from their company's mail domain, which isn't the website domain on the HubSpot company. Their contact is associated with that company.
> >
> > **Books with:** the company owner

> [tab] Deals
>
> > [card] A buyer on a live deal returns
> >
> > **Related Contact Deal match**
> >
> > A champion on an open deal fills in the demo form again.
> >
> > **Books with:** the rep running that deal
>
> > [card] A colleague of an active deal
> >
> > **Related Company Deal match**
> >
> > The company has an open deal. Someone from another department, who isn't on the deal, asks for a demo.
> >
> > **Books with:** the deal owner

## Create a HubSpot matching rule

### Step 1: Open matching rules

1. In the left sidebar, click **Inbound → Matching Rules**.
2. Click **Create Matching Rule** in the top-right corner.
3. Pick the match type. This decides which HubSpot record RevenueHero looks for and whose owner the prospect books with.

![The five HubSpot match types in the Create Matching Rule window, with Company selected](https://mintcdn.com/revenuehero/g8gVxauDSv3VNlZM/images/hubspot_matching_02_match_types.png?fit=max\&auto=format\&n=g8gVxauDSv3VNlZM\&q=85\&s=e2abe030bc67e6726553a62bd754de1e)

### Step 2: Assign meetings

Choose what RevenueHero compares and who takes the meeting.

* **What to match.** Contact and company rules default to the prospect's email or email domain. You can also match on phone, or compare any form field with a HubSpot property. For example, a prospect's phone number matched to the company phone.
* **Owner property.** Read the record owner, or any other owner property you keep in HubSpot. For example, a custom SDR owner property on the contact, so the SDR takes the first meeting.
* **How meetings are assigned.** Show the owner's availability, or the shared availability of everyone who needs to attend. For example, the contact owner plus a sales engineer from a round-robin group, on the same meeting.
* **Always assign to a specific member.** Recognize the relationship but always book with a person or team you choose. For example, a dedicated rep for a strategic segment.
* **Update owner field in HubSpot.** Write the rep who took the meeting back to the contact owner property you choose. For example, the contact's owner becomes the SDR who booked it.

![Step 1 Assign Meetings for a Company rule: the prospect's email domain matched to the company domain, the company owner property, and the option to update the owner in HubSpot](https://mintcdn.com/revenuehero/g8gVxauDSv3VNlZM/images/hubspot_matching_03_assign_meetings.png?fit=max\&auto=format\&n=g8gVxauDSv3VNlZM\&q=85\&s=ad4545a84458eefc78acc0f7a8c7bcaa)

### Step 3: Add conditions

A found record only counts if the conditions you add on its HubSpot properties are also true. For example, match the contact owner only when that owner is on the AE team.

Add an owner condition when you only want records owned by RevenueHero users to match. With that condition on the rule, a record owned by someone who isn't a RevenueHero user doesn't match, and the next rule runs. This covers cases like a company still owned by a rep who has left.

![Step 2 Add Conditions: the contact email match plus two conditions, the contact owner is a RevenueHero user and is on the AE team](https://mintcdn.com/revenuehero/g8gVxauDSv3VNlZM/images/hubspot_matching_04_conditions.png?fit=max\&auto=format\&n=g8gVxauDSv3VNlZM\&q=85\&s=c5560f758a9906e971026b116f36a46d)

### Step 4: Set meeting settings

These settings are optional and apply only to meetings booked through this rule.

* **Fuzzy matching** (Contact and Associated Company rules). If there's no contact with the exact email, RevenueHero uses another contact with the same email domain. A new colleague of a known contact then routes like that contact.
* **Always add guests** to meetings booked through this rule.
* **Override default meeting settings** to use a different meeting type. For example, known companies get a 30-minute discovery call with their AE.
* **Override redirect URLs** to send prospects to their own page after booking, or when they don't book.

![Step 3 Meeting Settings with advanced settings open: fuzzy matching, guests and meeting type override](https://mintcdn.com/revenuehero/g8gVxauDSv3VNlZM/images/hubspot_matching_05_meeting_settings.png?fit=max\&auto=format\&n=g8gVxauDSv3VNlZM\&q=85\&s=ac067e70b6d510cd2c36e2c3d8199779)

### Step 5: Add the rule to your router and set the order

Add the rule to your router's matching rules. Rules run top to bottom and the first match wins, so put the most specific relationship first.

> [!TIP]
>
> A common order is deal rules first, then company, then contact. That way a prospect connected to a live deal reaches the rep running it, even when someone else owns the company or contact.

## What happens after the match

| Result | What happens |
| - | - |
| **Matched** | Territory routing is skipped. The prospect sees only the owner's calendar and books with them. |
| **Matched, not booked** | The owner is assigned and follows up. In routers with redistribution, **Skip redistribution if qualified via matching rule** keeps the prospect with the owner. With it off, your redistribution rules can offer the meeting to another group. |
| **No match** | Your distribution rules pick the rep. If the prospect doesn't book, redistribution can offer the meeting to another group, such as SDRs. |

To keep matched prospects with their owner, open the router, expand **Redistribution** and turn on **Skip redistribution if qualified via matching rule**.

![Router Redistribution section open with Skip redistribution if qualified via matching rule turned on](https://mintcdn.com/revenuehero/g8gVxauDSv3VNlZM/images/hubspot_matching_06_skip_redistribution.png?fit=max\&auto=format\&n=g8gVxauDSv3VNlZM\&q=85\&s=99c3c86590f835b1432fd9279e107233)

## HubSpot settings behind the rules

These live in your HubSpot integration settings and shape what your rules can do.

* **Enable Deals.** Turn this on once to use the two deal match types.
* **Refresh fields.** Properties you've just created in HubSpot don't appear in rules until you refresh fields from HubSpot.
* **Works with contacts.** RevenueHero matches, creates and updates HubSpot contacts.

## If a known prospect doesn't book with their owner

* **Another rule matched first.** Rules run top to bottom and the first match wins. Move the more specific rule higher, for example deal rules above company and contact rules.
* **A condition on the rule isn't true.** A found record only counts if the conditions you added are also true. Open the rule and check its conditions against the HubSpot record.
* **The owner isn't a RevenueHero user.** With an owner condition on the rule, a record owned by someone outside RevenueHero doesn't match, and the next rule runs. Give the record an owner who uses RevenueHero if they should take the meeting.
* **The prospect used a different email.** Contact rules compare the exact email. Turn on fuzzy matching so a contact at the same email domain can match, or add a Company rule.
* **The rule always assigns to someone else.** With **Always assign to a specific member** on, the prospect books with the person or team you chose, not the owner.
* **Deals aren't turned on.** Deal rules can't match until **Enable Deals** is on in your HubSpot integration settings.
* **The prospect matched but didn't book.** Redistribution can offer the meeting to another group. Turn on **Skip redistribution if qualified via matching rule** in the router to keep them with the owner.
* **A new HubSpot property is missing from the rule builder.** Refresh fields in your HubSpot settings, then reopen the rule.

***

Your HubSpot matching rules now send known prospects to the rep who already owns the relationship.

> [card] [What are Matching Rules?](https://help.revenuehero.io/what-are-matching-rules.md)
>
> How matching fits into a router, for any CRM.

> [card] [How to create a Matching Rule?](https://help.revenuehero.io/rules/matching/create-matching-rule.md)
>
> Matching rules for campaign routers and Relays.

> [card] [How to integrate HubSpot CRM?](https://help.revenuehero.io/crm/hubspot/overview.md)
>
> Connect HubSpot before you build rules.

> [card] [Routing Logs](https://help.revenuehero.io/reports/inbound/routing-logs.md)
>
> See why each prospect reached a rep.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.