Skip to main content

Plan delivery routes from Notion orders with Nominatim and email

Workflow preview

Workflow preview
100%
Plan delivery routes from Notion orders with Nominatim and email preview
Open on n8n.io

1. Workflow Overview

Quick Overview This workflow collects delivery orders via an n8n form into a Notion database, then on a weekly schedule pulls pending orders, geocodes addresses with OpenStreetMap Nominatim, genera...

Best for

  • Project Management automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.formtrigger, n8n-nodes-base.code, n8n-nodes-base.notion, n8n-nodes-base.scheduletrigger, n8n-nodes-base.manualtrigger, n8n-nodes-base.httprequest, n8n-nodes-base.emailsend

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Plan delivery routes from Notion orders with Nominatim and email
Workflow name
Plan delivery routes from Notion orders with Nominatim and email

Quick Overview

This workflow collects delivery orders via an n8n form into a Notion database, then on a weekly schedule pulls pending orders, geocodes addresses with OpenStreetMap Nominatim, generates a nearest-neighbor route plan grouped by delivery day, and emails the plan as a text schedule.

How it works

  1. Receives a new order submission through an n8n Form trigger.
  2. Generates a unique order ID, normalizes the form fields (customer, address, totals, payment status), and saves the order as a new page in a Notion database with Status set to pending.
  3. Runs on a cron schedule (Friday at 6pm) or manually to plan routes.
  4. Fetches all Notion database pages where Status equals pending and converts Notion properties into a clean list of orders.
  5. Geocodes each delivery address using the OpenStreetMap Nominatim API with a built-in rate limit.
  6. Splits orders into Saturday and Sunday groups, orders stops using a nearest-neighbor distance heuristic, and formats a Markdown-like delivery plan that tags each stop as [PAID] or [COLLECT ON DELIVERY] and flags any geocoding failures.
  7. Sends the formatted delivery plan by email using SMTP.

Setup

  1. Create a Notion database with properties matching the workflow (Customer Name, Order ID, Phone, Address, Items, Total, Day, Paid, Notes, Status, Received At) and ensure the Day and Status select values include Saturday/Sunday and pending/done.
  2. Create and connect a Notion integration to the database, then add the Notion API credential in n8n.
  3. Replace YOUR_NOTION_DATABASE_ID_HERE in both Notion nodes with your database ID.
  4. Add an SMTP credential, then set the From and To addresses in the email step to real recipients.
  5. Copy the production URL from the Form trigger and share it as your order intake form.

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 - Overview and setup

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

Block 2 - Intake section

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

Block 3 - Planning section

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

Block 4 - Order Intake Form

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

Block 5 - Save Order

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

Block 6 - Notion: Create Order

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

Block 7 - Friday 6pm Plan

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

Block 8 - Test Run

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

Block 9 - Notion: Get Pending

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

Block 10 - Load Pending Orders

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

Block 11 - Geocode (Nominatim)

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

Block 12 - Optimize Routes & Format

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

Block 13 - Email Plan

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

Block 14 - Sticky Note

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

Block 15 - Sticky Note1

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

3. Summary Table

Workflow Plan delivery routes from Notion orders with Nominatim and email
Complexity advanced
Nodes 15
Categories Project Management
Author Kevin Yu
Published 07 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16154/16154.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 Plan delivery routes from Notion orders with Nominatim and email do?

Quick Overview This workflow collects delivery orders via an n8n form into a Notion database, then on a weekly schedule pulls pending orders, geocodes addresses with OpenStreetMap Nominatim, genera...

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 Project Management use case.