Skip to main content

Klaviyo

The Klaviyo agent connector is a Python package that equips AI agents to interact with Klaviyo through strongly typed, well-documented tools. It's ready to use directly in your Python app, in an agent framework, or exposed through an MCP.

Klaviyo is a marketing automation platform that helps businesses build customer relationships through personalized email, SMS, and push notifications. This connector provides access to Klaviyo's core entities including profiles, lists, campaigns, events, metrics, flows, and email templates for marketing analytics and customer engagement insights.

Example questions

The Klaviyo connector is optimized to handle prompts like these.

  • List all profiles in my Klaviyo account
  • Show me details for a recent profile
  • Show me all email lists
  • Show me details for a recent email list
  • What campaigns have been created?
  • Show me details for a recent campaign
  • Show me all email campaigns
  • List all events for tracking customer actions
  • Show me all metrics (event types)
  • Show me details for a recent metric
  • What automated flows are configured?
  • Show me details for a recent flow
  • List all email templates
  • Show me details for a recent email template

Unsupported questions

The Klaviyo connector isn't currently able to handle prompts like these.

  • Create a new profile
  • Update a profile's email address
  • Delete a list
  • Send an email campaign
  • Add a profile to a list

Installation

uv pip install airbyte-agent-klaviyo

Usage

Connectors can run in open source or hosted mode.

Open source

In open source mode, you provide API credentials directly to the connector.

from airbyte_agent_klaviyo import KlaviyoConnector
from airbyte_agent_klaviyo.models import KlaviyoAuthConfig

connector = KlaviyoConnector(
    auth_config=KlaviyoAuthConfig(
        api_key="<Your Klaviyo private API key>"
    )
)

@agent.tool_plain # assumes you're using Pydantic AI
@KlaviyoConnector.tool_utils
async def klaviyo_execute(entity: str, action: str, params: dict | None = None):
    return await connector.execute(entity, action, params or {})

Hosted

In hosted mode, API credentials are stored securely in Airbyte Cloud. You provide your Airbyte credentials instead. If your Airbyte client can access multiple organizations, also set organization_id.

This example assumes you've already authenticated your connector with Airbyte. See Authentication to learn more about authenticating. If you need a step-by-step guide, see the hosted execution tutorial.

from airbyte_agent_klaviyo import KlaviyoConnector, AirbyteAuthConfig

connector = KlaviyoConnector(
    auth_config=AirbyteAuthConfig(
        customer_name="<your_customer_name>",
        organization_id="<your_organization_id>",  # Optional for multi-org clients
        airbyte_client_id="<your-client-id>",
        airbyte_client_secret="<your-client-secret>"
    )
)

@agent.tool_plain # assumes you're using Pydantic AI
@KlaviyoConnector.tool_utils
async def klaviyo_execute(entity: str, action: str, params: dict | None = None):
    return await connector.execute(entity, action, params or {})

Full documentation

Entities and actions

This connector supports the following entities and actions. For more details, see this connector's full reference documentation.

Entity Actions
Profiles List, Get, Context Store Search
Lists List, Get, Context Store Search
Campaigns List, Get, Context Store Search
Events List, Context Store Search
Metrics List, Get, Context Store Search
Flows List, Get, Context Store Search
Email Templates List, Get, Context Store Search

Authentication

For all authentication options, see the connector's authentication documentation.

Klaviyo API docs

See the official Klaviyo API reference.

Version information

  • Package version: 0.1.56
  • Connector version: 1.0.4
  • Generated with Connector SDK commit SHA: c5258debd165ab701252c1436d4acfb475bf92b9
  • Changelog: View changelog

Metadata

Release files for airbyte-agent-klaviyo 0.1.56

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for airbyte-agent-klaviyo 0.1.56
File Size Uploaded
airbyte_agent_klaviyo-0.1.56.tar.gz 160.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for airbyte-agent-klaviyo 0.1.56
File Interpreter ABI Platform
airbyte_agent_klaviyo-0.1.56-py3-none-any.whl Python 3 none any Details

Total release size: 348.7 kB

Release files / airbyte_agent_klaviyo-0.1.56.tar.gz

Download URL airbyte_agent_klaviyo-0.1.56.tar.gz
Size 160.7 kB
Tags Source
SHA-256 checksum
How to use checksums
55794e4a8bd8cf51600360a46ac04f45d4300a0a542315497c0aaaa5fca3e71f
BLAKE2b-256 checksum
How to use checksums
af97a9cf6efc5b3af60909632073939f311b904bedde449fb99e53b9b5302a60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / airbyte_agent_klaviyo-0.1.56-py3-none-any.whl

Download URL airbyte_agent_klaviyo-0.1.56-py3-none-any.whl
Size 187.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4f8df68180b49c6f507afdf35a370a81674f0eba7830f7ed6201624070d6e8e3
BLAKE2b-256 checksum
How to use checksums
1bf40cc99767c24c1475829f05a05768e0350f97b6f55920c68e26e4a6cc462d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.1.56 This release

2 release files

0.1.48

2 release files

0.1.47

2 release files

0.1.46

2 release files

0.1.45

2 release files

0.1.44

2 release files

0.1.43

2 release files

0.1.42

2 release files

0.1.37

2 release files

0.1.36

2 release files

0.1.35

2 release files

0.1.34

2 release files

0.1.33

2 release files

0.1.32

2 release files

0.1.31

2 release files

0.1.30

2 release files

0.1.29

2 release files

0.1.28

2 release files

0.1.27

2 release files

0.1.26

2 release files

0.1.25

2 release files

0.1.24

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page