Workflow goals kicking contacts out too early (and what it did to our lead routing)

If you use workflows to route inbound leads and rely on a goal to say “this lead’s handled”, watch out for this one.

The Problem: We’d set up two routing workflows for a professional services client: one for leads that come in out of hours, one for the working day. Reps didn’t want tasks and pings landing at 11pm, and changing everyone’s notification settings wasn’t going to happen. Both workflows used “Contact owner is known” as the goal, which seemed sensible. Once a lead has an owner, job done, right? Not quite. Follow-up tasks stopped appearing, and some leads woke up with a different owner to the one they’d gone to bed with.

At Hatchi Digital, we rebuilt the routing so each lead gets one owner and one follow-up, always inside working hours.

Testing showed two separate issues, both down to the goal. In the working-hours workflow, the owner was assigned partway through. The second that happened, the goal was met, the contact was unenrolled, and the task and notification steps after it never ran.

The overwriting was sneakier. Out-of-hours leads were also enrolling in the working-hours workflow and sitting there until 9am. Overnight, the out-of-hours workflow had already given them an owner. Then morning came and the working-hours workflow handed them to someone else.

Fix one was stopping the double enrolment. The out-of-hours workflow now ends with a “Go to workflow” action into a working-hours workflow that has no enrollment trigger of its own. It only runs 8am to 6pm, with a branch per rep and a one-hour delay for the rep who starts later.

Fix two was getting rid of the owner-based goal. A timestamp property now marks every contact that’s been through the out-of-hours workflow, and that’s what drives unenrolment. Each workflow also excludes contacts the other one is handling.

Every lead now gets an owner once, and the follow-up always fires during the rep’s day. The thing I’d stress for anyone building something similar: a goal pulls the contact out the instant it’s true, even mid-workflow. If the goal property gets set halfway through, everything after that point is skipped, so pick something that marks the very end of the process.

How are others handling out-of-hours routing? Anyone using round robin with business hours instead?

A few things to add to your rebuild:

Goals and re-enrolment

  • Switching to a timestamp is the right call. One catch if it’s set as a goal: a contact who has met a workflow’s goal can’t re-enrol in that workflow. If returning leads should be routed again, make the goal time-bound (e.g. “timestamp is less than 1 day ago”) or clear the property at the end of the process.
  • If you don’t need the goal conversion reporting, a suppression list does the same job without that re-enrolment side effect.

Stopping the morning reassignment

  • In the owner steps, untick “Overwrite if contact has an existing owner”, or branch on “Contact owner is known” first. Then even if something slips past your exclusions, a lead that already has an owner keeps them.
  • “Unenroll contacts from other workflows” (workflow settings → Connections) is another safety net. It only applies at the moment of enrolment, though, so switch it on in both workflows if you want them mutually exclusive.

The 8am–6pm window

If that’s set with the workflow’s execution time settings, a few of its rules are easy to miss:

  • It uses the account time zone.
  • Only actions are held. Delays and branches carry on as normal.
  • An action reached on a non-working day, but within the allowed hours, is pushed to the same time on the next allowed day, not the start of the window. So a lead handed over by “Go to workflow” at 10:00 on a Saturday gets actioned at 10:00 on Monday, not 8:00.

We tend to use “Delay until a day or time” actions directly before the owner, task and notification steps instead. They’re visible in the workflow, easy to trace in the enrolment history, and for your later-starting rep, “delay until 9:00” is more predictable than a fixed one-hour delay. Keep these delays on the out-of-hours path only, because a time-of-day delay reached after the set time waits until the next day.

On round robin with business hours

The Rotate record to owner action behaves differently depending on the object:

  • Contacts: records are rotated evenly across the selected users or team, based on each action’s assignment count. There’s no availability check and no choice of distribution method.
  • Leads (currently in beta) and Tickets: you get round robin, load-balanced or random distribution, plus “Assign to available users only”, which skips anyone whose status is Away. Away is set automatically outside each rep’s working hours, if they’ve set them, and can also be toggled manually.

If you want availability-aware routing, that means moving onto the Leads object (Sales Hub Pro or Enterprise). A few things to watch:

Great call outs! Thank you for the contribution!