Scanned load paperwork in Dropbox filed on the McLeod load
Scans and driver photos land in a Dropbox folder. This flow reads each one, files it on the McLeod load and moves it into a Dropbox folder named by load number.
The prompt
When a new file lands in our Scans folder in Dropbox, whether it's from the office scanner or a photo a driver uploads, read it. Tell me whether it's a rate con, BOL, POD, carrier invoice, lumper receipt or other load paperwork, and pull out the load number, PRO and BOL. Find the load in McLeod. If it matches, file the document on the load in McLeod Imaging under the right document type, then move the file into the load's folder in our Loads folder, named with the load number and the document type, like 0451873 POD.pdf. If it isn't a PDF or an image, has no load number, or McLeod has no such load, move it to a Needs review folder and tell ops in Slack why.
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 scan in Dropbox Checks your scan folder in Dropbox every 5 minutes for new files, such as paperwork from the office scanner or photos drivers upload from the Dropbox app.
- Read the paperwork Each PDF or image is downloaded, and an AI agent says whether it's a rate con, BOL, POD, carrier invoice, lumper receipt or other load paperwork, and reads the load number, PRO and BOL.
- Find the load in McLeod Looks the load up by load number, or by PRO or BOL when the load number is missing.
- File it on the load in McLeod Adds the file to the load in McLeod Imaging under the document type you set for that kind of paperwork.
- Move it to the load folder Moves the original out of the scan folder into the load's folder in Dropbox, named with the load number and the document type, such as 0451873 POD.pdf.
- Move it to Needs review A file that isn't a PDF or an image, has no load number, or matches no McLeod load moves to a Needs review folder inside the scan folder instead.
- Tell ops Ops gets a Slack message saying what the file reads as and why it wasn't filed, with a link to the Needs review folder.
Before you turn it on
- Connect your Dropbox and Slack 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.
- Pick your scan folder in the block New scan in Dropbox (/Scans by default), and set the flow setting Loads folder to the Dropbox folder that holds one folder per load (/Loads by default).
- Set McLeod document types to the McLeod Imaging document type IDs your team files a rate con, BOL, POD, carrier invoice, lumper receipt and other paperwork under.
- Pick your ops channel in Tell ops.