简体   繁体   English

无法使用对话流获取 Google Home 设备 ID

[英]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.

相关问题 在Dialogflow填充挂钩中获取唯一的Google Home用户ID /设备ID - Get Unique Google Home user id/ device Id in Dialogflow Fullfillment Hook 如何在node.js中使用google dialogflow的OriginalDetectIntentRequest api获取来电者的来电显示 - How to get the caller ID of caller using OriginalDetectIntentRequest api of google dialogflow in node.js 我们可以在dialogflow中从Google Home请求主体解密用户ID吗? - Can we decrypt user id from google home request body in dialogflow? 如何使用dialogflow实现来获取设备的精确位置 - how to get device precise location using dialogflow fulfillment Google Home App Development本地设备访问 - Google Home App Development local device access 快速退货无法获取/ home - express returns Cannot GET /home Google Home操作的唯一用户ID不是唯一的 - Unique User id for Google Home actions is not unique 无法使用Dialogflow Android客户端从dialogflow Webhook访问SimpleResponse。 无法获得有效载荷 - Cannot access SimpleResponse from dialogflow webhook using Dialogflow Android Client. Cant acess Payload Dialogflow的Fullfilment逻辑无法获取Google帐户信息 - Dialogflow's Fullfilment logic can not get Google account information 使用Google Home和NodeJS设置一个非常简单的“开启设备”功能? - Setting up a very simple “turn on device” with Google Home and NodeJS?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM