Failed payments for recurring (and one-time) invoices should be a Trigger for Automations. There is currently no method for creating Automation Actions based on a failed payment. While an email is sent to some User, this appears to be hard-coded and is not available in Automations.