Carrier setup packet checked for W-9, insurance and authority
Carriers email setup packets as several attachments. This flow reads each file, emails the carrier what is missing, and sends a complete packet to your setup lead in Slack.
The prompt
When a carrier emails a setup packet to our carrier setup inbox in Gmail, read every attachment and work out which one is the W-9, the certificate of insurance and the operating authority. Check that the W-9 is signed with the legal name and TIN filled in, that the insurance certificate lists auto liability and cargo coverage and hasn't expired, and that the packet shows an MC or DOT number. If anything is missing, reply to the carrier in the same thread and list exactly what we still need. If the packet is complete, ask our carrier setup lead in Slack with Approve and Do not approve buttons and wait for the answer. If they approve, reply to the carrier that their paperwork is approved.
FlowRunner Prompt to Flow built this flow from that request. Here it is as it opens in the editor.
The flow
Inside the loop: Read each attachment
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 setup packet email Checks the carrier setup inbox in Gmail every 5 minutes for an email with attachments and words like setup, carrier packet, W-9 or COI in the subject.
- Read each attachment Goes through every PDF and image in the email, so a packet sent as five separate files is read in full. Each file is saved to FlowRunner file storage first.
- Read the document An AI agent works out whether each file is a W-9, a certificate of insurance, an authority letter or something else, and pulls out the legal name, TIN, signature, coverages, limits, expiration date and MC and DOT numbers.
- Check what is missing Checks the packet as a whole: a signed W-9 with the legal name and TIN, a certificate of insurance with auto liability and cargo that is still current, and an MC or DOT number.
- Email the carrier what's missing A packet with gaps gets a reply in the same Gmail thread that lists each missing or out-of-date item, such as an unsigned W-9 or an expired certificate.
- Ask the setup lead A complete packet goes to your carrier setup lead in Slack with the legal name, the last four digits of the TIN, the coverage limits and expiration date, the MC or DOT number, links to every file, and two buttons, Approve and Do not approve.
- Wait for the setup lead's answer The run waits for the click. Approve replies to the carrier that their paperwork is approved. Do not approve sends the carrier nothing and says so in the Slack thread.
Before you turn it on
- Connect your Gmail and Slack accounts.
- Add your Anthropic key in the flow setting Anthropic key.
- Copy the URL of the block Wait for the setup lead's answer into the flow setting Answer link. The Slack buttons open it.
- Pick your Slack channel in the two Slack steps, and narrow the Gmail search in New setup packet email to your carrier setup inbox if it shares a mailbox.