部署 DialogFlow 而不要求它首先进入你的行动?

Deploying DialogFlow without asking it to go into your action first?

我有各种智能设备,如果你说 "turn off lights",它只会关闭我的智能灯。

我正在学习在 dialogflow 上制作我自己的代理,但是要 运行 我在模拟器中的测试应用程序,我总是必须先输入 "talk to my test app"。然后后面的操作就可以了

如何部署代理以跳过 "talk to my test app" 步骤?我希望能够在没有触发短语的情况下访问我的代理。

如果您正在开发 Smart Home Action you should not be using Dialogflow. Dialogflow is one way to handle the Natural Language Understanding (NLU) for a Conversational Action

智能家居操作让 NLU 直接由 Google 负责。相反,您应该为您的设备定义 device types and traits those devices have. You'll then need to create a webhook that handles specific intents

  • SYNC - return 用户拥有哪些设备
  • 查询 - return 设备状态
  • EXECUTE - 改变 device/trait 状态
  • DISCONNECT - 注销设备