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

前端 未结 2 1494
终归单人心
终归单人心 2021-01-14 22:52

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 co

2条回答
  •  灰色年华
    2021-01-14 23:08

    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.

提交回复
热议问题