---
title: "Carrier invoice that doesn't match the rate con becomes a Zendesk ticket | FlowRunner flow"
description: "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."
url: https://flowrunner.ai/flows/zendesk-carrier-invoice-exception-ticket
date_published: 2026-11-18
date_modified: 2026-11-18T16:18:59-08:00
---

# 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

[Import this flow](https://flowrunner.ai/downloads/prompt-to-flow/zendesk-carrier-invoice-exception-ticket.json)

-   [Zendesk](https://flowrunner.ai/integrations/zendesk)
-   [Gmail](https://flowrunner.ai/integrations/gmail-service)

Download the file, then in FlowRunner click + beside Flows, pick it under Import a Flow Version and click Create. [How importing works](https://docs.flowrunner.ai/manage/flows#importing-a-flow)

## 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.

## Need a custom carrier invoice audit automation? Our team can build it for you.

Tell us the process. Our implementation team at Midnight Flow builds it around how you work, tests it on your real data, and keeps it running, in your own FlowRunner workspace.

[Have us build it](https://midnightflow.ai/packages/custom?utm_source=flowrunner.ai&utm_medium=referral&utm_campaign=general&utm_content=flows.aside&utm_term=zendesk-carrier-invoice-exception-ticket)

## 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.

[Everything FlowRunner does with Zendesk](https://flowrunner.ai/integrations/zendesk)

---
Markdown version of https://flowrunner.ai/flows/zendesk-carrier-invoice-exception-ticket. Site index: https://flowrunner.ai/llms.txt
