FlowRunner
Features Pricing
Theme
Start Free

Contract driver packet checked and the driver added to Onfleet

Drivers email their W-9, license and insurance. This flow checks each one, emails back what's missing or expired, and adds approved drivers to Onfleet with the driver app invite.

The prompt

When a contract driver emails their onboarding packet to our Gmail inbox, read each attachment and work out whether it's a W-9, a driver's license or a certificate of insurance, with the name and the expiration date. Check that the W-9 is signed and has a taxpayer ID, that the license and the insurance haven't expired, and that we have a mobile number. If anything is missing or expired, reply to the driver with exactly what we still need. If the packet is complete, ask our ops lead in Slack, with Add the driver and Do not add buttons, and wait for the answer. If they approve, add the driver to our Onfleet team so they get the driver app invite, and email them to expect it.

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

The flow

No Yes No Yes Repeats for each item Each document in thepacket Starts the flow New driverpacket email Action Start the packet Code Check the packet Action Tell the driver toexpect the app invite Asks a person Ask the ops lead Code Write the question forthe ops lead Asks a person Wait for the opslead's answer Condition Add the driver? Action Confirm the driveris not added Action Ask the driver forwhat's missing Action Confirm thedriver is added AI agent Pull the driver'sdetails Action Add the driver toOnfleet Condition Packet complete?

Inside the loop: Each document in the packet

AI agent Read the document Action Keep the document Action Save thedocument Code Add it to the packet

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. New driver packet email Checks your Gmail inbox every 5 minutes for an email with attachments and driver packet, driver onboarding or driver application in the subject.
  2. Read the document Saves each attachment, and an AI agent reads it: a W-9, a driver's license, a certificate of insurance or something else, with the name, the expiration date and whether the W-9 is signed. It never copies out a Social Security number, EIN or license number.
  3. Pull the driver's details A second AI agent takes the driver's name, mobile number and vehicle from the email and the documents.
  4. Packet complete? Checks for a signed W-9 with a taxpayer ID, a license and an insurance certificate that haven't expired, and a mobile number. If anything is missing, the driver gets a reply in the same email thread listing exactly what to send.
  5. Ask the ops lead A complete packet goes to the ops lead in Slack with the driver, the vehicle, a line on each document with a link to it, and two buttons, Add the driver and Do not add.
  6. Wait for the ops lead's answer The run waits for the click. Do not add leaves Onfleet alone and says so in the Slack thread.
  7. Add the driver to Onfleet Add the driver creates the driver on your Onfleet team with their vehicle. Onfleet texts them the driver app invite, a reply tells the driver to expect it, and the Slack thread is updated.

Before you turn it on

  • Connect your Gmail and Slack accounts, and enter your Onfleet API key.
  • Add your Anthropic key in the flow setting Anthropic key.
  • Copy the URL of the block Wait for the ops lead's answer into the flow setting Answer link. The Slack buttons open it.
  • Set the flow setting Driver team to the ID of the Onfleet team new drivers join, and Company name to the name drivers know you by. It signs the emails.
  • Ask drivers to put driver packet in the subject, or change the search in New driver packet email. Narrow it to your onboarding inbox if it shares a mailbox.
  • Pick your ops channel in the three Slack steps.