Workflow to place down devices into maintenance mode...

Workflow to place down devices into maintenance mode...

I have just set up my alerting scenarios in OpManager for my devices. I would like to set up a workflow to run after a critical alarm has been sent. By this point, i would already have been alerted 3 times via MS Teams, Email, and finally VictorOps. 

Is there a way to set up a workflow that will automatically place the down device into maintenance mode automatically? 

Would just a generic workflow for a down device be good enough for my use case?

thx