将Enterprise Edition v2的Dialogflow集成到ios和Andriod应用中 [英] Dialogflow integration of enterprise edition v2 into the ios and andriod app

查看:53
本文介绍了将Enterprise Edition v2的Dialogflow集成到ios和Andriod应用中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以前使用的是对话框流程的v1版本,然后他们宣布将暂停它。我将云功能中的代码迁移到了v2。
但是我找不到将其集成到ios和android应用程序中的方法。
请帮帮我。
谢谢。

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.

推荐答案

要将代理更新到V2,您应该为Firebase创建一个Cloud Function,将请求发送到Dialogflow(使用 dialogflow-nodejs-client-v2 ),然后从您的iOS或Android代码中调用该Cloud Function,而不是直接调用API。

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.

这种方法的主要优点是您将不再拥有您的API凭据暴露在客户端,这是安全隐患。

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.

这篇关于将Enterprise Edition v2的Dialogflow集成到ios和Andriod应用中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆