TONU and layover claims checked against McLeod and approved in Teams
Carriers email TONU and layover claims. This flow checks the McLeod load and stop times, asks your ops manager in Teams, then pays the carrier and bills the customer in McLeod.
The prompt
When a carrier emails a TONU or layover claim to our carrier inbox in Outlook, read the carrier, the load or PRO number, the amount and, for a layover, the nights. Find the load in McLeod. For a TONU, check the load's status and whether the truck reached or left the pickup. For a layover, look for a stop where the truck arrived on time and left on a later day. If McLeod already has that pay or charge on the load, tell ops in Teams and stop. Otherwise post a card to our ops channel in Microsoft Teams with what McLeod shows, the claimed amount, our standard carrier pay and the customer charge, with Pay and bill it and Deny buttons, and wait for the ops manager. If they approve, add the carrier's extra pay and the customer's charge to the load in McLeod, reply to the carrier and confirm in the Teams thread.
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 email in the carrier inbox Checks your carrier inbox in Outlook every 2 minutes for new email.
- Read the claim An AI agent decides whether the email claims a TONU or a layover and pulls out the carrier, invoice number, load, PRO or BOL number, the amount, the nights and the reason.
- Find the load in McLeod Looks the load up by the first number the email gives. When nothing matches, ops gets a note in Teams to check the number.
- Check the claim against McLeod For a TONU, reads the load's status and whether the truck arrived at or left the pickup. For a layover, finds the stop the truck left on a later day than it arrived and counts the nights. It flags a different carrier on the load, a sender outside the carrier's email domain, a late arrival and a claim above your standard.
- Not on the load yet? A load that already has the TONU or layover pay or charge gets a note to ops in Teams, and nothing is added twice.
- Ask the ops manager Posts an Adaptive Card to your ops channel with the claim, what McLeod shows, the carrier pay and the customer charge, and two buttons, Pay and bill it and Deny.
- Wait for the ops manager's answer The run waits for the click. Deny adds nothing and says so in the Teams thread, and the ops manager answers the carrier.
- Pay the carrier in McLeod Adds the claimed amount, or your standard when the carrier names none, to the carrier's extra pay. Bill the customer in McLeod then adds your customer charge to the load, the carrier gets an approval reply, and the Teams thread a confirmation.
Before you turn it on
- Connect your Outlook and Microsoft Teams accounts, and enter your McLeod server address and API token, or a user name and password, in the McLeod LoadMaster settings. The Teams card is posted as the connected account, so it must be a member of the ops channel.
- Add your Anthropic key in the flow setting Anthropic key.
- Pick the mail folder carriers send claims to in the block New email in the carrier inbox. Left empty, it watches the Inbox.
- In Teams, open your ops channel's menu and choose Get link to channel. Put the groupId value from the link in the flow setting Teams team ID, and the part after /channel/ in Teams channel ID, written as 19:[email protected] (%3a is a colon and %40 is @).
- Set TONU carrier pay, TONU customer charge, Layover carrier pay per night and Layover customer charge per night to your terms, and change TONU pay code (TONU), TONU charge code (TONU), Layover pay code (LAY) and Layover charge code (LAY) to the codes on your McLeod server.
- Copy the URL of the block Wait for the ops manager's answer into the flow setting Answer link. The card's buttons open it.