如何在 swift 中集成 Dialogue flow V2?

How to integrate Dialogue flow V2 in swift?

我正在使用 Dialogflow 构建一个聊天机器人,就参考网站而言,我对这个概念完全陌生,他们已经指出现在已弃用的 Dialogue flow V1?

能否分享一些示例代码,说明如何使用 Swift 与 V2 的对话流 API 进行交互?

我用简单的 Rest api post 请求尝试了一些代码,但没有成功。

理论上,您可以使用 REST 接口直接从您的应用程序调用 Dialogflow Detect Intent API。此外,您需要构建自己的 UI 并处理身份验证过程

而简单的过程是使用任何 third-party 工具,例如 Kommunicate where it provides a ready-to-use Swift SDK that already uses pre-configured Dialogflow integration and a dashboard that makes it easy to integrate and build a chatbot. Please check this link 获取更多信息

PS:我为 Kommunicate

工作