Typing Emulator and Delay In Between Messages
# 🤝help
j
Hello, I trying to emulate typing or have a delay in between messages. I made the videos below to further explain what I am trying to do. https://app.screencast.com/UD71BZc50X2ZD https://app.screencast.com/sQE9YUB1GvtgT
f
Hello @jolly-mechanic-35404 I have found to add a delay you can create executable code in a bot to add a delay. Here is what I did https://vimeo.com/855754662/0163b180f3?share=copy Let me know if that helps

https://cdn.discordapp.com/attachments/1142086791529246740/1142136359465783296/image.png

https://cdn.discordapp.com/attachments/1142086791529246740/1142136359725826089/image.png

https://cdn.discordapp.com/attachments/1142086791529246740/1142136360036208740/image.png

https://cdn.discordapp.com/attachments/1142086791529246740/1142136367124586548/image.png

j
Thank you @flat-plumber-75402 that worked for multiple choice to message, but not from message to message. See my video for an explanation https://app.screencast.com/aCVklRZKyl6Aj
f
Hey @jolly-mechanic-35404 was there supposed to be sound in the video?
j
@flat-plumber-75402 Lol, yes. Sorry, let me re-record
f
haha no worries my friend
j
@flat-plumber-75402 Ok, here is the one with sound https://app.screencast.com/rSHoCBW2tOaay
f
@jolly-mechanic-35404 Alright I beleive two separate questions being asked. The first question is adding a delay between the prompt and the buttons showing for the choice. The second question is Why the second delay is not working. For the second question can you get me a screen shot of the code please?
For the first question let me double check something
j
I would like to add a delay between the 2 messages.
f
For the first question for good conversation design with a choice skill you do not want a delay between the question being asked and the choice being presented. that delay can lead to users typing in weird things.
Can I see the code for the 5 second delay please?
j
Yes
f
Okay here is a video where I mimicked your bot It did work but the code was slightly different for the two delays https://vimeo.com/855797610/8867b497ff?share=copy

https://cdn.discordapp.com/attachments/1142086791529246740/1142149854592770182/image.png

https://cdn.discordapp.com/attachments/1142086791529246740/1142149854932512779/image.png

If you are using the generate code feature and its acting off try reprompting and testing again.
j
Hi @flat-plumber-75402 thanks, however, I wanted the delay in between the text. See video https://app.screencast.com/DOPqawE4qk4Ci
f
@jolly-mechanic-35404 If you watch the video I did earlier you will see it types the message... then during the delay it grays it out because of the action then sends the next message then grey out and then the last message. The messages are being sent sepeartly with the time delay.
j
Ah ok, let me try the code. Thanks, I will let you know.
f
Your welcome! let me know how it goes
j
Hi @flat-plumber-75402 here were my results. https://app.screencast.com/MWX6pXDzDTkUv
@flat-plumber-75402 changing the milliseconds did not help either. It just make the delay between the multiple choice and the message "Has it been 3 seconds?" longer.
l
even i tried implementing the same code, it works fine in the studio, but on the webpage, it adds the all the delay at once for eg. 3s + 5s + 5s, waits for 13s and then displays all the 3 messages at once
j
@lively-iron-39664 Yeah, its not good.
l
@jolly-mechanic-35404 , did u find any alternative?
j
@lively-iron-39664 I am looking into potentially using java script.
@lively-iron-39664 I even tried this, and it still did not work. https://app.screencast.com/ddh5GbilXUO9p
ALso tried this, not sure why @cold-motherboard-82208 can't make this work. https://app.screencast.com/f5yan5XcBe1vj
135 Views