I know this is late for your use, but I just found all the bits I needed to accomplish this task, and have documented it on reddit. Posting here for anyone in the future who might find it helpful.
It’s easy to modify the action to do whatever you need by creating different URLs with /StatusHook.