Skip to main content

🛻 AI agent for logistics order processing with GPT-4o, Gmail and Google Sheet

Workflow preview

Workflow preview
100%
🛻 AI agent for logistics order processing with GPT-4o, Gmail and Google Sheet preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Tags: Supply Chain, Logistics, AI Agents Context Hey! I’m Samir, a Supply Chain Data Scientist from Paris, and the founder of LogiGreen Consulting...

Best for

  • Document Extraction automation workflows
  • AI Summarization automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.googlesheets, n8n-nodes-base.gmailtrigger, n8n-nodes-base.if, n8n-nodes-base.code

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Samir Saci.

Original n8n.io source

1.1 Workflow description

Title
🛻 AI agent for logistics order processing with GPT-4o, Gmail and Google Sheet
Workflow name
🛻 AI agent for logistics order processing with GPT-4o, Gmail and Google Sheet

Tags: Supply Chain, Logistics, AI Agents

Context

Hey! I’m Samir, a Supply Chain Data Scientist from Paris, and the founder of LogiGreen Consulting.

We design tools to help companies improve their logistics processes using data analytics, AI, and automation—to reduce costs and minimize environmental impacts.

>Let’s use N8N to improve logistics operations!

📬 For business inquiries, you can add me on LinkedIn

Who is this template for?

This workflow template is designed for logistics or manufacturing operations that receive orders by email.

The example above illustrate the challenge we want to tackle using an AI Agent to parse the information and load them in a Google sheet.

If you want to understand how I built this workflow, check my detailed tutorial:

🎥 Step-by-Step Tutorial

How does it work?

The workflow is connected to a Gmail Trigger to open all the emails that include Inbound Order in their subject.

The email is parsed by an AI Agent equipped with OpenAI's GPT to collect all the information.

The results are pulled in a Google Sheet.

These orderlines can then be transferred to warehouse teams to prepare *order receiving.

What do I need to get started?

You’ll need:

  • Gmail and Google Drive Accounts with the API credentials to access it via n8n
  • An OpenAI API key (GPT-4o) for the chat model.
  • A Google Sheet with these columns: PO_NUMBER, EXPECTED_DELIVERY DATE, SKU_ID, QUANTITY

Next Steps

Follow the sticky notes in the workflow to configure each node and start using AI to support your logistic operations.

🚀 Curious how N8N can transform your logistics operations?
📬 Let’s connect on LinkedIn

Notes

  • An example of email is included in the template so you can try it with your mailbox.

This workflow was built using N8N version 1.82.1
Submitted: March 28, 2025

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.8

Block 3 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 4 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 5 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Store Purchase Order Lines

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 9 - Email Received

Type / Role
n8n-nodes-base.gmailTrigger - gmailTrigger
Config choices
Version 1.2

Block 10 - Is PO?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 11 - Format Purchase Order Lines

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 12 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow 🛻 AI agent for logistics order processing with GPT-4o, Gmail and Google Sheet
Complexity intermediate
Nodes 12
Categories Document Extraction, AI Summarization
Author Samir Saci
Published 28 Mar 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3344/3344.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does 🛻 AI agent for logistics order processing with GPT-4o, Gmail and Google Sheet do?

Tags: Supply Chain, Logistics, AI Agents Context Hey! I’m Samir, a Supply Chain Data Scientist from Paris, and the founder of LogiGreen Consulting...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Document Extraction, AI Summarization use case.