简体   繁体   English

Ionic4-angular 聊天机器人和对话流 v2

[英]Ionic4-angular chatbot and dialogflow v2

How can I connect ionic dialogflow v2?Im trying to develop a chatbot and Im not sure how to make this connection and then see the results on localhost.Do I need to use firebase for this?如何连接 ionic dialogflow v2?我正在尝试开发一个聊天机器人,但我不确定如何建立此连接,然后在 localhost 上查看结果。我需要为此使用 firebase 吗? I have downloaded the json file from dialogflow but at the moment im reall confused about how to use it.我已经从 dialogflow 下载了 json 文件,但目前我对如何使用它感到非常困惑。 Any help much appreciated!非常感谢任何帮助!

For someone that maybe face this in the future: 1)create a node js server and make post requests from ionic to this server.对于将来可能会遇到这种情况的人:1)创建一个节点 js 服务器并从 ionic 向该服务器发出 post 请求。 2)on the post request function in your node js server complete also the runsample function of this example https://github.com/googleapis/nodejs-dialogflow 3)the returned response in ionic from the server is the intent! 2)on the post request function in your node js server complete also the runsample function of this example https://github.com/googleapis/nodejs-dialogflow 3)the returned response in ionic from the server is the intent!

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

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