FlowRunner
Features Pricing
Theme
Start Free

Carrier quick pay request sent to AP for a decision

Carriers email quick pay requests. This flow reads the amount and fee, pulls the load from McLeod, asks AP in Slack to approve or decline, and replies to the carrier.

The prompt

When a carrier emails a quick pay request to our AP inbox in Gmail, read the carrier name, the load or invoice number, the amount and the quick pay fee they accept. If there's a load number, look the load up in McLeod and get its status, the carrier on it and the agreed carrier pay. Ask AP in Slack with the request, the fee, the net amount, what McLeod shows and whether the amount matches the agreed pay, with Approve quick pay and Decline buttons, and wait for the answer. Reply to the carrier in the same email thread with AP's answer.

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

The flow

No Yes No Yes Code Write the question forAP Asks a person Wait for AP's answer Action Tell the carrierit's declined AI agent Read the request Asks a person Ask AP Starts the flow New quick payrequest Condition Approved? Action Find the load inMcLeod Action Tell the carrierit's approved Condition Load number given?

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 quick pay request Checks the AP inbox in Gmail every 5 minutes for an email with quick pay in the subject.
  2. Read the request An AI agent reads the email and pulls out the carrier, the load and invoice numbers, the amount, and the fee the carrier accepts as a percent or a dollar amount.
  3. Find the load in McLeod When the request names a load, looks it up in McLeod LoadMaster for its status, whether it's ready to bill, the carrier on it and the agreed carrier pay.
  4. Ask AP Posts the request to AP in Slack with the fee, the net amount to pay early and what McLeod shows. It flags an amount that differs from the agreed carrier pay, or a request with no load in McLeod. Two buttons: Approve quick pay and Decline.
  5. Wait for AP's answer The run waits for the click.
  6. Tell the carrier it's approved Approve quick pay replies to the carrier in the same thread with the amount, the fee and the net payment. Decline replies that the invoice stays on standard payment terms.

Before you turn it on

  • Connect your Gmail and Slack accounts, and enter your McLeod server URL and API token, or a McLeod user name and password.
  • Add your Anthropic key in the flow setting Anthropic key.
  • Copy the URL of the block Wait for AP's answer into the flow setting Answer link. The Slack buttons open it.
  • Pick your AP channel in Ask AP, and narrow the Gmail search in New quick pay request to your AP inbox if it shares a mailbox.