0

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?

ɢʀᴜɴᴛ
  • 32,025
  • 15
  • 116
  • 110

1 Answers1

0

The APIs and behavior of wit.ai have changed recently. Gupshup will update the wit.ai template soon.

In the mean time, you can integrate the wit.ai API directly into the bot on Gupshup. These resources should help:

  1. Wit.ai quick start guide
  2. Gupshup's making HTTP calls guide

This will be a GET call.

Shreyans
  • 1,738
  • 1
  • 13
  • 19
  • and what about the runActions() method in NLP code template which has been deprecated ? witClient.runActions(sessionId, event.message, witContext, (e, context1) => { if (e) { console.log('Oops! Got an error: ' + e); return; } context.console.log('Yay, got Wit.ai response: ' + JSON.stringify(data)); //context.sendResponse('No keyword found : '+event.message); }); – Pablo DelaNoche Oct 08 '17 at 17:32
  • The wit.ai template on Gupshup will be deprecated and removed hence you can use the suggested approach to integrate with wit.ai – Shreyans Oct 09 '17 at 07:10
  • @Shreyans I need some help with gupshup API, I am new to programming and I want to program a whatsapp bot in python using gupshup API, Can you help me get a head start, I have looked at documentation but I could not understand much of it I would really appreciate if you can help me out – Ankush Dua Sep 22 '20 at 11:35