Skip to main content

Generate dynamic contents for EMAILS or HTML pages

Workflow preview

Workflow preview
100%
Generate dynamic contents for EMAILS or HTML pages preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

==Disclaimer: This template contains a community node and therefore only works for n8n self hosted users== This is Miquel from [Aprende n8n](ht...

Best for

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

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.n8ntrainingcustomerdatastore, n8n-nodes-base.itemlists, n8n-nodes-document-generator.documentgenerator, n8n-nodes-base.functionitem, n8n-nodes-base.emailsend

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Miquel Colomer.

Original n8n.io source

1.1 Workflow description

Title
Generate dynamic contents for EMAILS or HTML pages
Workflow name
Generate dynamic contents for EMAILS or HTML pages

==Disclaimer: This template contains a community node and therefore only works for n8n self-hosted users==

This is Miquel from Aprende n8n and Automate with n8n.

We have created a new community node Document Generator that generates dynamic content using templates.

You can compose complex content with no SETs or FUNCTION ITEMs nodes using this node, like:

  • Send one email with a list of items in the body (i.e., one email with the last entries of an RSS feed).
  • Send one email per item (i.e., one invoice per email).

Emails are just a sample. You can create complex dynamic content to:

  • Send messages to Telegram/Slack.
  • Create WordPress entries.
  • Create HTML pages for your website.
  • Create tickets.

And more! The sky is your limit ;)

If you want to use this workflow, install the community node n8n-nodes-document-generator from Settings > Community nodes. Type "n8n-nodes-document-generator", check "I understand the risks..." and click on "Install":

Later, copy and paste this workflow into your n8n.

You will get this workflow:

This workflow uses the Customer Datastore node to generate sample input items.

You can render one template with all items (enable "Render All Items with One Template"):

or one template per input item:

Visit the oficial NPM page to see more samples.

Learning n8n by yourself is nice, but a bit tricky :) We offer n8n training video courses at Aprende n8n. If you need custom trainings, let us know.

Additionally, you can contact us at Automate with n8n if you need the next services:

  • Custom installations.
  • Custom nodes.
  • Monitor and alarms.
  • Delegate 12/5 or 24/7 workflow issue resolutions.
  • Automated backups of your workflows.
  • HTTP integrations of non-supported APIs.
  • Complex workflows.

I hope you will enjoy this new node and this workflow.

Automate your life! Automate it with n8n!

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 - On clicking 'execute'

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

Block 2 - Customer Datastore

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

Block 3 - Item Lists

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

Block 4 - One item per template

Type / Role
n8n-nodes-document-generator.DocumentGenerator - DocumentGenerator
Config choices
Version 1

Block 5 - All items, one template

Type / Role
n8n-nodes-document-generator.DocumentGenerator - DocumentGenerator
Config choices
Version 1

Block 6 - Add lines

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

Block 7 - Send one TEXT email per item

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

Block 8 - Send one HTML Email per list

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

3. Summary Table

Workflow Generate dynamic contents for EMAILS or HTML pages
Complexity intermediate
Nodes 8
Categories Document Extraction
Author Miquel Colomer
Published 11 Sept 2022

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/1790/1790.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 Generate dynamic contents for EMAILS or HTML pages do?

==Disclaimer: This template contains a community node and therefore only works for n8n self hosted users== This is Miquel from [Aprende n8n](ht...

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.