Carrier invoices without a POD to Freshdesk POD requests
When a carrier bills a load without a signed POD, this flow checks the mailbox for one, and if none is there, asks the carrier for it from a Freshdesk ticket and puts the invoice on hold.
The prompt
When a carrier invoice arrives in our AP inbox in Gmail, read the attached invoice and pull out the load number, PRO, invoice number, carrier and amount, and whether a signed POD came with it. If there's no POD, search the mailbox for a POD on that load. If one is there, tell AP in Slack. If not, open a pending Freshdesk ticket with the carrier as requester, reply on it asking the carrier for the signed POD, and tell AP in Slack that the invoice is on hold and which ticket the POD will come back on.
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 carrier invoice email Checks the AP inbox in Gmail every 5 minutes for an email with an attachment and invoice or freight bill in the subject.
- Read the carrier invoice An AI agent reads the attached invoice and the email, pulls out the load number, PRO, invoice number, carrier and amount, and checks whether a signed POD came with it.
- Carrier invoice without a POD? An invoice that arrived with its POD goes no further here.
- Look for the POD in the mailbox Searches the mailbox for an email with attachments that mentions the load and a POD, proof of delivery or delivery receipt. When one turns up, AP gets a Slack message with a link to it.
- Open a POD request ticket Opens a pending Freshdesk ticket with the carrier as requester, tagged pod-missing, with the invoice details and a link to the carrier's email.
- Ask the carrier for the POD Replies on the ticket, which emails the carrier asking for the signed POD for that load. Their answer lands on the ticket.
- Tell AP the invoice is on hold Tells AP in Slack that the invoice is on hold for a POD, with the carrier, load, amount and ticket number.
Before you turn it on
- Connect your Gmail and Slack accounts, and enter your Freshdesk domain and API key.
- Add your Anthropic key in the flow setting Anthropic key.
- Pick your Slack channel in Tell AP the POD is on file and Tell AP the invoice is on hold, and narrow the Gmail search in New carrier invoice email to your AP inbox if it shares a mailbox.