FlowRunner
Features Pricing
Theme
Start Free

Failed and short deliveries in Detrack reviewed as OS&D by dispatch

Each evening this flow reads every failed or short delivery in Detrack and asks dispatch in Slack to reattempt, open an OS&D claim, or leave it.

The prompt

Every evening, find the deliveries Detrack shows as failed or delivered short today. For each one, pull the delivery record and the POD with the driver's photos and notes, and work out what happened: refused, short, damaged or not delivered, which pieces, and how many attempts so far. Ask dispatch in Slack with Reattempt tomorrow, Open OS&D claim and Leave it buttons, and wait for the answer. On a reattempt, book the load again for tomorrow in Detrack. On a claim, email our claims inbox with the details and the POD attached. Confirm what was done in the Slack thread.

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

The flow

Repeats for each item For each deliveryexception Code Work out today's date Action Find failed andshort deliveries

Inside the loop: For each delivery exception

Asks a person Ask dispatch AI agent Read the exception Action Get the deliveryrecord Asks a person Wait for dispatch'sanswer Condition What did dispatchpick? Action Reattempttomorrow Action Export the POD Action Confirm the claim Action Confirm thereattempt Code Write the question fordispatch Action Send the OS&Dclaim

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. Find failed and short deliveries Every evening, searches Detrack for today's deliveries that closed as failed or partially completed.
  2. Export the POD For each one, reads the delivery record and exports the POD with the driver's signature, photos and notes.
  3. Read the exception An AI agent reads the record and the POD and says what happened: refused, short, damaged or not delivered, which pieces, and how many attempts the load has had.
  4. Ask dispatch Posts the load to dispatch in Slack with what happened, a link to the POD, and three buttons: Reattempt tomorrow, Open OS&D claim and Leave it.
  5. Wait for dispatch's answer The run waits for the click before it moves to the next load. Leave it changes nothing.
  6. Reattempt tomorrow Reattempt tomorrow books the load for another delivery attempt the next day in Detrack and says so in the Slack thread.
  7. Send the OS&D claim Open OS&D claim emails your claims inbox from Gmail with the exception, the pieces affected and the POD attached, and confirms in the Slack thread.

Before you turn it on

  • Enter your Detrack API key, connect your Slack and Gmail accounts, and add your Anthropic key in the flow setting Anthropic key.
  • Copy the URL of the block Wait for dispatch's answer into the flow setting Answer link. The Slack buttons open it.
  • Set the flow setting Claims email to the inbox that handles OS&D claims, and Time zone to your dispatch time zone. It starts as America/Chicago.
  • Pick your dispatch channel in the three Slack steps.
  • Set the flow's schedule to run every evening after your last deliveries close.