Email Automation
Track freight load risk from driver check-ins with gpt-6-luna and Google Sheets
When an API call/webhook arrives, it handles email with OpenAI / ChatGPT using Discord, Gmail, Google Sheets.
What it does
## 09-19-01 keep freight load status current from driver check ins with AI ### How it works Check calls are where a load board goes stale. A driver texts or calls, someone writes it on a sticky note, and nobody notices the load is four hours late until the customer asks. 1. A check in arrives on the webhook (driver app, dispatcher, or a relay that forwards driver texts). 2. The payload is validated. A check in with no load number or no status line goes to the Errors tab and pings the desk on Discord. 3. An AI agent reads the driver's own words and returns a normalized status, an estimated arrival, a delay reason, a risk level, and two plain sentences the broker can forward to the customer. 4. The load is matched against the Load Board tab, the check in is appended to the Check Log, and the board row is updated with status, last check in, and risk. 5. The load is routed by risk. At risk alerts Discord and emails the customer. An exception alerts Discord and escalates to the desk. A delivered load emails the customer and posts a quiet note. 6. Every morning at 07:00 a sweep finds loads that have gone quiet or are close to their appointment, and an AI agent writes the dispatch brief that lands in Discord and in the desk inbox. ### Setup - Add a Google Sheet with the tabs Load Board, Check Log, and Errors. Column names must match the field names used in the nodes. - Connect Google Sheets, Gmail, and Discord credentials. - Point the webhook at your dispatch app or driver relay. POST a JSON body with load_id, driver_name, status, location, eta_text, and notes. - Replace the desk email address and the Discord channel, then set the morning sweep cron. ### Customization - Change the risk thresholds in Decide Load Risk (2 hours for at risk, 6 hours for an exception). - Add a detention column if you bill accessorials. - Swap Discord for Slack or Telegram by replacing the three Discord nodes.
The steps
- Driver Check In
- Normalize Check In
- Validate Check In
- Log Invalid Check In
- Alert Invalid Check In
- AI Read Check In
- Check In Model
- Build Check In Record
- Read Load Board
- Decide Load Risk
- Append Check In To Log
- Update Load Board Status
- Route By Risk
- Alert At Risk Load
27 steps in total.
Similar automations
Calendar & SchedulingRescue at-risk appointments with two-hour WhatsApp and Google Sheets check-ins14 stepsEmail AutomationTrack dental lab cases and notify clinics with gpt-6-luna and Google Sheets47 stepsEmail AutomationTrack construction RFIs and submittals with Airtable, Gmail, Discord, Telegram, and52 stepsReports, Analytics & DashboardsCalculate Freight Shipment CO2 Emissions from Gmail with OpenAI7 steps