Hyperian
Hyperian

Reputation: 139

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

I have various smart devices where if you say "turn off lights", it will just turn off my smart lights.

I'm learning to make my own agent on dialogflow but to run my test app in the simulator, I always have to type in "talk to my test app" first. Then subsequent operations are fine.

How do I deploy an agent where I can get it to skip the "talk to my test app" step? I would like to be able to access my agent without a trigger phrase.

Upvotes: 1

Views: 37

Answers (1)

Prisoner
Prisoner

Reputation: 50701

If you are developing a Smart Home Action you should not be using Dialogflow. Dialogflow is one way to handle the Natural Language Understanding (NLU) for a Conversational Action.

Smart Home Actions have the NLU taken care of by Google directly. Instead, you should be defining the device types and traits those devices have. You'll then need to create a webhook that handles specific intents for your device:

  • SYNC - return what devices the user has
  • QUERY - return the state of devices
  • EXECUTE - change the device/trait state
  • DISCONNECT - unregister a device

Upvotes: 1

Related Questions