Electronic data interchange EDI message parsing with Gmail
Tags: Supply Chain Management, Logistics, Transportation, Data Transmission Context Hey! I'm Samir , a Supply Chain Engineer and Data Scientist from Paris fo...
🔌 Nodes & Integrations Used (3)
📖 Implementation & Setup Guide
*Tags: Supply Chain Management, Logistics, Transportation, Data Transmission*
Context Hey! I'm [Samir](https://samirsaci.com) , a **Supply Chain Engineer and Data Scientist from Paris** founder of [LogiGreen Consulting](https://www.logi-green.com/)
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](https://www.linkedin.com/in/samir-saci)
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.
[](https://youtu.be/-phwXeYk7Es)
For instance, a manufacturing company can receive purchase orders from a retailer via EDI.
[](https://youtu.be/-phwXeYk7Es)
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**
[](https://youtu.be/-phwXeYk7Es)
🎥 [Check My Tutorial](https://youtu.be/-phwXeYk7Es)
🚀 Interested in applications of N8N for Logistics & Supply Chain Management? Let's connect on [Linkedin](www.linkedin.com/in/samir-saci)
Notes - This template includes an example of EDI message to test the workflow. - If you want to learn more about Electronic Data Interchange: 🚚 [Blog Article about Electronic Data Interchange (EDI)](https://www.samirsaci.com/what-is-edi-electronic-data-interchange/)
*This workflow has been created with N8N 1.82.1* *Submitted: March 19th, 2025*
⚡ How to import this workflow into n8n:
- Click the Direct Download JSON button above to save
_Electronic_data_interchange_EDI_message_parsing_with_Gmail.json. - Log in to your n8n Cloud or self-hosted n8n instance.
- In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
- Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
- Click Execute Workflow to test and switch to Active!
Related Email & Outreach Workflows
View All in Email & Outreach →Abandoned cart recovery for Shopify via Gmail Google Sheets T
Who is this for? This template is ideal for solo store owners, eCommerce marketers, automation beginners, or anyone using Shopify and Gmail who wants to reco...
Add new leads in Lemlist from Airtable
This workflow allows you to add new leads in Lemlist from Airtable. !workflow-screenshot Airtable node: This node lists all the emails that are stored in you...
Add Subscriber and Send Email Campaign
Production-ready n8n automation template for Add Subscriber and Send Email Campaign built by AhiXLight. Seamlessly connects Sendy with 3 configured nodes.
Add new contacts from HubSpot to the email list in Mailchimp
This workflow adds new HubSpot contacts to the Mailchimp email list. Prerequisites - HubSpot account and HubSpot credentials - Mailchimp account and Mailchim...