Custom voice command and response (e.g. with Google or Alexa)?

If you are crafty you can do something like this: [WIP] Google AIY Voice with openHAB. However, the custom commands will only work through the AIY, not when interacting with Google Assistant on your phone. There are equivalent ways to do something similar with Alexa on an RPi.