Carriers on active McLeod loads rechecked at FMCSA every week
Once a week this flow checks every carrier on an open McLeod load at FMCSA, compares it with last week's reading in a Google Sheet, and sends any change to the compliance lead.
The prompt
Every Monday morning, list the loads in McLeod that are in progress or available and find the carrier on each one. Look each carrier up at FMCSA by name once, even if it's on several loads, and check whether it's allowed to operate, its authority, the liability, cargo and bond insurance it has on file, and any out-of-service orders. Compare that with last week's results in our carrier check Google Sheet, then add this week's results to the sheet. If anything changed, or a carrier can't be matched at FMCSA by name, tell our carrier compliance lead in Slack with the carrier's loads and the old and new readings.
FlowRunner Prompt to Flow built this flow from that request. Here it is as it opens in the editor.
The flow
Inside the loop: For each carrier
Inside the loop: For each open load
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 loads in progress Runs once a week and lists the McLeod loads in progress, then the available ones.
- Get the load Reads each open load and notes the carrier on each movement. A carrier on several loads is checked once, with all its loads listed.
- Find the carrier at FMCSA Searches FMCSA for the carrier's McLeod name. Only one carrier with exactly that legal or DBA name counts as a match.
- Check out-of-service orders Reads the out-of-service orders for the matched USDOT number, next to FMCSA's operating status, authority and the liability, cargo and bond insurance on file.
- Read last week's results Reads the carrier check sheet, where each carrier's latest row is last week's reading.
- Compare with last week Finds every carrier whose operating status, authority, insurance on file or out-of-service orders changed, and every carrier seen for the first time that has a problem or can't be matched by name.
- Save this week's results Adds a dated row for each carrier, so the sheet keeps every week's reading.
- Tell the carrier compliance lead Anything that changed goes to the compliance lead in Slack with the carrier, its loads, and the old and new readings. A week with no changes sends nothing.
Before you turn it on
- Enter your McLeod server address and API token, or a user name and password, in the McLeod service settings, and your FMCSA web key in the FMCSA service settings. The key is free: sign in at mobile.fmcsa.dot.gov/QCDevsite with Login.gov and open My WebKeys.
- Make a Google Sheet for the results with this header row: Checked, Carrier ID, Carrier, USDOT, FMCSA match, Allowed to operate, Authority, Insurance on file, Cargo insurance on file, Bond on file, Out of service, Active loads. Put its ID in the flow setting Carrier check sheet, and the tab's number (after gid= in its URL) in the flow setting Carrier check tab ID if it isn't 0.
- The flow finds each carrier at FMCSA by the name McLeod has for it, so keep carrier names in McLeod the same as their FMCSA legal or DBA names.
- Connect your Google Sheets and Slack accounts, and pick the compliance lead's channel in the Slack step.
- The flow has no trigger. After you import it, schedule it to run once a week, for example Monday at 7 AM.