Emailed load tenders to delivery jobs in Detrack
When a customer emails a load tender, this flow reads it, asks dispatch in Slack to accept or decline, and on accept creates the Detrack delivery job and replies.
The prompt
When a customer emails a load tender to our dispatch inbox in Gmail, read the attachment and pull out the load number, PO, consignee, delivery address, delivery date and appointment, pieces, weight, commodity, the rate offered and any delivery instructions. If the load number, address or date is missing, send the tender to dispatch in Slack to book by hand. Otherwise ask dispatch in Slack with Accept and Decline buttons and wait. On Accept, create the delivery job in Detrack with the load number as the D.O. number, and reply to the customer in the same thread with our tracking number. On Decline, reply that we can't take the load.
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 load tender email Checks the dispatch inbox in Gmail every 5 minutes for an email with an attachment and tender, load tender or delivery order in the subject.
- Read the load tender An AI agent reads the saved tender and pulls out the load number, PO, consignee, delivery address, delivery date and appointment, pieces, weight, commodity, the rate offered and any delivery instructions.
- Tender complete? A tender with a load number, a delivery address and a delivery date goes to dispatch for a decision. Anything missing goes to dispatch in Slack with a link to the file, to book by hand.
- Ask dispatch Posts the tender to dispatch in Slack: the customer, the consignee and address, the date, pieces and weight, the rate, and two buttons, Accept and Decline.
- Wait for dispatch's answer The run waits for the click. Decline replies to the customer in the same email thread that the load can't be taken.
- Create the delivery job Accept creates the delivery job in Detrack with the load number as the D.O. number, the PO, the consignee's phone and the delivery instructions for the driver.
- Confirm the tender to the customer Replies to the customer in the same email thread that the load is accepted, with the Detrack tracking number.
Before you turn it on
- Connect your Gmail and Slack accounts, enter your Detrack API key, 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.
- Pick your dispatch channel in the two Slack steps, and narrow the Gmail search in New load tender email to your dispatch inbox if it shares a mailbox.