Templates / Validate shipments & generate freight documents with GPT-4o, Google Sheets & Drive

Validate shipments & generate freight documents with GPT-4o, Google Sheets & Drive

Ready for 3.0

by InfyOm Technologies ✓ · 221 views · created 2025-12-18 · Document Extraction, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 17 nodes and runs on Google Sheets events (row added). Along the way it connects Google Sheets, OpenAI Chat Model, Gmail and Google Drive. It also calls v2.convertapi.com over HTTP.

How it runs

Trigger: On Google Sheets events (row added).

  1. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  2. Validate Shipment details (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (Carrier Details); output parser: Structured Output Parser
  3. If: checks a condition and branches into true / false
  4. Set Shipment Data (Code): runs custom JavaScript code
  5. Send Mismatch Items Details (Gmail): uses Gmail
  6. PDF Generate (HTTP Request): calls v2.convertapi.com (POST)
  7. Update State (Google Sheets): append or update
  8. Get PDF (Extract from File): extracts data from a file (from json)
  9. Send Shipment PDF To Sender (Gmail): uses Gmail
  10. Send Shipment PDF To Receiver (Gmail): uses Gmail

…plus 3 more steps. See the full node list below.

Services it uses

Google SheetsOpenAI Chat ModelGmailGoogle Drive

HTTP calls to: v2.convertapi.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (13)

From the author

✅ What problem does this workflow solve? Logistics teams spend hours manually validating shipment data, checking compliance, generating freight documents, and emailing stakeholders. Errors in HSN codes, weights, or carrier details can lead to shipment delays,…

Excerpt from InfyOm Technologies's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.