Lead routing and assignment
Give every inbound request one owner and a fallback when an assignment rule can’t make the call.
Start here if leads sit unassigned, named accounts bypass their owners, or a second workflow overwrites the first assignment. Read the implementation plan
How we run the work
Trace the handoff
Sample recent requests from form submission to first assignment. Record the rule that wrote the owner and every later change.
Agree on rule order
Decide which accounts keep their owner, when territory or round robin applies, and who handles missing data or unavailable reps.
Test before switching
Replay sample requests in a test environment. Review duplicates, inactive owners, and cases that qualify for more than one rule.
What you get
- Assignment rules and an owner for each exception
- A fallback queue and an escalation rule for unassigned requests
- A test checklist and a runbook for changing routing rules
What we check
Compare time to assignment and the share of eligible requests still unassigned at your agreed cutoff. Review repeat assignments separately so they don’t hide slow routing.
- The contact identifies the manufacturing account. A shared email domain alone leaves two candidates.
- The inquiry belongs with the expansion deal. Noor covers for Priya while Jules keeps the account.
- Two deliveries of R-1049 resolve to one follow-up task, T-318.
Exercise the routing rule before the owner changes
Illustrative Salesforce intake. Every delivery uses the same rule version and retains its source submission ID.
Named owner available
- InputInbound form · WEB-1048
- DecisionMatched account · AC-214
- Expected resultSeller · named owner
Create one follow-up on the existing Contact. Capture the account match and the routing decision. Check the final task owner after downstream automation runs.
Named owner away
- InputInbound form · WEB-1049
- DecisionCoverage rule · owner on leave
- Expected resultQueue · inbound triage
Create one triage item. The queue lead owns the SLA and can transfer the follow-up. An unrelated edit must leave the recorded decision intact.
Delivery retried
- InputRedelivery · WEB-1049
- DecisionExisting decision · already committed
- Expected resultSame triage item
A unique external ID on the intake receipt makes the request searchable across retries. Protect task creation separately with a unique follow-up record or a transaction that claims the receipt before writing. Test two simultaneous deliveries.
Put one system in charge of inbound assignment
An illustrative enterprise rollout starts with one HubSpot demo form. Salesforce owns named-account coverage. Contacts already in Salesforce get follow-up on their existing record, while new people enter the Lead process. For this pilot, the team agrees to a two-minute enrichment cutoff and a ten-business-minute triage target.
Design decisions
- Trace the owner after the save
- Pull the HubSpot workflow history, Salesforce flow versions in Flow Trigger Explorer, the active Lead Assignment Rule, and the integration user’s update history. Replay one submission from each intake channel with its actual API client settings. Salesforce REST applies active assignment rules by default for eligible writes if the caller omits Sforce-Auto-Assign. Decide explicitly whether the rule runs when that caller updates the Lead. Check the stored Lead owner and task owner after downstream automation and sync settle.
- Keep account ownership separate from the response
- An existing Contact with a verified Account match follows the named-account policy. If the account owner is away, the coverage rep can receive the task while the account and contact owners remain in place. Market Ops can still write campaign and intent fields from HubSpot. Retire enrollment paths that rotate the synced owner for the pilot cohort. Treat a domain that matches two subsidiaries as a triage case and save both candidate IDs.
- Choose the lightest viable automation
- Keep the active Lead Assignment Rule for net-new routing by stable fields such as country and segment. Salesforce evaluates entries in order and stops at the first match. Use Flow where lookups and exceptions are modest. Where simultaneous webhook deliveries can create duplicate work, claim the intake receipt and commit the follow-up within the same Salesforce transaction, or use an external job store with a unique operation key and reconcile the outcome before retrying.
- Give triage a clock and a person
- Start the response clock at form receipt, even while enrichment runs. After two minutes, route unresolved records to the correct queue and log the reason. Configure a queue lead and a separate alert for unclaimed work. Salesforce task-queue assignment notifications generally start after reassignment to a named user. Have the queue lead test access to the task and related Contact with their own permissions.
- Track who first accepted the work
- Measure first assignment, first human claim, and first response separately. Report median and 90th-percentile time to claim by source and reason. Count requests still waiting at the target and requests the team never matched. A queue owner or sync user in the Owner field alone does not count as a human claim.
Field ownership and write rules
| Field or key | Authoritative writer | Rule |
|---|---|---|
| Intake_Key__c | Form ingestion | Use the source plus immutable submission ID, for example HS-FORM-17-WEB-1049. Store it as a unique external ID on the receipt. A fresh inquiry from the same contact gets a new key. |
| Received_At__c and Claim_Due_At__c | Form ingestion and routing policy | Store the original receipt in UTC. Derive the claim target using the agreed business-hours calendar for the coverage team. Preserve both across redelivery. |
| Matched_Contact__c and Matched_Account__c | Salesforce routing automation | Prefer a verified Contact and its Account link. Store candidate account IDs and a match reason if ownership remains ambiguous. |
| Routing_Decision__c and Rule_Version__c | Salesforce routing automation | Keep the original rule version, route reason, intended assignee, and coverage window. Record authorized transfers as separate events so replay cannot overwrite the decision. |
| Followup_Task_Id__c and Claim_At__c | Routing transaction and assigned rep | Persist the task ID before acknowledging delivery. Record the first human claim independently of the queue assignment. Require a reason when an operator transfers a claimed task. |
Rollout gates and owners
Baseline
Marketing Ops and Salesforce admin
Trace at least one real record from each enabled ingress. List every writer of Lead.OwnerId, Contact.OwnerId, and the task assignee, plus the incumbent queue view and alert owner.
Shadow replay
Sales Ops and SDR manager
Run the candidate decision without owner, task, or notification writes. Inspect timestamped differences by named account, out-of-office coverage, duplicate match, and net-new lead. Resolve differences against the territory policy before activation.
Canary
Salesforce release owner and inbound queue lead
Turn on one form or matching cohort. Suppress competing owner workflows only for that cohort. Verify one follow-up for each accepted request, no late owner changes on claimed work, and a named responder on the triage alert. Compare outcomes through a peak-volume period before expanding.
Stop and recover
Salesforce release owner
Stop new assignment writes if one request produces two tasks, a claimed owner changes without approval, or oldest unclaimed age breaches the pilot target. Return new traffic to the incumbent route. Reconcile outstanding receipts by key and preserve completed tasks before retrying unresolved work.
Acceptance tests
Start with the sample inputs. Record the actual result, evidence, and owner before signing off.
RT-01 Named account with an existing Contact
- Sample input
- WEB-1048 matches CT-120 on AC-214. The account owner is available.
- Expected result
- Create one task for the named owner on CT-120. Leave Lead count and Contact owner unchanged.
- Evidence
- Receipt, matched IDs, final task assignee, and post-sync owner snapshot
RT-02 After-hours request for an absent owner
- Sample input
- WEB-1049 matches AC-214 after regional close. The named owner is away and no backup is eligible.
- Expected result
- Assign one task to inbound triage. Calculate the ten-business-minute target from the next opening. The queue lead receives the separate alert and can see the task.
- Evidence
- UTC receipt, regional calendar result, queue membership, and alert event
RT-03 Parallel retry after the first write
- Sample input
- Send WEB-1049 twice within one second and repeat it after a simulated lost acknowledgment.
- Expected result
- Keep one receipt, one recorded decision, and one task. A retry returns or reconciles the saved task ID.
- Evidence
- Same source key across all deliveries, one saved task ID, and attempt results
RT-04 Domain matches two subsidiaries
- Sample input
- WEB-1050 has no known Contact and matches AC-401 and AC-402. Enrichment returns after the cutoff.
- Expected result
- Triage receives both candidate IDs. If a rep already claimed it, late enrichment adds context without transferring ownership.
- Evidence
- Candidate list, timeout reason, claim timestamp, and assignee history
RT-05 New lead enters through the live connector
- Sample input
- WEB-1051 has a verified territory and reaches the Salesforce REST client with the pilot header configuration.
- Expected result
- Apply the agreed Lead rule once, and preserve the eligible seller after HubSpot sync and a later enrichment update.
- Evidence
- API client config, matched rule entry, saved Lead owner, and HubSpot workflow history
RT-06 Replay path unavailable after a failed write
- Sample input
- Force a task-create failure on WEB-1052 after the receipt is accepted for processing.
- Expected result
- Surface the accepted receipt for repair. After correcting the failure, reprocess the same key and verify one task. Keep the original receipt time and the reason for the retry.
- Evidence
- Fault log, original receipt key and timestamp, repair attempt, and task count
What the owner gets at handoff
Sales Ops gets the rule order, the owner of each exception queue, and the sandbox results for web, API, and import paths in use. Compare the time from receipt to the first eligible owner at the median and 90th percentile. Count unmatched requests and later owner overwrites separately. Pilot one intake route before switching writes for the rest.
Leave a lead in triage when neither account match can be confirmed. The queue owner records the chosen account and replays the original request once.
Bring to the first conversation
Bring an export of recent inbound requests with creation and assignment times, a copy of the current routing rules, and a list of exceptions reps handle manually.