Carrier quick pay approved in Teams and booked in QuickBooks less the fee
Carriers email quick pay requests. This flow checks the McLeod load and POD, asks AP in Teams, and on approval books the QuickBooks bill with your fee taken off, due today.
The prompt
When a carrier emails our AP inbox in Outlook asking for quick pay, read the carrier, the invoice number, the load or PRO number and the amount. Find the load in McLeod and check that a POD is on file. Look up the carrier in QuickBooks Online and whether its bill for that invoice is already there. Post a card to our AP channel in Microsoft Teams with the agreed carrier pay in McLeod, the POD, our quick pay fee and the net amount, and flag an amount that doesn't match, a sender whose email domain isn't the carrier's in McLeod, and any new bank details, with Approve quick pay and Decline buttons. Wait for AP. If they approve, take the fee off the bill in QuickBooks as its own line and make it due today, or create the bill that way from the McLeod carrier pay if it isn't there yet. Then reply to the carrier with the net amount and confirm in the Teams thread. If AP declines, tell the carrier it will be paid on standard terms.
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 AP inbox Checks your AP inbox in Outlook every 2 minutes for new email.
- Read the request An AI agent decides whether the email asks for quick pay and pulls out the carrier, MC number, invoice number, load, PRO or BOL number, the amount, any fee the carrier names, and whether the email gives new bank details.
- Find the load in McLeod Looks the load up by the first number the email gives. When nothing matches, AP gets a note in Teams to check the number.
- Check the POD is on file Lists the documents on the load and its movements in McLeod Imaging and looks for a POD.
- Work out the quick pay Finds the carrier and any bill with the same invoice number in QuickBooks Online, works out your fee and the net, and flags anything that looks off. A carrier that isn't a QuickBooks vendor, a bill already paid, or a fee already taken off goes to AP in Teams with the reason instead.
- Ask AP in Teams Posts an Adaptive Card to your AP channel with the load, the POD, the McLeod carrier pay, the QuickBooks bill, the fee and the net, any warnings, and two buttons, Approve quick pay and Decline.
- Wait for AP's answer The run waits for the click. Decline replies to the carrier that the invoice will be paid on standard terms.
- Create the bill less the fee Creates the carrier's bill in QuickBooks Online from the McLeod carrier pay and extra pay, with the fee as a negative line and today as the due date. When the bill is already there, Take the fee off the bill adds the fee line to it instead. The carrier gets a reply with the net amount, and the Teams thread a confirmation.
Before you turn it on
- Connect your Outlook, QuickBooks Online 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 AP channel.
- Add your Anthropic key in the flow setting Anthropic key.
- Pick your AP mail folder in the block New email in the AP inbox. Left empty, it watches the Inbox.
- In Teams, open your AP 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 Quick pay fee percent to your fee, for example 3. Put the exact names of your QuickBooks accounts in Carrier pay account (Cost of Goods Sold) and Quick pay fee account (Quick Pay Fees), and change POD document type (POD) if McLeod Imaging files PODs under another type.
- Copy the URL of the block Wait for AP's answer into the flow setting Answer link. The card's buttons open it.