I want to add a short pause between various text message being sent by my chatbot
I have tried adding an Execute code card with the following code but it doesnt seem to be working
async function waitNSeconds(n) {
return new Promise((resolve) => {
setTimeout(() => {
resolve()
}, n)
})
}
// Usage
console.log('Start waiting...')
await waitNSeconds(3000)