简体   繁体   English

如何使用带有Messenger聊天机器人的数据库来存储用户的响应?

[英]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.

相关问题 使用Azure聊天机器人时如何仅存储用户响应 - How to store only the users response when using the Azure chat bot 如何在Facebook Messenger聊天机器人中添加“入门”按钮? - How to add 'Get Started' button in facebook messenger chat bot? 我可以让我的facebook Messenger聊天机器人具有回答用户的排他性吗? - Can I give my facebook messenger chat bot the exclusivity of answering users? 在Facebook机器人聊天中存储用户答案的​​最佳方式? - Best way to store answers from users in Facebook bot chat? 如何获取/存储最后的SENT Messenger机器人消息给用户? - How to get/store last SENT messenger bot message to a user? 聊天机器人从错误的响应数组返回 - Chat bot returning from incorrect array of responses 如何编写聊天机器人以使用Alchemy数据 - how to code a chat bot to use Alchemy data Facebook Messenger Bot-如何使用NodeJS获取用户信息? - Facebook Messenger Bot - How to use NodeJS to get User Information? 如何将Bot添加到Messenger组? - How to add bot to messenger group? 如何在recast.ai聊天机器人中将用户回复写入Google表格 - How to write user responses in recast.ai chat bot to google sheets
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM