FlowRunner
Features Pricing
Theme
Start Free

Carrier invoice checked against McLeod carrier pay, then booked in QuickBooks

Carriers email invoices to AP. This flow checks each line against the agreed carrier pay and extra pay in McLeod, books a match as a QuickBooks bill, and sends variances to your AP lead.

The prompt

When a carrier emails an invoice to our AP inbox in Gmail, read the PDF and pull out the carrier, invoice number, order number, PRO, dates, total and each charge. Find the load in McLeod and compare the invoice with the agreed carrier pay and the extra pay entered on the movement. Every accessorial like detention or lumper has to match an extra pay line, and the total has to match to the cent. If it matches, create the bill in QuickBooks Online with the carrier's invoice number, attach the PDF and file a copy on the movement in McLeod. If it doesn't, ask the AP lead in Slack with both sets of numbers and the stop times, with Book it and Hold it buttons, and wait for the answer. Skip a bill that's already in QuickBooks, and tell AP in Slack when the load or the carrier can't be found.

FlowRunner Prompt to Flow built this flow from that request. Here it is as it opens in the editor.

The flow

No Yes No Yes Action Attach the invoiceto the bill Code Compare with theagreed carrier pay Action Check for aduplicate bill Starts the flow New carrierinvoice email Action Find the carrierpay account Action Confirm theinvoice is held Action Tell AP why itwasn't booked Asks a person Ask the AP lead Action Find the carrierin QuickBooks Action Create the bill AI agent Read the carrierinvoice Action Find the load inMcLeod Action Tell AP the loadisn't in McLeod Asks a person Wait for the AP lead'sanswer Condition Book it? Condition What happens to theinvoice? Action Save the carrierinvoice Condition Load found? Action File the invoice onthe movement

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

  1. New carrier invoice email Checks the AP inbox in Gmail every 5 minutes for an email with an attachment and invoice in the subject.
  2. Read the carrier invoice An AI agent reads the PDF and pulls out the carrier, invoice number, order number, PRO, dates, total and every charge, sorted into linehaul, fuel, detention, lumper, layover, TONU and other.
  3. Find the load in McLeod Looks the load up by order number, PRO or bill of lading. When nothing matches, the invoice goes to AP in Slack and nothing is booked.
  4. Compare with the agreed carrier pay Checks the invoice against the movement's agreed carrier pay and each extra pay line in McLeod: the same carrier, linehaul and total to the cent, and every accessorial matched to extra pay. A bill already in QuickBooks, or a carrier QuickBooks doesn't have, goes to AP in Slack instead.
  5. Create the bill A match becomes a QuickBooks Online bill with the carrier's invoice number, one line per charge and the PDF attached.
  6. File the invoice on the movement A copy of the carrier's invoice is filed on the movement in McLeod Imaging, so the load's paperwork stays in one place.
  7. Ask the AP lead A variance goes to the AP lead in Slack with the billed and agreed amounts, how each line matched, the stop times McLeod recorded for checking detention, and two buttons, Book it and Hold it.
  8. Wait for the AP lead's answer The run waits for the click. Book it enters the bill as the carrier billed it, with the PDF attached. Hold it keeps the invoice out of QuickBooks and says so in the Slack thread.

Before you turn it on

  • Connect your Gmail, QuickBooks Online and Slack accounts, and enter your McLeod server address and API token, or a user name and password, in the McLeod LoadMaster settings.
  • Add your Anthropic key in the flow setting Anthropic key, and set Carrier pay account to the QuickBooks account your carrier bills are booked to.
  • Set Carrier invoice document type to the McLeod Imaging document type your team files carrier invoices under. The carrier is found in QuickBooks by its name in McLeod, so keep the vendor names the same.
  • Copy the URL of the block Wait for the AP lead's answer into the flow setting Answer link. The Slack buttons open it.
  • Pick your Slack channel in the four Slack steps, and narrow the Gmail search to your AP inbox if it shares a mailbox.