♻️ AI multi-stop planner for circular logistics with GPT-4o & Open Route API — n8n Workflow

High complexity Trigger25 nodes🏷️ Miscellaneous👁 1,265 viewsby Samir Saci

Overview

Tags*: AI Agent, Supply Chain, Logistics, Circular Economy, 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 logistics teams reduce operational workload and errors by combining AI automation, route optimisation APIs, and workflow automation.

This workflow is part of a circular economy project, where stores return reusable packaging (bins, crates, containers) to a central ware

Nodes used

Google SheetsHTTP RequestGmailCodeAI AgentOpenAI Chat ModelStructured Output Parser

Workflow Preview

3. Record Shipment Request Information and fe
This starts by recording all the information parsed by
1. Workflow Trigger with Gmail Trigger
The workflow is triggered by a new email received in yo
How to setup?
- Gmail Trigger No
2. AI Agent to parse the collection process
This node will analyze the content of the email to extr
4. Reply with a confirmation of shipment allo
We first collect all the information of the sequence of
modelmodelparser
G
Gmail Trigger
Structured Output Parser
AI Agent Parser
Record Email Content
5
5 sec
Query Open Route API Pic…
Save Pickup GPS
G
GPS Pickup
Collect Coordinates
Request Open Route API
Collect Shipment Informa…
OpenAI Chat Model
AI Agent Reply
Reply
OpenAI Chat Model2
L
Loop Over Items
S
Split by Address
Extract Job
J
Jobs Mapping
Format Jobs
S
Split Jobs
M
Merge Sequence with coor…
F
Format GPS Coordinates
Save Sequence & Duration
Format Schedule
25 nodes26 edges

How it Works

  1. 1

    Trigger

    The workflow starts with a trigger trigger.

  2. 2

    Process

    Data flows through 25 nodes, connecting agent, code, gmail.

  3. 3

    Output

    The workflow completes its automation and delivers the result to the configured destination.

Node Details (25)

GO

Google Sheets

googleSheets

#1
HT

HTTP Request

httpRequest

#2
GM

Gmail

gmail

#3
CO

Code

code

#4
AI

AI Agent

n8n-nodes-langchain.agent

#5
OP

OpenAI Chat Model

n8n-nodes-langchain.lmChatOpenAi

#6
ST

Structured Output Parser

n8n-nodes-langchain.outputParserStructured

#7

How to Import This Workflow

  1. 1Click Download JSON button on the right to save the workflow file.
  2. 2Open your n8n instance. Go to Workflows → New → Import from file.
  3. 3Select the downloaded ai-multi-stop-planner-for-circular-logistics-with-gpt-4o-open-route-api file and click Import.
  4. 4Set up credentials for each service node (API keys, OAuth, etc.).
  5. 5Click Test Workflow to verify everything works, then activate it.

Or paste directly in n8n → Import from JSON:

{ "name": "♻️ AI multi-stop planner for circular logistics with GPT-4o & Open Route API", "nodes": [...], ...}

Integrations

agentcodegmailgmailtriggergooglesheetshttprequestlmchatopenaimergeoutputparserstructuredsetsplitinbatchessplitoutwait

Get This Workflow

Download and import in one click

Download JSONView on n8n.io
Nodes25
Complexityhigh
Triggertrigger
Views1,265

Created by

Samir Saci

Samir Saci

@samirsaci

Tags

agentcodegmailgmailtriggergooglesheetshttprequestlmchatopenaimergeoutputparserstructuredset

New to n8n?

n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.

Get n8n Free →

Related Miscellaneous Workflows