Coffee can be set as assist app (Device settings => Apps => Default apps => Assist app) and changes it's state when assist is called.
