Closed mericda closed 6 years ago
edit: adjusted my code.
Sorry for the late reply, @mericda. The reason this isn't working is because you're mixing two programming languages (JavaScript and Ruby). You'll have to learn one of them to write a bot, so I suggest you pick the one you like the most and read a book about it. :-)
Hi!
Thanks for developing this project! I am a ruby/sinatra newbie who is trying to develop a messenger bot, and this gem was very useful! I am now thinking about integrating wit.ai, but I am stuck with their example code, I know that plug-in supports built-in NLP = wit.ai, but couldn't manage to get started. I would appreciate any help! I can see from my console that I can get nlp confidence values etc. but I don't know how to work with them in my code.
Facebook's example code is:
my code is but I couldn't manage to get it work.
Thank you!