POD sent to the customer from Dropbox with an expiring link
When a POD lands in a load folder in Dropbox, this flow checks it and emails the customer a Dropbox link that expires. A POD with problems goes to billing first.
The prompt
When a POD is added to a load folder in our Loads folder in Dropbox, find the load in McLeod by the folder's load number and read the POD: is it signed, and is any shortage, damage or refusal noted. Look up the customer's POD email in our customer contacts Google Sheet by McLeod customer ID. If the POD is signed and clean, create a Dropbox link to it that expires in 30 days and email it to the customer from Gmail with the load number, PO, BOL and where it delivered. Otherwise ask the billing lead in Slack, with Send it to the customer and Hold it buttons, and wait for the answer. If the customer has no POD email in the sheet, tell billing in Slack instead.
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
- New file in a load folder Checks your Loads folder in Dropbox and the load folders inside it every 5 minutes. A PDF or image with POD or proof of delivery in its name is picked up; other files are skipped.
- Find the load in McLeod Looks the load up by the name of the folder the POD is in. A folder that isn't a McLeod load number ends here.
- Read the POD An AI agent reads the POD for the consignee's signature, the signed time, and any shortage, damage or refusal noted on it.
- Find the customer's POD contact Finds the customer's POD email in your contacts sheet in Google Sheets by McLeod customer ID.
- POD signed and clean? A signed POD with nothing noted on it goes straight to the customer.
- Ask the billing lead Anything else goes to the billing lead in Slack with what the POD says, a link to it in Dropbox, and two buttons, Send it to the customer and Hold it.
- Wait for the billing lead's answer The run waits for the click. Send it to the customer carries on to the email. Hold it ends the run and nothing is sent.
- Email the POD to the customer Creates a Dropbox link to the POD that stops working after 30 days and emails it from Gmail with the load number, PO, BOL and where it delivered. A customer with no POD email in the sheet goes to billing in Slack instead.
Before you turn it on
- Connect your Dropbox, Google Sheets, Slack and Gmail accounts, and enter your McLeod server address with an API token, or a user name and password, in the McLeod LoadMaster settings.
- Add your Anthropic key in the flow setting Anthropic key.
- Copy the URL of the block Wait for the billing lead's answer into the flow setting Billing answer link. The Slack buttons open it.
- Make a Google Sheet with the headers Customer ID and POD email in its first tab, one row per McLeod customer, and put its link in the flow setting Customer contacts sheet. Fill Email signature with the sign-off for the email.
- Pick your Loads folder in the block New file in a load folder (/Loads by default), and your billing channel in the two Slack steps.
- Link days sets how long the link works (30 by default). An expiring link needs a Dropbox plan that offers link expiry; set it to 0 for a link that doesn't expire.