How to fetch device location using API AI?

后端 未结 5 985
情歌与酒
情歌与酒 2021-01-05 00:56

I am using GUI tools provided by API AI to create Actions. Is it possible to fetch device location? I have heard that this is possible by requesting permissions. Is this doc

5条回答
  •  离开以前
    2021-01-05 01:08

    Yes, it's possible to fetch device location and some other bits of info (name) after the user gives permission.

    It's already documented well by google, so I don't think it's necessary for me to repeat it here.

    If the question is whether it's possible to get the location information without a custom webhook implementation that's called through API.AI's fulfillment, then the answer is no: API.AI itself does not natively provide this capability, you need to use API.AI's extension mechanism, that is, a webhook.

提交回复
热议问题