Verify customs shipping documents with GPT-4o-mini, Gmail and Slack
Ready for 3.0What 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).
- Map Incoming Webhook Fields (Edit Fields (Set)): sets 6 fields: submitterEmail, shipmentRef, invoiceText…
- Slack: uses Slack
- Extract Bill of Lading Fields via GPT (OpenAI): uses OpenAI
- Cross-Check All Document Fields (Code): runs custom JavaScript code
- Slack: uses Slack
- Check Verdict — Ready to File? (If): checks a condition and branches into true / false
- Gmail: uses Gmail
- Gmail: uses Gmail
Services it uses
Other OpenAI + Gmail templates (1,623) · Other OpenAI + Slack templates (979) · Other Gmail + Slack templates (957)
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)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - OpenAI
@n8n/n8n-nodes-langchain.openAi - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail - Slack
n8n-nodes-base.slack - Error Trigger
n8n-nodes-base.errorTrigger
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…