如何为gupshup聊天增加延迟,以便聊天机器人在5秒钟后打开? [英] How to add a delay to the gupshup chat so that the chatbot opens after 5 seconds?

查看:38
本文介绍了如何为gupshup聊天增加延迟,以便聊天机器人在5秒钟后打开?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个聊天机器人,并将其部署在wordpress网站上的本地位置,现在我想增加一个延迟,以便使用Javascript在网站加载5秒后自动打开聊天机器人.

I've made a chatbot and deployed it locally on a wordpress website now i want to add a delay so that chatbot auto opens after 5 second the website is loaded, Using javascript.

推荐答案

好吧,我自己找到了答案

Ok I myself found the answer to this

<script id="gs-sdk" src='//www.buildquickbots.com/botwidget/v2/demo/static/js/sdk.js?v=2' key="5bxxxx1a-xxx2-xxxa-axx2-1xxxxxxxxa" onload="setTimeout(function(){tc.funcs.toggleWidget(true);}, 5000);"></script>

这篇关于如何为gupshup聊天增加延迟,以便聊天机器人在5秒钟后打开?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆