Dialogflow integration of enterprise edition v2 into the ios and andriod app

一个人想着一个人 提交于 2019-12-01 11:21:49

问题


Iam previously using the v1 version of the dialogflow and then they announced that they are going to suspend it.I migrated my code in the cloud functions to the v2. But i could not find a way to integrate it into the ios and android apps. Please help me out. Thanks.


回答1:


To update your agent to V2, you should create a Cloud Function for Firebase that sends requests to Dialogflow (using dialogflow-nodejs-client-v2), then call that Cloud Function from your iOS or Android code rather than calling the API directly.

The major benefit of this approach is that you will no longer have your API credentials exposed on the client side, which is a security risk.



来源:https://stackoverflow.com/questions/50981178/dialogflow-integration-of-enterprise-edition-v2-into-the-ios-and-andriod-app

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