Parsed BOL filed on the Turvo load
Parseur reads each BOL. The flow finds the Turvo load by BOL number or PO, attaches the BOL with its pieces and weight, and flags a shipper or consignee that doesn't match.
The prompt
When Parseur finishes reading a BOL in our BOL mailbox, pull out the BOL number, PO numbers, shipper, consignee, piece count, weight and anything noted on it. Find the load in Turvo by the BOL number, and if that finds nothing, by the first PO number. If neither matches, post the BOL to Slack so ops can file it by hand. Otherwise attach the BOL to the load with the pieces, weight and POs in its description. If the shipper or consignee city on the BOL doesn't match the load's pickup or delivery, or something is written on the BOL, tell ops in Slack.
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
- BOL parsed in Parseur Starts the moment Parseur finishes reading a BOL forwarded to your BOL mailbox.
- Read the parsed BOL An AI agent reads Parseur's fields by meaning and pulls out the BOL number, PO numbers, shipper, consignee, piece count, weight and any exception written on the BOL.
- Find the load by BOL number Looks the load up in Turvo by the BOL number.
- Find the load by PO number When the BOL number finds nothing, tries the first PO on the BOL. When neither matches, the BOL goes to ops in Slack with a link to the file.
- Attach the BOL to the load Files the BOL on the load in Turvo as its bill of lading, with the piece count, weight and PO numbers in the description.
- BOL matches the load? Checks the shipper's city and state against the first pickup, the consignee's against the last delivery, and whether anything is written on the BOL. A clean BOL ends here.
- Flag the BOL to ops Anything else goes to ops in Slack: the load, what differs, what the BOL says and a link to it.
Before you turn it on
- Enter your Parseur API key and your Turvo API key, client ID and client secret, and connect your Slack account.
- Pick your BOL mailbox in the Parseur trigger, and make sure the OriginalDocument metadata field is turned on in that mailbox so the flow gets a link to the file.
- Add your Anthropic key in the flow setting Anthropic key.
- Pick your ops channel in the two Slack steps.