Auditor and customer paperwork requests answered with SharePoint links
An auditor or customer emails for a load's paperwork. This flow finds each load in McLeod, links its SharePoint folder, and saves a reply in Outlook for a person to send.
The prompt
When an auditor or a customer emails our billing inbox in Outlook asking for the paperwork on one or more loads, pull out each load number, PRO, BOL or PO they give. Find each load in McLeod and its folder in our Load Paperwork archive in SharePoint, which is filed by customer, delivery month and load number. Create a view-only link to each load's folder that expires in 14 days. Draft a short reply with one line and one link per load, saying we're pulling the paperwork for any load we can't find, with no rates or carrier details. Save it as a draft in Outlook and tell billing in Slack that it's waiting. A person checks the sender and sends it.
FlowRunner Prompt to Flow built this flow from that request. Here it is as it opens in the editor.
The flow
Inside the loop: For each load asked for
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 email in the billing inbox Checks your billing inbox in Outlook every 2 minutes for new email.
- Read the request An AI agent decides whether the sender is asking for load paperwork and pulls out each load number, PRO, BOL or PO they name, up to 25 in one email. Any other email ends here.
- Find the load in McLeod Looks each load up in McLeod and works out its folder in the SharePoint archive from the customer, the month it delivered and the load number.
- Find its archive folder Finds the load's folder in SharePoint. A load McLeod doesn't know, or one whose paperwork isn't in the archive yet, is noted for a person to answer by hand.
- Create a view link Creates a view-only link to the load's folder that stops working after the number of days you set, 14 by default.
- Draft the reply A second AI agent writes a short reply with one line and one link per load. It leaves out rates, carrier names and carrier pay, and says the paperwork is being pulled for any load it couldn't link.
- Save the draft reply Saves the reply as a draft in Outlook, addressed to the sender. Nothing reaches them until a person sends it.
- Tell billing a draft is waiting Posts the sender and each load's line in Slack, so someone checks the sender works for that customer or audit firm, edits the draft if needed and sends it.
Before you turn it on
- Connect your Outlook, SharePoint and Slack accounts, and enter your McLeod server address and API token, or a user name and password, in the McLeod LoadMaster settings. Connect the Outlook account that receives these requests; the draft is saved in its Drafts folder.
- Add your Anthropic key in the flow setting Anthropic key.
- Set the flow settings SharePoint host name, SharePoint site path, Document library and Archive folder to the same values as the archive flow that files your load paperwork by customer and month.
- Set Link scope to anonymous for links anyone can open, or organization to keep them inside your Microsoft 365 tenant, and change Link expires after days (14) if you like.
- Pick the folder to watch in the block New email in the billing inbox (the Inbox if left empty), and pick your billing channel in the block Tell billing a draft is waiting.