klaviyo-core-workflow-b

Featured

Execute Klaviyo secondary workflow: event tracking, segments, and campaigns. Use when tracking customer events, creating segments, building campaigns, or triggering flows via the Klaviyo API. Trigger with phrases like "klaviyo events", "klaviyo segments", "klaviyo campaigns", "track klaviyo event", "klaviyo flow trigger".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Klaviyo Core Workflow B -- Events, Segments & Campaigns ## Overview Secondary workflow: track customer events, query segments, create/send campaigns, and trigger metric-based flows via the `klaviyo-api` SDK. ## Prerequisites - Completed `klaviyo-core-workflow-a` (profiles/lists set up) - API key scopes: `events:write`, `segments:read`, `campaigns:read`, `campaigns:write`, `flows:read` ## Instructions ### Step 1: Track Server-Side Events ```typescript import { ApiKeySession, EventsApi, EventEnum, ProfileEnum, MetricsApi, } from 'klaviyo-api'; const session = new ApiKeySession(process.env.KLAVIYO_PRIVATE_KEY!); const eventsApi = new EventsApi(session); // Track a purchase event (creates the metric if it doesn't exist) await eventsApi.createEvent({ data: { type: EventEnum.Event, attributes: { metric: { data: { type: 'metric', attributes: { name: 'Placed Order' }, }, }, profile: { data: { type: ProfileEnum.Profile, attributes: { email: 'customer@example.com' }, }, }, properties: { orderId: 'ORD-12345', items: [ { productId: 'SKU-001', name: 'Widget', quantity: 2, price: 29.99 }, { productId: 'SKU-002', name: 'Gadget', quantity: 1, price: 49.99 }, ], itemCount: 3, discount: 10.00, }, // Monetary value for revenue attribution value: 99.97, time: new Date().toISOString(...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

klaviyo-core-workflow-a

Execute Klaviyo primary workflow: profiles, lists, and subscriptions. Use when creating/updating profiles, managing lists, subscribing contacts, or syncing customer data to Klaviyo for email/SMS marketing. Trigger with phrases like "klaviyo profiles", "klaviyo lists", "klaviyo subscribe", "add contacts to klaviyo", "klaviyo customer data".

2,266 Updated today
jeremylongshore
AI & Automation Featured

customerio-primary-workflow

Implement Customer.io primary messaging workflow. Use when setting up campaign triggers, welcome sequences, onboarding flows, or event-driven email automation. Trigger: "customer.io campaign", "customer.io workflow", "customer.io email automation", "customer.io messaging", "customer.io onboarding".

2,266 Updated today
jeremylongshore
AI & Automation Featured

klaviyo-hello-world

Create a minimal working Klaviyo example with real API calls. Use when starting a new Klaviyo integration, testing your setup, or learning basic profile creation and event tracking patterns. Trigger with phrases like "klaviyo hello world", "klaviyo example", "klaviyo quick start", "simple klaviyo code", "first klaviyo call".

2,266 Updated today
jeremylongshore
AI & Automation Featured

salesloft-core-workflow-b

Track SalesLoft activities, emails, calls, and analytics via the REST API. Use when reading email engagement data, logging call dispositions, or building sales activity dashboards. Trigger: "salesloft activities", "salesloft emails", "salesloft calls", "salesloft analytics".

2,266 Updated today
jeremylongshore
AI & Automation Featured

hootsuite-core-workflow-b

Execute Hootsuite secondary workflow: Core Workflow B. Use when implementing secondary use case, or complementing primary workflow. Trigger with phrases like "hootsuite secondary workflow", "secondary task with hootsuite".

2,266 Updated today
jeremylongshore