Templates / Verify customs shipping documents with GPT-4o-mini, Gmail and Slack

Verify customs shipping documents with GPT-4o-mini, Gmail and Slack

Ready for 3.0

by Rahul Joshi ✓ · 46 views · created 2026-07-06 · 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 10 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects OpenAI, Gmail and Slack.

How it runs

Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).

  1. Map Incoming Webhook Fields (Edit Fields (Set)): sets 6 fields: submitterEmail, shipmentRef, invoiceText…
  2. Slack: uses Slack
  3. Extract Bill of Lading Fields via GPT (OpenAI): uses OpenAI
  4. Cross-Check All Document Fields (Code): runs custom JavaScript code
  5. Slack: uses Slack
  6. Check Verdict — Ready to File? (If): checks a condition and branches into true / false
  7. Gmail: uses Gmail
  8. Gmail: uses Gmail

Services it uses

OpenAIGmailSlack

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 (8)

From the author

Quick overview This workflow receives shipment document text via a webhook, uses OpenAI (GPT-4o-mini) to extract key fields from the Bill of Lading, cross-checks the extracted data against Invoice and Packing List fields, then emails a compliance verdict via…

Excerpt from Rahul Joshi'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.