How HubSpot lead routing works in Default
A HubSpot routing workflow in Default runs these steps:- HubSpot changes a record. A new contact, or a change to an existing contact, fires the workflow’s CRM Record Created or CRM Record Updated trigger. An optional Condition limits which records qualify.
- The workflow picks a queue. Set the queue in the Round-Robin node’s Queue field, or pass in a queue that a Match Default Record node found earlier. To send records to different queues, branch with a Multi-Branch node and give each branch its own Round-Robin node.
- The queue’s policy picks a member. The Round-Robin node applies the queue’s routing policy and makes the member available to later nodes as Latest assigned user.
- Default writes the owner back. An Update Record node sets the owner property
(
hubspot_owner_id) on the HubSpot record to Latest assigned user. Default converts the Default user into their HubSpot owner ID through the member’s integration mapping. - Default counts the assignment. The member’s round-robin count goes up, and the assignment appears in Routing under Assignments, on the Object assignments tab.
HubSpot objects Default can route
An owner written on any other HubSpot object, or into a property other than
hubspot_owner_id, does
not count toward a queue’s round robin.
Triggers that start HubSpot routing
2 workflow triggers start from a HubSpot record. Both become available once HubSpot is connected, and both use the same fields:- CRM Record Created fires when a new record of that object appears in HubSpot.
- CRM Record Updated fires when an existing record changes. Its Condition can also check which properties changed, with the Fields Updated input, next to the record’s values under Object Fields.
Setup for HubSpot routing in Default
HubSpot routing in Default needs 4 things in place:
Connecting HubSpot and editing other members’ mappings need admin access.
Build a HubSpot lead routing workflow
This example assigns every new HubSpot contact to the next member of a queue namedInbound Routing and
writes that member as the contact owner.
1
Add the trigger
In Workflows, create a workflow and add the CRM Record Created trigger. Set CRM to
HubSpot and Record to Contact.Optionally, add a Condition on a contact property, for example the contact’s country.
2
Add the Round-Robin node
Select Add Node, then choose Round-Robin in the Actions section. Set Queue to
Inbound Routing.3
Add the Update Record node
Add Update Record from the Records section. Set Platform to HubSpot and
Record Type to Contact. For Record to update, choose the contact’s record ID from the
trigger.Under Fields, add Contact owner. For its value, open the data picker and choose
Latest assigned user under Round robin.
4
Test the workflow
Select Test to open Test Workflow, choose the CRM Record Created trigger, and fill in
the sample contact with the email and record ID of a test contact in HubSpot. Select
Run Test, then confirm that the contact owner changed in HubSpot.
5
Publish and turn it on
Select Publish. A new workflow goes live when you first publish it, so the status next to the
switch in the top bar reads Live and new HubSpot contacts now run through the workflow. If the
status reads Paused, turn the switch on.
Route new HubSpot contacts from a form
A form submission carries the lead’s form data, so the workflow checks for an existing HubSpot contact before it routes. Only new contacts get an owner, and a repeat form fill leaves the existing owner in place. HubSpot’s Create Record has no Update on conflict option, so this check is also what keeps a repeat form fill from creating a second contact:- Start the workflow with the Form Submission trigger. Set Connected Form to the form you track.
- Add Match Record with CRM set to HubSpot and Record set to Contact, matched on email.
- On the No Match branch, add Round-Robin to pick the owner. Then add Create Record with Platform set to HubSpot and Record Type set to Contact. In Mapped Fields, map Email to the email from the form, map any other answers you want on the contact, such as the first and last name, and set Contact owner to Latest assigned user.
- Leave the Match branch without an owner change, so the existing contact keeps its owner.
Routing controls Default applies to HubSpot records
Before Default writes a HubSpot owner, the queue’s routing policy applies these controls:
See How lead routing works for how these controls combine.
Check a HubSpot routing decision
- Runs: open the workflow, select Runs in the top bar, and select a run. The Round-Robin node shows the member it assigned, and the Update Record node shows the properties it wrote. See Run logs.
- Assignments: in Routing, select Assignments, then Object assignments. Each row shows the Record, Object type, Assigned to, Queue, and Timestamp. Open a row to see the scores behind the decision.
Troubleshoot HubSpot routing
Related: Lead routing software from Default