gupshup

How to add a delay to the gupshup chat so that the chatbot opens after 5 seconds?

陌路散爱 提交于 2021-01-28 08:31:10
问题 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. 回答1: 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> 来源: https://stackoverflow.com/questions/54955944/how-to-add-a-delay

Making http Post request on Gupshup IDE works?

北战南征 提交于 2020-01-06 05:28:06
问题 I copied gupshup's document code and modified just url as "http://posttestserver.com/post.php" and it doesn't work. Anyone has an advice for me? else if(event.message.toLowerCase() == "post") { var contextParam = { "User": { "userName": "sbCobxxxx", "Password": "xxxxxxx-9f-4307-9d9a-451f3xxxx075", "Pin": "16776" } }; var url = "http://posttestserver.com/post.php"; var param = JSON.stringify(contextParam); var header = {"Content-Type": "application/json"}; context.simplehttp.makePost(url,

Gupshup Chat Web Widget redirection Issue

☆樱花仙子☆ 提交于 2020-01-05 04:41:09
问题 I have built a bot with Gupshup which is really a cool tool. They provide us a web widget can be put on to any website. But there seems to be really serious problem with the widget. Suppose I put the widget on a my page www.xyz.com. THings are fine when using from desktop. When I open it from my Android device, the widget redirects me to Builquickbots.com which should never happen. How can I solve this serious issue? The UI code for the widget provided by them <script> window.tcAsyncInit =

Gupshup-Wit.ai integration very slow / getting stuck

只愿长相守 提交于 2019-12-25 11:55:02
问题 I am using Gupshup IDE Bot Builder and Wit.ai for a ChatBot widget on my website. I have made the same bot in FB-messenger without Gupshup (node-js) and it works fine. When using Gupshup, the bot often gets stuck and does not respond. This also happens when I test it in the Gupshup proxy bot. So it seems like the problem is with the communication between Gupshup and Wit.ai. Has anyone experienced the same issue? Will it improve if I build my bot outside and link it too Gupshup? 回答1: The APIs

Maintaining session in Gupshup bot calls to Api.ai

偶尔善良 提交于 2019-12-11 05:19:41
问题 I am building a bot in Gupshup with Api.ai integration. I have an agent in Api.ai with several intents and each of them linked through contexts(input & output contexts). When I use the following code to call Api.ai, the first intent is called and I get the reply. However when the second message is given, the bot takes it as a completely new message, without identifying its relation with first. How can I solve this issue? Kindly help function MessageHandler(context, event) { // var nlpToken =