'How to know when user unlinked google assistant actions?

I would like to handle unlinked user in backend. How can I know when user unlinked the actions in Assistant Directory?



Solution 1:[1]

Your answer can be solved through the action.devices.DISCONNECT intent. This intent is triggered to inform you when a user has unlinked their device account from Google Assistant, you can also check the official documentation from Google at https://developers.google.com/assistant/smarthome/reference/intent/disconnect?hl=en in order to get a detailed clarification. If you need information about the request & response syntax in Node.js & Java as well (& not just JSON syntax) refer to the following link, https://developers.google.com/assistant/smarthome/develop/process-intents?hl=en#unlink

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1