问题
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 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:
- Wit.ai quick start guide
- Gupshup's making HTTP calls guide
This will be a GET call.
来源:https://stackoverflow.com/questions/45327145/gupshup-wit-ai-integration-very-slow-getting-stuck