Dialog-flow Chat bot using MySQL

≡放荡痞女 提交于 2019-12-13 05:25:07

问题


I am developing a Chat bot using Dialog-flow which will be based on a database that I am preferring to use MySQL. The Chat bot will send the answers on the basis of DB after querying the data.

I have created a basic chat bot with a small Database.

What should I do to develop a communication link between MySQL and the Dialog-flow or is there any Database that I can use? Help me, please.


回答1:


To communicate with your database from a Dialogflow agent, you will need to use fulfillment.

Dialogflow has a fulfillment library for Node.js that you can use to start building your fulfillment code. You can see the Dialogflow GitHub for many samples of fulfillment code.

If you are using Node.js to build your fulfillment, you can integrate it with MySQL via a Node.js MySQL client such as mysqljs/mysql.



来源:https://stackoverflow.com/questions/52622676/dialog-flow-chat-bot-using-mysql

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!