'Time Total Session Time, send to user

Making a game in Twillio Flows

I'd like when the user enters in their first message, log the time, and when they enter in another message later in the flow the time is entered

How would I go about doing this?



Solution 1:[1]

I think the easiest way to work with this would be to use the Set Variables widget after you receive the message and use the liquid template string "now" to set the variable to the current time.

So, in the Set Variables widget name the variable something like first_message and set the value to

{{ 'now' }}

Then, do the same with a new variable name after the second message you receive.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 philnash