Klaviyo icon

Klaviyo

Interact with the Klaviyo API

Actions17

Event → Create

AI-generated

Overview

This node creates an event in the Klaviyo system. It is useful for tracking user interactions or custom events within an application or service. For example, you can use it to log user actions like purchases, sign-ups, or other custom metrics to analyze user behavior and engagement.

Use Case Examples

  1. Creating a custom event named 'n8n Event' with specific attributes and profile information to track user activity.
  2. Sending event data with custom attributes such as time, value, and unique_id along with user profile details like email and phone number.

Properties

Name Meaning
Event Metric The name of the event metric to create, which identifies the event type in Klaviyo.
Event Attributes Custom attributes and properties associated with the event, allowing detailed event data to be sent.
Profile Attributes Attributes related to the user profile associated with the event, such as email, phone number, external ID, and other personal or location details.
Request Options Settings for request behavior such as batching, SSL certificate validation, proxy usage, and timeout duration.

Output

JSON

  • data
    • id - The unique identifier of the created event.
    • type - The type of the created resource, typically 'event'.
    • attributes
      * metric
      * name - The name of the event metric created.
      * profile
      * data
      * type - The type of profile associated with the event.
      * attributes
      * email - Email attribute of the profile, if provided.

Dependencies

  • Klaviyo API key credential

Troubleshooting

  • Ensure that at least one of the required profile attributes (email, phone number, or external ID) is provided; otherwise, the event creation may fail.
  • Check network connectivity and API credentials if requests time out or return authentication errors.
  • If SSL certificate validation errors occur, consider enabling the 'Ignore SSL Issues' option, but be aware of security risks.

Links

Discussion