🎫 Parse email body message

7,242 views · 🎫 Ticket Management & Triage

Description

Who we are

We are Aprende n8n, the first n8n Spanish course for all n8n lovers. If you want to learn more, you can find out more at Aprende n8n.

Task goal

This task allows extracting data from any email body with a NoCode snippet.

An small explanation

You receive an email when a user submits a form from your website.

All those emails usually have the same structure as the next one:

Name: Miquel
Email: miquel@aprenden8n.com
Subject: Welcome aboard
Message: Hi Miquel!

Thank you for your signup!

This task allows to parse any email body and assign all values to the defined labels, getting an output like this:

{
"Name": "Miquel",
"Email": "miquel@aprenden8n.com",
"Subject": "Welcome aboard",
"Message" "Hi Miquel! Thank you for your signup!"
}

After importing it

When you import the import, you get the next task in your n8n: aprenden8n.com_email_parser_task.jpeg

We recommend importing this workflow into your current task and adapting it. You define a couple of variables in the “Set values” SET:

We define the next values:

Body

Name: Miquel
Email: miquel@aprenden8n.com
Subject: Welcome aboard
Message: Hi Miquel!

Thank you for your signup!

Labels

Name,Email,Subject,Message

A screenshot of the Set output is the next one aprenden8n.com_email_parser_set.jpeg

If we check the “Function item” Node, we get the next content after executing the task: aprenden8n.com_email_parser_output.jpeg

Capabilities

The task has the next features:

Limitations

This task has limitations:

Help and comments

If you have any doubt about this snippet, please, contact us at miquel@aprenden8n.com.

You can contact us at Aprende n8n or in the Spanish n8n community

🔗 Nodes Used

Function Item, Start

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup