简体   繁体   English

facebook messanger -wit.ai集成-Chatbot -heroku部署

[英]facebook messanger -wit.ai integration -Chatbot -heroku deployed

I am working towards a chatbot,with wit.ai and facebook messanger as the interface for it,The integrating process went error less and the curl -H gave {success:true},but the bot does not respond if messaged,I looked all over it,may i know is it because of heroku for which this behaviour is seen,or the deployment platform does not matter at all,what can be the area or part that i may be missing out? 我正在使用wit.ai和facebook messanger作为其接口的聊天机器人,集成过程出错更少,curl -H给出了{success:true},但是如果消息通知机器人没有响应,我看上去在它上面,我是否可以知道是因为出现了此行为的heroku,还是部署平台根本不重要,我可能会错过的领域或部分是什么?

List of things i have already done: 我已经做过的事情清单:

  • 1 create a story over wit.ai 1在wit.ai上创建故事
  • 2 a simple nodejs server code printing ("this is a bot"). 2个简单的nodejs服务器代码打印(“这是一个机器人”)。
  • 3 after properly executing,wrote the whole bot. 3正确执行后,编写整个机器人。
  • 4 deployed it to heroku 4将其部署到heroku
  • 5 in Facebook Developer section,created apps for messanger. Facebook开发者部分中的5,为Messenger创建了应用。
  • 6 setup webhook,after creating a verify_token,it shows "complete" 6设置webhook,创建verify_token后,显示“完成”
  • 7 generate page token and put verify_token and page_access_token in heroku dashboard's "config vars" 7生成页面令牌,并将verify_token和page_access_token放在heroku仪表板的“ config vars”中
  • 8 subscribe the page 8订阅页面
  • 9 trigger it using curl and chat with the bot;** 9使用curl触发它并与机器人聊天; **

    • *error: bot does not respond in the page *错误:漫游器在页面中没有响应

    • url/webhook -> bad request* url / webhook->错误的请求*

Can anyone give me some suggestions regarding this 有人可以给我一些建议吗

I find it highly unlikely that there is a heroku problem. 我发现出现heroku问题的​​可能性很小。 Did you try chatting with the bot without using witai? 您是否尝试不使用witai与机器人聊天? Also type heroku logs on terminal to see if there are some errors in your application. 还要在终端上输入heroku logs ,以查看您的应用程序中是否存在一些错误。 I used heroku to deploy my chatbot, and it works really well since you can find all the errors in the logs. 我使用heroku部署了我的聊天机器人,它的工作原理非常好,因为您可以在日志中找到所有错误。 I am not well versed with witai, but since it is just calling the bot, heroku shouldn't be the one causing the error 我对witai不太了解,但是由于它只是在调用bot,因此heroku不应该是导致错误的原因

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM