Add delay to consecutive messages
SummaryHow to add a delay to the messages sent from the custom components
I have a component where I am sending multiple text responses one after the other. All the messages appear at once and it doesn't give a good chat experience. I want to add delay to the messages so that it appears more realistic. I tried adding timeouts and promises but that didn't work. Is there any way of achieving this?
Thanks in advance,
Sharath Chandra Gavini.