Logistics

Delivery Route Optimization & Driver Dispatch

Groups today's ready orders into routes, picks an available truck, calculates distance and time, checks the weather on the route and sends the driver a WhatsApp brief with a map link.

The Delivery Route Optimization & Driver Dispatch workflow on the n8n canvas, with its 22 nodes and connections
The workflow on the n8n canvas. Click to open it full size.

At a glance

Category
Logistics
Nodes
22
Apps
Airtable, Slack
Price
Free
Download JSON
On this page

How it works

  1. On schedule, orders ready for delivery are read from Airtable.
  2. Orders are grouped and an available truck is found, and the team is alerted if none is free.
  3. Route distance, duration and a map link are generated.
  4. Weather along the route is summarized.
  5. The driver gets a WhatsApp message and the records are updated.

Use cases

  • Distribution and FMCG delivery
  • Local logistics fleets
  • Construction material suppliers

What you need

This workflow connects to these apps.

  • n8n
  • Airtable
  • Slack

You'll need an n8n instance, on n8n Cloud or self-hosted, and these credentials. Our credentials guide shows how to create each one.

  • Airtable account
  • OpenWeatherMap account
  • Slack account
  • Twilio account

Data setup

Create these tables with these exact column names before the first run.

TableColumns
Route & Load Optimization → OrdersAirtableOrder IDStatus
Route & Load Optimization → FleetAirtableTruck IDAvailability
Route & Load Optimization → RoutesOutputAirtableOrder IDRoute IDDateTruck IDDriver NameDriver PhoneTotal Weight kgTotal StopsEst Total kmEst Total Time MinWeather SummaryRoute Link

Setup

  1. Download the JSON and import it into n8n with Import from File, or copy it and paste it onto an empty canvas. The import guide walks through both.
  2. Connect the credentials listed above.
  3. Point the Sheets, Airtable, Drive, and Slack nodes at your own files and channels.
  4. Replace placeholder emails, phone numbers, and form links with your own.
  5. Times use the America/New York timezone and dates use MM/DD/YYYY. Change them if you need to, then test and activate. The setup guide covers this step by step.

Nodes

NodeType
Grouped Routecode
Get Route Detailscode
Split Order IDscode
Schedule TriggerscheduleTrigger
Get Today Ready For Delivery Recordsairtable
Loop Over Delivery RecordssplitInBatches
Generate Formulacode
Get Available Truckairtable
If Check Truck Availabilityif
Alert to Team for truck not availableslack
Get Google Maps RoutehttpRequest
Find a Distance & DurationhttpRequest
Generate Route Linkcode
Search Route WeatheropenWeatherMap
Generate Weather Summarycode
Generate Whatsapp Message & Payloadcode
Send WhatsApp to Driver Notifytwilio
Notify to Supplier Teamslack
Append Payload Dataairtable
Update Order Statusairtable
Update Truck Statusairtable

Frequently asked questions

Groups today's ready orders into routes, picks an available truck, calculates distance and time, checks the weather on the route and sends the driver a WhatsApp brief with a map link. It's a 22-node n8n workflow.

An n8n instance, on n8n Cloud or self-hosted, and credentials for Airtable, OpenWeatherMap, Slack, and Twilio. It uses only nodes that ship with n8n, so there's nothing else to install.

It works with 3 tables in Airtable. Create them with the column names listed under Data setup on this page before the first run.

Download the JSON, then in n8n create a new workflow, open the menu in the top right, and choose Import from File. You can also copy the JSON and paste it onto an empty canvas.

Yes. It's free to download, import, and change, with no sign-up. You only pay for the apps it connects to, where those aren't free on your plan.

Keep exploring
  • n8n canvas of the Freight Document Generation & Validation workflow

    Logistics18 nodes

    Freight Document Generation & Validation

    Validates new shipment entries with AI, generates the freight document as a PDF, stores it in Drive and emails it to both shipper and receiver. Mismatches are flagged before anything goes out.

  • n8n canvas of the Proof of Delivery AI Verification workflow

    Logistics13 nodes

    Proof of Delivery AI Verification

    Drivers send a delivery photo on WhatsApp. AI vision checks it for a signature, package and readability, then saves it to Drive, logs it in a sheet and confirms, or asks for a clearer photo.