Create a flow for failed deliveries

I am looking for an automated solution to receive a notification of some sort when a shipment is not delivered within a certain time period. Is it possible to create a flow within Shopify that allows for this, driven by the tracking info provided?