【问题标题】:How to add a delay to the gupshup chat so that the chatbot opens after 5 seconds?如何为 gupshup 聊天添加延迟,以便聊天机器人在 5 秒后打开?
【发布时间】:2019-03-02 06:44:49
【问题描述】:

我已经制作了一个聊天机器人并将其部署在本地 wordpress 网站上,现在我想添加一个延迟,以便聊天机器人在网站加载 5 秒后自动打开,使用 javascript。

【问题讨论】:

    标签: javascript php chatbot gupshup


    【解决方案1】:

    好的,我自己找到了答案

    <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>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-12-18
      • 1970-01-01
      相关资源
      最近更新 更多