Carrier hears AP's decision when the invoice ticket is solved
When AP solves a carrier invoice exception ticket in Zendesk, the carrier gets AP's decision by email in the original invoice thread, and the AP channel in Slack gets the outcome.
The prompt
When AP solves a carrier invoice exception ticket in Zendesk, read the ticket and AP's comments, and write the carrier a short email with AP's decision: paying in full, paying the rate con amount, paying part or not paying, and what to send next. Use only what AP wrote. Send it from our AP Gmail as a reply in the carrier's original invoice thread, post the outcome to our AP channel in Slack, and tag the ticket so the carrier only hears once. If the ticket has no carrier email or no decision from AP, ask AP in Slack to tell the carrier themselves.
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
- Ticket updated in Zendesk Zendesk tells the flow the moment a ticket changes.
- Solved carrier invoice ticket? Only a solved ticket tagged carrier_invoice goes on, and only once: a ticket already tagged carrier_told stops here.
- Read AP's comments on the ticket Reads the exception details and every comment AP wrote. A ticket with no carrier email or no decision comment goes to AP in Slack, to tell the carrier by hand.
- Write the reply to the carrier An AI agent writes a short email from AP's comments only: which invoice and load, what AP will pay and why, and what the carrier should send next, such as a corrected invoice or proof for detention.
- Email the carrier in the invoice thread Sends the email from the AP Gmail account as a reply in the thread the carrier's invoice came in.
- Post the outcome to AP Posts the decision and a link to the ticket to the AP channel in Slack.
- Tag the ticket carrier told Adds the carrier_told tag, so later updates to the ticket don't email the carrier again.
Before you turn it on
- Enter your Zendesk subdomain, agent email and API token, and connect Slack and the Gmail account the carrier invoices come into.
- Add your Anthropic key in the flow setting Anthropic key.
- Pick your AP channel in Post the outcome to AP and Ask AP to tell the carrier.
- This flow answers tickets opened by the carrier invoice exception flow, which writes the carrier's email and the Gmail thread on each ticket. AP writes the decision in a comment before solving.