WAITFOR
Last updated
Last updated
This block is great if you need to delay specific actions in the bot. Common examples are:
checking order status after placing the order to see if the bot should send a discount coupon to the user
setting reminders in personal assistant bots
checking if a specific page on the site was visited during some period of time and sending reminders to visit it, etc
In the example above the bot is sending the “Checkout now” button to the user and then waits for 30 minutes. After 30 minutes the bot is checking the $order_status user attribute to see if the order was paid. If it was not paid yet, the bot is sending a discount coupon to the user.