[英]How to use a database with a messenger chat bot to store responses of users?
我正在构建一个聊天机器人,我想将其连接到数据库以存储用户对问题的回答,我将该应用程序部署到heroku,如何使用mysql来完成这项工作,如果有好的资源,请推荐
You can use the ClearDB or Jaws DB MySQL add-ons, then just make the DB calls in your webhook code, probably indexing on psid: 您可以使用ClearDB或Jaws DB MySQL附加组件,然后仅在Webhook代码中进行数据库调用,可能在psid上建立索引:
https://devcenter.heroku.com/articles/jawsdb https://devcenter.heroku.com/articles/jawsdb
https://devcenter.heroku.com/articles/cleardb https://devcenter.heroku.com/articles/cleardb
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.