Easyship end-of-day manifests checked and posted to Slack
Before the courier cutoff, every labeled Easyship parcel goes on its courier's manifest, the counts are checked, and your ops channel gets the manifests in Slack.
The prompt
Every day before the courier cutoff, look at the shipments created in Easyship over the last 24 hours and keep the ones with a label. Group them by courier and create an Easyship manifest for each courier with exactly those shipments. Check that every parcel made it onto its manifest. Then post to our ops channel in Slack: how many parcels, a link to each courier's manifest, any courier whose manifest is short or failed, and how many shipments still have no label.
FlowRunner Prompt to Flow built this flow from that request. Here it is as it opens in the editor.
The flow
Inside the loop: Read every page of shipments
Inside the loop: Manifest each courier
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
- List the day's shipments Reads every Easyship shipment created in the last 24 hours, page by page.
- Group labeled parcels by courier Keeps the shipments whose label is ready and groups them by courier. Shipments still waiting on a label are counted and left off.
- Create the manifest Creates one Easyship manifest per courier with exactly that courier's parcels. If Easyship refuses a manifest, the run carries on with the other couriers and reports the refusal.
- Check every parcel is on it Compares the parcel count on each manifest with the number of labeled parcels for that courier.
- Post the handover to ops Posts one Slack message with the parcel count, each courier's manifest link, any courier that came up short or failed, and how many shipments still have no label.
Before you turn it on
- Enter your Easyship API token.
- Connect your Slack account and pick your ops channel in Post the handover to ops.
- Schedule the flow to run once a day shortly before your courier cutoff. Change the flow setting Hours to look back if you run it more or less often.