Klaviyo icon

Klaviyo

Interact with the Klaviyo API

Actions17

Template → Create

AI-generated

Overview

This node interacts with the Klaviyo API to create a new email template. It is useful for automating the creation of email templates within Klaviyo, which can then be used for email marketing campaigns. For example, a user can create a template with specific HTML content, text content, and AMP content, specifying the template name and type (Code or Drag & Drop editor).

Use Case Examples

  1. Creating a new email template named 'Welcome Email' with custom HTML and text content for a marketing campaign.
  2. Automating the creation of multiple templates with different types and content for various email campaigns.

Properties

Name Meaning
Template Name The name of the template to be created.
Template Type The type of the template editor, either 'Code' or 'Drag & Drop'.
HTML Content The HTML content of the email template.
Text Content The plain text content of the email template.
AMP Content The AMP (Accelerated Mobile Pages) content of the email template.
Request Options Additional options for the request such as batching, SSL certificate validation, proxy settings, and timeout.

Output

JSON

  • data
    • id - The unique identifier of the created template.
    • attributes
      * name - The name of the created template.
      * editor_type - The type of editor used for the template (Code or Drag & Drop).
      * html - The HTML content of the created template.
      * text - The plain text content of the created template.
      * amp - The AMP content of the created template.

Dependencies

  • Klaviyo API key credential

Troubleshooting

  • Ensure the API key credential is correctly configured and has permissions to create templates in Klaviyo.
  • Check that the template name is provided and is unique to avoid conflicts.
  • If SSL issues occur, consider enabling the 'Ignore SSL Issues' option, but be aware of security risks.
  • Verify proxy settings if used to ensure requests are properly routed.
  • Timeout errors may occur if the server is slow to respond; adjust the timeout setting accordingly.

Links

Discussion