Search code examples
actions-on-googleapi-ai

How to get user information without client library in API.AI webhook?


I'm developing a simple app with Google Assistant and API.AI. I would like to get access to user's location. According to documentation, I have to ask for a permission. But the documentation states it's only possible with a NodeJS client library. My webhook is in Java, can I do that somehow?


Solution

  • Now there is an Unofficial Kolin/Java SDK for actions on google which will do everything that the offical SDK can do. The api is very similar, so the official examples and docs can assist you.
    https://github.com/TicketmasterMobileStudio/actions-on-google-kotlin