This topic was automatically generated from Slack. You can find the original thread here.
Hi all, I’ve built a workflow that will be drip-fed events through a webhook trigger. I then have an action that will hold all events until 8am, and then send a WhatsApp message using the Twilio API.
What’s the best way to manage the flow when it reaches 8am so that I don’t reach Twilio WhatsApp API limits? I’ve got my head in a spin looking into concurrenct/execution rate options so would appreciate some guidance
Ingest Events Workflow: HTTP trigger, receive events and store it in Pipedream Datastore or database of your choice
Loop Events Workflow: Schedule trigger runs on 8am every day. Add a code step to retrieve ingested events, then loop through event, for each event call the HTTP request to the Send Message Workflow (3). Flush all events after all messages are sent.
Send Message Workflow: HTTP Trigger, receive an event from Loop Events Workflow, then send WhatsApp/Twilio message accordingly
If you have coding experience, you can merge the workflow 2 and 3 into a single workflow by using WhatsApp/Twilio app code step