SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

How to Determine Time Elapsed Between Widgets

Objective

With Twilio Studio, our low-code/no-code visual editor flows are composed of widgets for building voice, messaging, and other communication workflows.

The Twilio API can be used to determine the amount of time that has transpired between the execution of widgets within a given Flow.

 

Product

Twilio Studio

 

Procedure 

To calculate the amount of time between widgets run within a Studio Flow, you can make use of the Execution and Step resources:

Once you fetch the relevant Studio Flow Execution, you can retrieve a list of Step resources listed in reverse chronological order (most recent first):

You can then compare Steps' date_created properties to determine the time taken between widgets. Alternatively, another option is to make use of Event Streams for Studio events. More details can be found here:

 

Have more questions? Submit a request
Powered by Zendesk