USPS delivery alerts and returns routed to support
When USPS flags a delivery problem or returns a package, support gets the order, the tracking, an address recheck and reship prices in Slack, and picks reship, contact or refund.
The prompt
When RevAddress tells us USPS raised a delivery alert on a package or is returning one to us, pull the full tracking history and find the shipment in ShipStation by its tracking number. Check the ship-to address again with RevAddress and get USPS prices for a reship from our warehouse ZIP Code. Post it all to our support channel in Slack, with the order, the customer, the tracking events, the address check and the reship prices, and three buttons: Reship, Contact the customer and Refund. If support picks Reship, create a copy of the order in ShipStation awaiting shipment to the standardized address. For the other two, say in the thread what to do next. If no shipment matches the tracking number, send the alert to support as it is.
FlowRunner Prompt to Flow built this flow from that request. Here it is as it opens in the editor.
The flow
Download the file, then in FlowRunner click + beside Flows, pick it under Import a Flow Version and click Create. How importing works
What each step does
- Delivery alert or return Starts the moment RevAddress reports a USPS delivery alert, such as a delivery exception, or a package on its way back to you.
- Read the tracking history Track Package pulls the package's current status and its tracking events.
- Find the shipment in ShipStation Finds the shipment by its tracking number, with its order, ship-to address, weight and ship-from location. When no shipment matches, the alert goes to support in Slack as it is.
- Recheck the address Validate Address checks the ship-to address again, since a return often traces back to the address.
- Quote the reship Get Domestic Rates prices a reship from your ship-from location to the customer's ZIP Code, with delivery days per mail class.
- Ask customer support Posts the order, the customer, the tracking history, the address check and the reship prices to Slack, with three buttons: Reship, Contact the customer and Refund.
- Wait for support's answer The run waits for the click. Reship creates a copy of the order in ShipStation, awaiting shipment, to the address as RevAddress standardized it. Contact the customer and Refund leave the order as it is and say in the thread what to do next.
Before you turn it on
- Enter your RevAddress API key and your ShipStation API key and API secret, and connect your Slack account.
- The tracking triggers need a RevAddress Starter plan or higher with webhook delivery enabled on the account. RevAddress tracks USPS packages only, and Validate Address checks US addresses.
- Copy the URL of the block Wait for support's answer into the flow setting Answer link. The Slack buttons open it.
- Pick your support channel in Ask customer support, Send the alert to support as is, Confirm the reship, Note: contact the customer and Note: refund the order.
- A reship goes into ShipStation's Manual Orders store as the original order number with -R added, with the original carrier and service.