๐Ÿ”ฌ Listen on new emails on a IMAP mailbox

โšก 8,273 views ยท ๐Ÿ”ฌ Document Extraction & Analysis

Description

Listen on new emails on a given IMAP mailbox. Converts the binary XML attachment to a stringified xmlproperty on the $data object and converts it to JSON. The Setnode could be replaced with Function nodes for example to do a conversion/mapping/transformation.

workflow-screenshot

The JSON is ultimately sent to a HTTP Endpoint via POST.

This could be a starter for EDI purposes like receiving or transmitting XML data and conversion via JSON object property mapping.

๐Ÿ”— Nodes Used

Email Trigger (IMAP), HTTP Request, Convert to/from binary data

๐Ÿ“ฅ Import

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

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup