"Alexa, I'm leaving."

Yes, you can set Alexa guard in the Alexa app. It will only work if the alarm is set to away.