Parse Email Body Message
# 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](https://aprenden8n.com). # Our goal This task allows extracting data from any email body with a NoCode snippet. # A 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 parsing any email body and assigning 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:  We recommend importing this workflow into your current task and adapting it. You define a couple of variables in the Set values SE: - body: the email body you want to parse. You can add this as an expression from previous variables. - labels: the keywords you want to detect and parse. Labels are case insensitive. 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  If we check the Function item Node, we get the next content after executing the task:  # Capabilities The task has the next features: - You can detect as many labels as you want. - Label detection is case insensitive. - You can use the snippet as an independent workflow to call it generically, adding the Function item to the workflow and passing body and labels as parameters. # Limitations This task has limitations: - The parser only accepts multiline values at the end of the email. # 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](https://aprenden8n.com) or in the [Spanish n8n community](https://t.me/comunidadn8n)
New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.
Secure checkout powered by Stripe
Support
How to import this workflow into n8n
- 1Purchase or download the workflow to get the n8n workflow JSON file.
- 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
- 3Open each node marked with a credential warning and connect your own accounts and API keys.
- 4Run the workflow once manually to verify the data flow, then toggle it to Active.
Related Data & Analytics workflows
- Generate AI viral videos with VEO 3 and upload to TikTok$14.99
- Generate a daily multi-asset market report with TwelveData, Groq and Google Sheets$14.99
- Build an OpenAI RAG system with document upload, semantic search and caching$24.99
- Automate Website Content Scraping and SEO Keyword Extraction with GPT-4o-mini and Airtable$14.99
- Process Contact Form Submissions with Validation and MongoDB Storage$14.99
- Add webhook data to a Google Sheet$2.99
More from Miquel Colomer
Need this deployed? We'll set it up for you.
Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.