Skip to main content

πŸ€–πŸšš AI agent for transportation orders management with GPT-4o and Open Route API

Workflow preview

Workflow preview
100%
πŸ€–πŸšš AI agent for transportation orders management with GPT-4o and Open Route API 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 : AI Agent, Supply Chain, Logistics, Route Planning, Transportation, GPS API Context Hi! I’m Samir, a Supply Chain Engineer and Data Scientist based in Paris, and foun...

Best for

  • Ticket Management automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.gmailtrigger, @n8n/n8n-nodes-langchain.outputparserstructured, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.googlesheets, n8n-nodes-base.wait, n8n-nodes-base.httprequest, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.lmchatopenai

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 transportation orders management with GPT-4o and Open Route API
Workflow name
πŸ€–πŸšš AI agent for transportation orders management with GPT-4o and Open Route API

Tags: AI Agent, Supply Chain, Logistics, Route Planning, Transportation, GPS API

Context

Hi! I’m Samir, a Supply Chain Engineer and Data Scientist based in Paris, and founder of LogiGreen Consulting.

I help companies improve their logistics operations using data, AI, and automation to reduce costs and minimize environmental footprint.

> Let’s use n8n to automate order management for transportation companies!

πŸ“¬ For business inquiries, you can add find me on LinkedIn

Who is this template for?

This workflow is designed for small transportation companies and carriers that handle their delivery request by email.

Two AI Agent nodes and a connection to Openroute Service API are used to parse the content of pickup requests

The results include driving time and driving distance in a comprehensive and concise reply generated by the second AI Agent.

How does it work?

This n8n workflow automates the processing of shipment request emails and enriches them with distance and driving time using the OpenRouteService API.

  • πŸ“₯ Extract structured logistics data (pickup, delivery, contact) using an AI Agent
  • πŸ“Œ Geocode pickup and delivery addresses into GPS coordinates
  • 🚚 Query OpenRouteService using the truck (driving-hgv) profile
  • πŸ“ Get the driving distance (in km) and estimated time (in minutes)
  • πŸ“€ Store all data in a connected Google Sheet
  • πŸ“§ Send back a professional confirmation email to the customer

Steps:

  1. πŸ“© Trigger the workflow from a new Gmail message
  2. 🧠 Use the AI Agent to extract structured data from the email
  3. πŸ“Š Record and enrich shipment details in a Google Sheet
  4. πŸ—ΊοΈ Geocode addresses into coordinates
  5. 🚦 Get driving distance & time via OpenRouteService
  6. πŸ“¬ Generate and send back a confirmation email using AI

What do I need to get started?

This workflow requires:

  • A Gmail account to receive shipment requests
  • A Google Sheet to log and update shipment info
  • A free OpenRouteService API key
    πŸ‘‰ Get one here
  • OpenAI API access to use the AI Agent node

Next Steps

πŸ—’οΈ Follow the sticky notes inside the workflow canvas to:

  • Plug your Gmail and Google credentials
  • Add your OpenRouteService API key
  • Test by sending a sample email and see the response!

πŸŽ₯ Check the Tutorial

This template was built using n8n v1.93.0
Submitted: June 5, 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 - Gmail Trigger

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

Block 2 - Structured Output Parser

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

Block 3 - AI Agent Parser

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

Block 4 - Record Email Content

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

Block 5 - Collect Addresses

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

Block 6 - 5 sec

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 7 - Query Open Route API Pickup

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 8 - Save Pickup GPS

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

Block 9 - GPS Pickup

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 10 - Query Open Route API Delivery

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 11 - GPS Delivery

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 12 - Save Delivery GPS

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

Block 13 - Collect Coordinates

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

Block 14 - Request Open Route API

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 15 - Save Results

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

Block 16 - Collect Shipment Information

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

Block 17 - Driving Time & Distance

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 18 - OpenAI Chat Model

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

Block 19 - AI Agent Reply

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

Block 20 - Reply

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 21 - Sticky Note

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

Block 22 - Sticky Note1

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

Block 23 - Sticky Note2

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

Block 24 - OpenAI Chat Model2

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

Showing the first 24 of 26 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow πŸ€–πŸšš AI agent for transportation orders management with GPT-4o and Open Route API
Complexity advanced
Nodes 26
Categories Ticket Management, AI Summarization
Author Samir Saci
Published 05 Jun 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4692/4692.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 transportation orders management with GPT-4o and Open Route API do?

Tags : AI Agent, Supply Chain, Logistics, Route Planning, Transportation, GPS API Context Hi! I’m Samir, a Supply Chain Engineer and Data Scientist based in Paris, and foun...

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 Ticket Management, AI Summarization use case.