Code-based Actions: Add a delayed opening to the web widget
An interaction between the bot and the user can be initiated by the user or by the bot. When you want your bot to initiate a conversation, you can use the Auto open or Auto send message scripts as described in Web Widget.
A more advanced technique is to initiate a conversation after 5 or 10 seconds when the user lands on your page. You can initiate the following conversations:
- Cannot find what they are looking for?
- Is interested in your product or services?
Why not add the right moment to your engagement strategy? The following script can be added to your page to open the web widget after 5 seconds and trigger the event Opening. Ensure that you change the event name in your script or within your flow design.
<script>
setTimeout(function() {
__flowai_webclient_app.open()
}, 5000) // 5 secs
Updated 11 months ago