Emailed load tender to NetSuite sales order
Shippers email load tenders. This flow reads each one, asks your ops desk in Slack to take it at the offered rate, then creates the NetSuite sales order and confirms to the shipper.
The prompt
When a shipper emails a load tender to our Outlook mailbox, read it and pull out the shipper, their load number, the lane, pickup and delivery dates, equipment, commodity, weight, offered rate and any accessorial terms. Find the shipper as a customer in NetSuite and check we haven't entered that load already. If the customer isn't found, the load is already in, or there's no rate, send it to ops in Slack to handle by hand. Otherwise ask the ops desk in Slack, with Take it at this rate and Pass buttons, and wait. On yes, create the NetSuite sales order with their load number as the PO number and a line haul line at the offered rate, then reply to the tender email to confirm. On pass, note it 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
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 Checks the mailbox in Outlook every 5 minutes for an email with an attachment and tender in the subject.
- Read the load tender An AI agent reads the tender and pulls out the shipper, their load number, the lane, pickup and delivery dates, equipment, commodity, weight, offered rate and any detention, lumper, layover or TONU terms.
- Find the customer in NetSuite Looks the shipper up as a customer and checks no sales order carries their load number yet. An unknown shipper, a repeat tender or a tender with no rate goes to ops in Slack to handle by hand.
- Ask the ops desk The ops desk sees the lane, dates, equipment, weight, offered rate and accessorial terms in Slack, with two buttons, Take it at this rate and Pass.
- Wait for the ops desk's answer The run waits for the click. Pass leaves NetSuite alone and says so in the Slack thread.
- Create the sales order On yes, creates the sales order for the customer with their load number as the PO number, the pickup date as the ship date, the lane and terms in the memo, and one line haul line at the offered rate.
- Confirm the load to the customer Replies to the tender email to confirm the load, the lane, the pickup date and the rate.
Before you turn it on
- Connect your Outlook, NetSuite and Slack accounts, and enter your NetSuite account ID, client ID and client secret.
- Add your Anthropic key in the flow setting Anthropic key, and the internal ID of the item you bill line haul on in Line haul item.
- Copy the URL of the block Wait for the ops desk's answer into the flow setting Answer link. The Slack buttons open it.
- Pick your Slack channel in the three Slack steps, and point the Outlook trigger at the folder tenders arrive in if it isn't the Inbox.