Generate dynamic contents for EMAILS or HTML pages
Needs changesWhat 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”.
- Customer Datastore (Customer Datastore (n8n training)): get all people
- Item Lists: reshapes item lists (legacy Item Lists node)
- All items, one template (Document Generator): uses Document Generator
- Add lines (Function Item): runs custom JavaScript per item (legacy Function Item node)
- Send one HTML Email per list (Send Email): sends an email over SMTP
- One item per template (Document Generator): uses Document Generator
- Send one TEXT email per item (Send Email): sends an email over SMTP
Services it uses
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.0 | Replace 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)
- Manual Trigger
n8n-nodes-base.manualTrigger - Customer Datastore (n8n training)
n8n-nodes-base.n8nTrainingCustomerDatastore - Item Lists
n8n-nodes-base.itemLists - Document Generator
n8n-nodes-document-generator.DocumentGenerator - Function Item
n8n-nodes-base.functionItem - Send Email
n8n-nodes-base.emailSend
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…