FlowRunner
Features Pricing
Theme
Start Free

Carrier invoice that doesn't match the rate con becomes a Zendesk ticket

Each emailed carrier invoice is checked against the rate con you sent for the same load. A match gets labeled. A mismatch becomes a ticket for AP with both sets of numbers.

The prompt

When a carrier emails an invoice to our AP inbox in Gmail, read it and pull out the load number, PRO, carrier, invoice number, total and every charge. Find the rate con we sent for that load in our sent mail by load number and compare the two charge by charge, including detention, lumper, layover and TONU. If they match, label the email Matched to rate con. If they don't, or there's no rate con to check, open a Zendesk ticket for AP with both sets of numbers, what differs and links to both emails, and label the invoice Invoice exception. AP decides what to pay.

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

The flow

Yes No Yes No Condition Rate con found? Action Save the rate con Action Label the invoicematched AI agent Compare the invoicewith the rate con Action Find the rate conin sent mail Starts the flow New carrierinvoice email Code Write the ticket forAP Action Save the carrierinvoice AI agent Read the carrierinvoice Condition Invoice matches therate con? Action Open the exceptionticket for AP Action Label the invoiceheld for AP

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 incoming email with an attachment and invoice in the subject.
  2. Read the carrier invoice An AI agent reads the saved PDF and pulls out the load number, PRO, carrier, invoice number, total, and every charge from linehaul and fuel to detention, lumper and TONU.
  3. Find the rate con in sent mail Searches the mailbox's sent mail for the rate con you sent for that load, by load number. When there is no load number or no rate con, the invoice goes straight to AP as a ticket.
  4. Compare the invoice with the rate con A second AI agent reads the rate con and compares it with the invoice charge by charge, and works out the difference and what was billed that the rate con doesn't cover.
  5. Invoice matches the rate con? An invoice that matches the rate con in total and in every charge is labeled Matched to rate con in Gmail, ready for AP to enter.
  6. Open the exception ticket for AP Anything else becomes a Zendesk ticket for AP, tagged carrier_invoice, with the invoice and rate con totals and charges, the difference, what differs, and links to both emails. The invoice email is labeled Invoice exception.

Before you turn it on

  • Connect the Gmail account your team sends rate cons from and receives carrier invoices in, and enter your Zendesk subdomain, agent email and API token.
  • Add your Anthropic key in the flow setting Anthropic key.
  • In Open the exception ticket for AP, pick your AP group or the agent who handles carrier invoices.
  • Narrow the Gmail search in New carrier invoice email if the mailbox gets invoices that are not from carriers.