Templates / Generate dynamic contents for EMAILS or HTML pages

Generate dynamic contents for EMAILS or HTML pages

Needs changes

by Miquel Colomer ✓ · 9,506 views · created 2022-09-11 · Document Extraction

Needs changes. This template uses 2 thing(s) that n8n 3.0 removes: Item Lists (legacy), Function Item (legacy). 2 breaking item(s) found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 8 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Customer Datastore (n8n training) and Document Generator (community).

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Customer Datastore (Customer Datastore (n8n training)): get all people
  2. Item Lists: reshapes item lists (legacy Item Lists node)
  3. All items, one template (Document Generator): uses Document Generator
  4. Add lines (Function Item): runs custom JavaScript per item (legacy Function Item node)
  5. Send one HTML Email per list (Send Email): sends an email over SMTP
  6. One item per template (Document Generator): uses Document Generator
  7. Send one TEXT email per item (Send Email): sends an email over SMTP

Services it uses

Customer Datastore (n8n training)Document Generator (community)

Before you upgrade to n8n 3.0

2 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:

  • Item Lists (legacy) in Item Lists: replace with Split Out, Aggregate, Sort, Limit, Remove Duplicates or Summarize (match the operation used).
  • Function Item (legacy) in Add lines: replace with Code node, mode 'Run Once for Each Item'.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Published 2022 — 25% of templates published before 2025 need changes for 3.0. See how template age affects 3.0 readiness →

Removed in 3.0Replace with
Item Lists (legacy)
Item Lists
Split Out, Aggregate, Sort, Limit, Remove Duplicates or Summarize (match the operation used)
Function Item (legacy)
Add lines
Code node, mode 'Run Once for Each Item'

Nodes used (6)

From the author

==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…

Excerpt from Miquel Colomer's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.