I’m not sure I understand your question. This is a button controller device type, it can already be used for routines or IFTTT recipes (via a virtual switch).
Just have the toggle (button press) turn on a virtual switch, then have the virtual switch tied to a routine, or use that switch as the “if” in an IFTTT recipe.
If you don’t know how to create a virtual switch, see the following FAQ.
If you don’t know how to use a virtual switch to start a routine, Alexa Helper is a good smartapp for this. (If it seems too complicated, there are simpler ones in the Marketplace section of the mobile app under lights and switches.)
To assign a specific toggle to the virtual switch, just use Smart Lighting.