HubSpot Ideas

ButchMayhew

Workflow Action That Allows You To Throttle Amount Per Second

The Problem: We recently enabled OpsHub and have been building out different Custom Code integrations with different APIs. Each of these APIs we are working with have different rate limits that I'm unable to account for in my custom code. Ideally if I could control how many objects get passed through through a specific workflow action at a time per second, I could configure a custom throttle right on the workflow. This could also be a useful feature for email marketing and sequences as well.

 

The Solution: A new workflow action that allows you 2 inputs

Choose how many objects should be moved per interval

* Object Count ___

* Interval (Ideally seconds, minutes, hours)

 

For example If I have 500 contacts I am importing into the system that would automatically trigger this workflow, I could set the Throttle to
* Contact Count 5

* Interval 1 second

When 500 contacts hit the Throttle Action, 5 would get processed every 1 second (any additional that come in would get in the queue. 
This would take approximately 100 seconds before the Throttle queue was empty (assuming no additional contacts were added to the workflow).

ButchMayhew_0-1697743336187.png

 

8 Replies
JJensen_Aurora
Participant

Yes this would be amazing! Something like Random Sample but ensuring that we can do multiple, mutually-exclusive samples from within a workflow.

In my particular use case, I would like to execute property updates on batches of leads without overwhelming our sales team or SFDC API with thousands of leads all at once. Being able to throttle X many leads per X time would solve this completely.

I created a "Cohort" field to potentially write a custom code step that assigns each Contact a number 1-10, and then add later steps to execute 1 cohort each day, but haven't had the time to write and debug it.

jgillan
Member | Diamond Partner

Agreed this would be a great trick both for sending emails and API call limiting.

Unmatched
Participant | Diamond Partner

Hey! We've built an app that will be able to help you with this. It's called Time Turner, and it allows you to throttle your HubSpot workflows and drip-feed your emails out over time. 

 

Let me know what you think? 

 

Here's the install link for Time Turner!

IHanet
Member

Would love to use  a feature like the one explained above for our push notification workflows!

SPeason
Participant

This is such a key feature!

We have a use case for this with the new associations via workflow feature too! 

JTolley
Contributor | Gold Partner

My app, Daeda Essentials, includes a Throttle action just like this - allowing you to delay workflow executions by XXX ms. 

 

Here's the install link

And the product page

 

It also contains batching, syncing and manual approval nodes.

JTolley
Contributor | Gold Partner

^^ Daeda Essentials is now on the marketplace btw.

Hawk-Steve
Top Contributor

Great app there @JTolley , well done! My only recommendation would be to add a little note for users to see - Making a recommendation for if the action is being used to feed custom code. (Don't exceed 100/10s, consider lowering it to allow space for other API calls being made elsewhere, etc).