Resend icon

Resend

Send emails, manage contacts, create broadcasts, handle templates, domains, segments, topics, and webhooks using the Resend email platform

Template → Create

AI-generated

Overview

This node operation creates a new email template in the Resend email platform. It allows users to define a reusable email template with a descriptive name, default sender email, subject line, HTML content, and dynamic template variables. This is useful for automating email campaigns, transactional emails, or any scenario where consistent email formatting and content personalization are needed.

Use Case Examples

  1. Creating an order confirmation email template with dynamic product and price variables.
  2. Setting up a welcome email template with personalized customer names and fallback values.

Properties

Name Meaning
Name A descriptive name for the template used for identification in the template list.
From Default sender email address for emails using this template, must be from a verified domain and formatted as 'Display Name email@domain.com'.
Subject Default subject line for emails using this template, supporting template variables for dynamic content.
HTML Content HTML content of the template with support for dynamic variables using {{{VARIABLE|fallback}}} syntax.
Template Variables Defines variables that will be replaced with actual values when sending emails, including their key names, data types (string or number), and fallback values.

Output

JSON

  • templateId - Unique identifier of the created template.
  • templateName - Name of the created template.
  • templateFrom - Sender email address set for the template.
  • templateSubject - Subject line set for the template.
  • templateHtml - HTML content of the created template.
  • templateVariables - List of variables defined for the template with their keys, types, and fallback values.

Dependencies

  • Requires an API key credential for the Resend email platform to authenticate and authorize template creation requests.

Troubleshooting

  • Ensure the 'From' email address is from a verified domain to avoid validation errors.
  • Verify that all required fields (Name, From, Subject, HTML Content) are provided to prevent missing parameter errors.
  • Use correct syntax for template variables in the HTML content to avoid rendering issues during email sending.

Discussion