Skip to main content

πŸ“¦ Electronic data interchange (EDI) message parsing with Gmail and Google Sheet

Workflow preview

Workflow preview
100%
πŸ“¦ Electronic data interchange (EDI) message parsing with 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 Management, Logistics, Transportation, Data Transmission Context Hey! I'm Samir , a Supply Chain Engineer and Data Scientist from Paris founder of [LogiG...

Best for

  • Document Extraction automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.set, n8n-nodes-base.googlesheets, n8n-nodes-base.if, n8n-nodes-base.gmailtrigger, n8n-nodes-base.gmail, n8n-nodes-base.code, n8n-nodes-base.merge

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
πŸ“¦ Electronic data interchange (EDI) message parsing with Gmail and Google Sheet
Workflow name
πŸ“¦ Electronic data interchange (EDI) message parsing with Gmail and Google Sheet

Tags: Supply Chain Management, Logistics, Transportation, Data Transmission

Context

Hey! I'm Samir , a Supply Chain Engineer and Data Scientist from Paris founder of LogiGreen Consulting

We help small and medium businesses improve their logistics processes using AI, Data Analytics and Automation.

> Sustainable and Efficient supply chains with N8N!

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

What is an EDI Message?

Electronic Data Interchange (EDI) is a standardized method of automatically transferring data between computer systems.

They ensure the smooth flow of essential transactional data, such as purchase orders, invoices, shipping notices, and more.

For instance, a manufacturing company can receive purchase orders from a retailer via EDI.

However, they need complex integration for the transmission and processing of the messages.

Who is this template for?

This workflow template is designed for small companies that cannot connect to their customers and need to manually process the EDI messages received.

How does it work?

This workflow uses a Gmail Trigger that analyzes all the incoming emails.

  1. πŸ“§ Gmail Trigger β†’ Detects emails with "EDI" in the subject.
  2. πŸ“œ Parses EDI Message β†’ Uses a JavaScript Code Node to extract structured data.
  3. πŸ“Š Formats the Data β†’ Converts it into a table-friendly format.
  4. πŸ“‘ Updates Google Sheets β†’ Automatically logs the processed orders.

Prerequisite

This workflow does not require any additional paying subscription.

  • A Google Drive Account with a folder including a Google Sheet
  • API Credentials: Google Drive API, Google Sheets API and Gmail API
  • A Google sheet to store the shipment records. You do not need to prepare the columns.

Next Steps

Follow the sticky notes to set up the parameters inside each node and get ready to improve your logistics operations!

πŸ“Ί Watch the Step-by-Step Guide

πŸŽ₯ Check My Tutorial

πŸš€ Interested in applications of N8N for Logistics & Supply Chain Management? Let's connect on Linkedin

Notes

This workflow has been created with N8N 1.82.1 Submitted: March 19th, 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 - Order Information

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

Block 3 - Return Orders

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

Block 4 - Outbound Orders

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

Block 5 - Order Type

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

Block 6 - Sticky Note1

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

Block 7 - Sticky Note

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

Block 8 - Sticky Note2

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

Block 9 - Email Trigger

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

Block 10 - Subject includes EDI

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

Block 11 - Extract Body

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

Block 12 - Get Email

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

Block 13 - Parse EDI Message

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

Block 14 - Sticky Note4

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

Block 15 - Order Info + Orderlines

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3

Block 16 - Flatten Data to Orderlines

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

Block 17 - Split Out by Line

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

Block 18 - Sticky Note5

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

3. Summary Table

Workflow πŸ“¦ Electronic data interchange (EDI) message parsing with Gmail and Google Sheet
Complexity advanced
Nodes 18
Categories Document Extraction
Author Samir Saci
Published 19 Mar 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3221/3221.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 πŸ“¦ Electronic data interchange (EDI) message parsing with Gmail and Google Sheet do?

Tags: Supply Chain Management, Logistics, Transportation, Data Transmission Context Hey! I'm Samir , a Supply Chain Engineer and Data Scientist from Paris founder of [LogiG...

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