Right now there is no way to integrate automations directly into 3rd party services . However, you can implement a virtual device and change the code in a way which changes the state of the device in a way that corresponds to your automation .
You can make use of the following documentation for creating a virtual device and making use in creating automation.