FlowRunner
Features Pricing
Theme
Start Free

Detention and lumper claims checked, approved and booked in QuickBooks

Carriers email lumper receipts and detention claims. AI checks the receipt supports the amount, your AP lead decides in Slack, and the charge is booked and billed in QuickBooks.

The prompt

When a carrier emails a lumper receipt or a detention claim to our AP inbox in Gmail, read it and pull out the carrier, load number, claim number and amount, and check that the receipt or the in and out times support that amount. Find the carrier in QuickBooks Online, find the customer invoice for the same load, and skip the claim if it's already a bill. Ask the AP lead in Slack with what the receipt shows and three buttons: Book and bill the customer, Book only, and Reject. On approval, create the carrier bill with the receipt attached. If it's billable and the customer's invoice for the load has no payment on it yet, add the charge to that invoice with the receipt attached. Otherwise tell billing to bill it separately.

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

The flow

No Yes Yes No No Yes No Yes Yes Action Tell AP it's aduplicate Code Write the question forthe AP lead Action Tell billing it's onthe invoice AI agent Read the claim Action Tell billing to billit separately Code Prepare the bill andinvoice lines Action Attach the receiptto the bill Action Add the charge tothe invoice Condition Carrier inQuickBooks? Condition Already entered? Action Find the carrierin QuickBooks Condition Book it? Action Find the load'sinvoice Asks a person Ask the AP lead Asks a person Wait for the AP lead'sanswer Action Find theaccessorial item Action Attach the receiptto the invoice Action Confirm the claimis rejected Action Save the receipt Action Create the bill Action Tell AP the carrieris missing Condition Invoice still open? Action Check for aduplicate bill Condition Bill the customer? Starts the flow New detention orlumper email

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 detention or lumper email Checks the AP inbox in Gmail every 5 minutes for an email with an attachment and detention or lumper in the subject.
  2. Read the claim An AI agent reads the receipt or claim for the carrier, load number, claim number and amount, and works out what the document itself supports: the lumper receipt total, or the time on site past free time at the stated rate.
  3. Find the load's invoice Finds the carrier in QuickBooks Online and the customer invoice for the same load, by invoice number or the Load # custom field, and checks whether it has a payment on it yet.
  4. Check for a duplicate bill Looks for a bill with the same claim number. A claim that is already entered is skipped and AP is told in Slack.
  5. Ask the AP lead The AP lead gets the amount, what the document shows, whether it supports the amount and where the customer invoice stands, with three buttons: Book and bill the customer, Book only, and Reject.
  6. Wait for the AP lead's answer The run waits for the click. Reject enters nothing and says so in the Slack thread.
  7. Create the bill Book only and Book and bill the customer both create the carrier bill for the claimed amount, with the receipt attached.
  8. Add the charge to the invoice For Book and bill the customer, the charge goes onto the customer's invoice for the load with the receipt attached, so the receipt goes out with the invoice. If that invoice already has a payment or isn't in QuickBooks, billing is told in Slack to bill the charge separately.

Before you turn it on

  • Connect your Gmail, QuickBooks Online and Slack accounts.
  • Add your Anthropic key in the flow setting Anthropic key, and set Accessorial item name to the QuickBooks product or service you buy and bill detention and lumper under. It needs both sales and purchasing information.
  • 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 six Slack steps, and narrow the Gmail search to your AP inbox if it shares a mailbox.