Delivery exception alerts in Slack, logged to a spreadsheet
When a package hits a delivery exception, your shipping team gets an instant Slack alert with the reason and next step, plus a running log to spot patterns.
When an EasyPost tracker webhook fires because a package tracking status changed (the tracker.updated event), first check the new status. Only continue if the status is an exception, error, failure, or return_to_sender style status. Ignore normal pre-transit, in-transit, out-for-delivery, and delivered updates so the team is never pinged for routine movement.
For a qualifying exception, use EasyPost Retrieve Tracker to pull the full tracker detail by its id. Read the tracking status, the status detail, and the tracking history to work out what went wrong (for example a failed delivery attempt, a bad or undeliverable address, damage, a customs hold, or a return to sender) and where the package last scanned. Decide one concrete recommended next step for the ops team, such as contacting the carrier, correcting the address, or reaching out to the customer.
Post a concise alert to our shipping-ops Slack channel with the Slack Bot Send a Message action. Name the carrier, the tracking number, the exception reason in plain language, where the package last scanned, and the recommended next step. Keep it to a few scannable lines.
Also log the incident to our running Delivery Exceptions Google Sheet with the Append Values action, adding a new row that records the date, tracking number, carrier, status, and reason. This running log lets us spot recurring problems, like a carrier or lane that keeps failing.
Additional information
What does this prompt do?
- Watches your EasyPost tracking for packages that hit a delivery exception, error, failure, or return to sender.
- Works out what went wrong (bad address, failed delivery attempt, damage, customs hold, or return to sender) and where the package last scanned.
- Posts a clear alert to your shipping-ops Slack channel with the carrier, tracking number, reason, and a recommended next step.
- Logs every incident to a Delivery Exceptions spreadsheet so you can spot recurring problems.
What do I need to use this?
- An EasyPost account that tracks your shipments.
- A Slack workspace with a channel for your shipping team.
- A Google Sheets spreadsheet to keep the running exceptions log.
How can I customize it?
- Choose which exception statuses trigger an alert, for example only return to sender or customs holds.
- Change the Slack channel, or the wording and level of detail in the alert.
- Adjust which columns get recorded in your spreadsheet log.
Frequently asked questions
What counts as a delivery exception?
Will normal tracking updates spam my team?
Which carriers does this work with?
Do I need to build the spreadsheet first?
Can it alert more than one channel?
Related templates
Stop letting delivery exceptions slip through.
Get an instant Slack alert and a running log every time a shipment goes off track, so nothing quietly rots in a customer's inbox.