Table of Contents

Set a timer to get the time spent during the flow

Dilyara Updated by Dilyara

We know how important might be to know the time your users spent completing the bot, so we decided to create this workaround⏱

Here's how the builder will look:

  1. After the Welcome message block, add a Set variable block to create a number variable called @start and give it the value: ${timestamp}
  1. After the last block or the block that you want to use as a reference for getting the time you have to add another Set a variable block to create a variable in Number format called @end and give it the value: ${timestamp}
  1. Then add a Formulas block create a variable in Number format and use this formula:

Trunc(Subtract(@end,@start))

  1. Finally, connect this Formula block to a Message block and add the variable @time_spent to show the time it took for the user to finish the bot:

Here's the final view of the chat, the last number (11) corresponds to the number of seconds:

If you'd like, you can use our pre-made template

How did we do?

Reservation bot with Airtable

Contact