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.

On this page
How it works
- A new shipment row in Google Sheets starts the workflow.
- AI checks the shipment details against carrier information.
- If something doesn't match, the issue is emailed and the row is marked.
- Valid shipments get a PDF document, uploaded to Drive.
- The PDF is sent to sender and receiver and the sheet is updated.
Use cases
- Freight forwarders
- 3PL and courier companies
- Export and import desks
What you need
This workflow connects to these apps.
- Google Drive
- OpenAI
- Google Sheets
You'll need an n8n instance, on n8n Cloud or self-hosted, and these credentials. Our credentials guide shows how to create each one.
- Gmail account
- Google Drive account
- Google Sheets Trigger account
- Google Sheets account
- OpenAI account
Data setup
Create these tables with these exact column names before the first run.
| Table | Columns |
|---|---|
| Freight Documentation → Sheet1Google Sheets | Columns are in the README. |
| Freight Documentation → Shipping DetailsGoogle Sheets | Shipment ID / Reference NumberStateDrive_link |
| Freight Documentation → Carrier DetailsGoogle Sheets | Status |
Setup
- 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.
- Connect the credentials listed above.
- Point the Sheets, Airtable, Drive, and Slack nodes at your own files and channels.
- Replace placeholder emails, phone numbers, and form links with your own.
- 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
| Node | Type |
|---|---|
| Google Sheets Trigger | googleSheetsTrigger |
| Loop Over Items | splitInBatches |
| OpenAI Chat Model | lmChatOpenAi |
| Structured Output Parser | outputParserStructured |
| Send Shipment PDF To Sender | gmail |
| Send Shipment PDF To Receiver | gmail |
| Get PDF | extractFromFile |
| PDF Generate | httpRequest |
| Set Shipment Data | code |
| If Validate | if |
| Send Mismatch Items Details | gmail |
| Update State | googleSheets |
| Append or update row in sheet | googleSheets |
| Validate Shipment details | agent |
| Upload file | googleDrive |
| Download File | httpRequest |
| Carrier Details | googleSheetsTool |
Frequently asked questions
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. It's a 18-node n8n workflow.
An n8n instance, on n8n Cloud or self-hosted, and credentials for Gmail, Google Drive, Google Sheets, and OpenAI. It uses only nodes that ship with n8n, so there's nothing else to install.
It works with 3 tables in Google Sheets. 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.



