πŸ”§ ♻️ AI multi-stop planner for circular logistics with GPT-4o & Open Route API

⚑ 1,519 views Β· πŸ”§ Miscellaneous

πŸ’‘ Pro Tip β€” HTTP Request scraping tends to break when sites update their markup. If you’re scraping a major platform, check if ScraperNode covers it β€” it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.

View All Scrapers

Description

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 warehouse.

> Let’s create circular economies with AI-powered automation using n8n!

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

Who is this template for?

This workflow is designed for logistics teams participating in circular economy loops.

Let us imagine your transportation company receives this pickup request:

Example of Results

The two AI Agent nodes connected to Openroute Service API will process the information and reply with the detailed route plan.

Workflow

The results include driving time and the optimal sequence of stops generated by the multi-stop optimization endpoint of the API.

How does it work?

This workflow automates the end-to-end processing of multi-stop pickup requests for reusable packaging:

Steps:

  1. πŸ’Œ Trigger on a new Gmail message
  2. 🧠 Extract data using AI Agent (e.g., stores, addresses, times)
  3. πŸ“‘ Store raw and processed data in Google Sheets
  4. πŸ“ Enrich with GPS coordinates
  5. 🚚 Optimize route using OpenRouteService (truck profile)
  6. πŸ“„ Format the confirmation using an AI Agent
  7. πŸ“¬ Send reply to requester with route and timing

workflow

What do I need to get started?

You’ll need:

Next Steps

πŸ—’οΈ Use the sticky notes inside the n8n canvas to:

πŸ“Ί Learn More with n8n Tutorials

Get hands-on experience with automation through my comprehensive n8n tutorial playlist, featuring 18+ complete, step-by-step videos and ready-to-use templates.

n8n Playlist

This template was built using n8n v1.93.0
Submitted: June 7, 2025

πŸ”— Nodes Used

Google Sheets, HTTP Request, Gmail, Gmail Trigger, AI Agent, OpenAI Chat Model

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup