Actions32
- Campaign Actions
- List Actions
- Media Actions
- Setting Actions
- Subscriber Actions
- Template Actions
- Transaction Actions
Template → Create
AI-generatedOverview
The node integrates with a listmonk instance, an email marketing and newsletter management platform. Specifically, the "Template" resource with the "Create" operation allows users to create new email templates within listmonk. This is useful for automating the creation of reusable email content such as campaigns or transactional messages.
Common scenarios include:
- Automatically generating campaign templates based on dynamic data.
- Creating transactional email templates (e.g., order confirmations) programmatically.
- Managing and updating email templates in bulk via workflows.
Example: A marketing team could use this node to create a new campaign template with a specific subject and HTML body, which can then be used in subsequent campaign sends.
Properties
| Name | Meaning |
|---|---|
| Name | The name identifier for the template being created. |
| Subject | The email subject line for the template. |
| Type | The category of the template; options are "Campaign" (for marketing emails) or "Transactional" (for automated system emails). |
| Body | The main content/body of the email template, typically HTML or text code. |
Output
The node outputs JSON data representing the newly created template object as returned by the listmonk API. This typically includes fields such as the template ID, name, subject, type, body content, and metadata about creation.
No binary data output is involved.
Dependencies
- Requires connection to a listmonk instance with valid credentials (username, password, and domain).
- The node expects an API endpoint at the configured domain under
/api. - Proper API authentication credentials must be set up in n8n for the node to function.
Troubleshooting
- Authentication errors: Ensure that the API credentials (domain, username, password) are correct and have sufficient permissions.
- Invalid input data: Required fields like "Name" must be provided; missing these will cause errors.
- API connectivity issues: Verify network access to the listmonk instance and that the base URL is correctly configured without trailing slashes.
- Template creation failures: Check that the "Type" field is set to either "campaign" or "tx" as expected by the API.