Share feedback, ideas and get community help

Updated 7 months ago

Set max time for user on typebot

Hello

I need to set a maximum time for the user answer the questions. 5 minutes for example.

If the user cross this limit I will save save his/her section and a Boolean variable true if he crossed the limit or false if he doesn’t in a column called “time” for example

How can I achieve something like this?
1
B
@
A
6 comments
There is no way to do that on Typebot for now!
Is it possible to do this using JavaScript @Baptiste ? Or is it too complex?
Too complex...
I think this should be possible. I have a quiz bot, I will try it over the weekend and share what I got...😉
It's possible to set start and finish time and then calculate duration. You can then save duration if it is greater than set time

// Example durations in minutes
const responseDuration = {{responseDuration}};
const questionDuration = {{questionDuration}};

// Calculate the duration difference
const durationDifference = (responseDuration - questionDuration).toFixed(1);

// Return the duration difference rounded to one decimal place
return durationDifference;
if you have a in between system that have all the input and output from typebot you could use this sistem to monitor the sessionId if it has interactions in certain ammount of time, if it didn't you could do some action predefined into tyebot, in the same flow or other flow, since you could "fake" the input to a secundary flow to answar like the first one
Add a reply
Sign up and join the conversation on Discord