Template literal
A string that contains dynamic expressions resolved at runtime. In n8n: `"Hello {{contact.firstName}}, your invoice for £{{invoice.amount}} is due on {{invoice.dueDate}}"`. Template literals personalise outputs without hardcoding values.
Expert insight
Template literals used to construct dynamic strings (building an email body or API request from variables) need to handle the case where an expected variable is empty or missing, a template that assumes every field will always have a value produces broken-looking output ("Hello ," with a missing name) the first time a real record doesn't match that assumption.
In a real workflow
A message template like "Hi {{first_name}}, your order {{order_id}} has shipped" is filled with real values.
Common mistakes
- Empty variables producing "Hi ,".
- Unescaped values breaking the output.
Complexity level
Anyone can understand this no technical background needed.
Related terms
See it in action
Want Template literal built into your automation?
Book a free audit and we'll show you exactly how this applies to your business.
Get my free automation plan →Who we build for
Run a firm, an agency or an online store? We automate the work behind it.
Done-for-you n8n workflows and Claude AI agents, fixed price, maintained for you.
- Professional firms Onboarding, documents, billing and reporting run on their own. See what we automate →
- Agencies and SaaS teams Custom n8n and Claude builds, client reporting and internal tools. See what we automate →
- E-commerce brands Orders, support, returns and stock handled without the busywork. See what we automate →
More in Core concepts
Keep exploring
URL encoding
Converting special characters in URLs into a format that can be transm…
Utility node
A general-purpose workflow step that performs a common operation wait,…
Variable (workflow)
A named storage location that holds a value used across multiple steps…
Versioning (API)
API providers update their APIs over time and version them (v1, v2, v3…
Wait / delay node
A workflow step that pauses execution for a defined period or until a …
Webhook replay
Re-sending a previously received webhook payload through a workflow, t…