简体   繁体   中英

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:

https://devcenter.heroku.com/articles/jawsdb

https://devcenter.heroku.com/articles/cleardb

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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