Klaviyo icon

Klaviyo

Interact with the Klaviyo API

Actions17

Overview

This node integrates with the Klaviyo API to update an existing email template. It allows users to modify the content of a specified template by providing new HTML, plain text, or AMP content. This is useful in scenarios where you want to programmatically update marketing or transactional email templates stored in Klaviyo without manually editing them through the Klaviyo dashboard.

Practical examples include:

  • Automatically updating promotional email templates based on seasonal campaigns.
  • Modifying transactional email templates dynamically when product details change.
  • Syncing template content updates from a CMS or external system into Klaviyo.

Properties

Name Meaning
Template ID The unique identifier of the template you want to update.
Template Content A collection of fields to update the template's content. Options include:
- HTML Content: The HTML version of the email template. Note: User-made Drag & Drop templates cannot be updated using this field and API.
- Text Content: The plain text version of the email template.
- AMP Content: The AMP (Accelerated Mobile Pages) version of the email template.

Output

The node outputs JSON data representing the response from the Klaviyo API after attempting to update the template. This typically includes the updated template's metadata and content attributes as confirmed by the API.

The node does not output binary data.

Dependencies

  • Requires an API key credential for authenticating with the Klaviyo API.
  • The node communicates with the Klaviyo API endpoint at https://a.klaviyo.com/api.
  • Proper configuration of the API key credential within n8n is necessary for successful requests.

Troubleshooting

  • Invalid Template ID: If the provided Template ID does not exist or is incorrect, the API will return an error indicating the resource was not found. Verify the Template ID before running the node.
  • Updating Drag & Drop Templates: Attempting to update user-made Drag & Drop templates via the HTML Content field will fail because the API does not support this. Use other methods or update these templates directly in Klaviyo.
  • Authentication Errors: Ensure that the API key credential is valid and has sufficient permissions to update templates.
  • Malformed Content: Providing invalid HTML or AMP content may cause the API to reject the update. Validate your content before submission.

Links and References

Discussion