[英]Cannot get the google home device id using dialogflow
I tried using the inbuild inline code editor, ( https://www.npmjs.com/package/actions-on-google ) with that I am able to get the device id and other attributes like location etc. Using dialogflow npm library ( https://www.npmjs.com/package/dialogflow ) i cant able to get the google home device id.我尝试使用内置的内联代码编辑器( https://www.npmjs.com/package/actions-on-google ),我能够获取设备 ID 和其他属性,如位置等。使用 dialogflow npm 库( https://www.npmjs.com/package/dialogflow )我无法获得谷歌家庭设备 ID。
I tried a sample and added here, which is on inline code editor from dialogflow ( https://github.com/AshwinAchu10/google-home-location )我尝试了一个示例并在此处添加,它位于 dialogflow 的内联代码编辑器上( https://github.com/AshwinAchu10/google-home-location )
I want to know if there is a way to get the device id from using the Dialogflow npm library.我想知道是否有办法通过使用 Dialogflow npm 库来获取设备 ID。 I hardly believe there should be a API to request permission and get the device id
我几乎不相信应该有一个 API 来请求许可并获取设备 ID
Any idea on how to do this?关于如何做到这一点的任何想法?
Our primary target is to order food using Google home, in that case, we need to fetch the google home unique id and its location.我们的主要目标是使用 Google home 订购食物,在这种情况下,我们需要获取 google home 的唯一 ID 及其位置。
The reason why you are unable to retrieve the Google Home device ID using the Dialogflow npm package is because, the Dialogflow package is intended for building chatbots for any kind if integration using Dialogflow, so it doesn't support features that are specific to Google Assistant. The reason why you are unable to retrieve the Google Home device ID using the Dialogflow npm package is because, the Dialogflow package is intended for building chatbots for any kind if integration using Dialogflow, so it doesn't support features that are specific to Google Assistant . If you wish to create any Actions specifically for Google Assistant or use properies in code for the Google Assistant it is recommended to use the actions on google package.
如果您希望专门为 Google 助理创建任何操作或在代码中为 Google 助理使用属性,建议使用 google package 上的操作。
The actions on google npm package contains a dialogflow integration, so this makes it possible to easily use the actions on google npm package together with Dialogflow. The actions on google npm package contains a dialogflow integration, so this makes it possible to easily use the actions on google npm package together with Dialogflow.
There is no way to get the individual device ID that is making the request.无法获取发出请求的单个设备 ID。 If you want to support food ordering, you should use the appropriate APIs to do location requesting.
如果你想支持点餐,你应该使用适当的 API 来进行位置请求。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.