Skip to main content

Airbyte Klaviyo Connector for AI platforms

Project description

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.54
  • Connector version: 1.0.3
  • Generated with Connector SDK commit SHA: 3cecc817f060335c13c5d88bc9ad34a4dace961f
  • Changelog: View changelog

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

airbyte_agent_klaviyo-0.1.54.tar.gz (159.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

airbyte_agent_klaviyo-0.1.54-py3-none-any.whl (186.8 kB view details)

Uploaded Python 3

File details

Details for the file airbyte_agent_klaviyo-0.1.54.tar.gz.

File metadata

  • Download URL: airbyte_agent_klaviyo-0.1.54.tar.gz
  • Upload date:
  • Size: 159.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for airbyte_agent_klaviyo-0.1.54.tar.gz
Algorithm Hash digest
SHA256 72555e2cbb1088eb4af1d3fa7ec8d85aa5af356237d7e186657246733bd76e7e
MD5 73f180d6856324ed081853daedc2ecd6
BLAKE2b-256 a9be90f508552ca8b9ccf970c0d22692152d33b27c1d5ba8997503a8d5584a74

See more details on using hashes here.

File details

Details for the file airbyte_agent_klaviyo-0.1.54-py3-none-any.whl.

File metadata

File hashes

Hashes for airbyte_agent_klaviyo-0.1.54-py3-none-any.whl
Algorithm Hash digest
SHA256 7c2e4bdd5e244ece532242ff37a9fbca345c00d9c41cdba84ef548a77d18902a
MD5 f76aec4bcbe5c2398d6ef0c2f6c26e3b
BLAKE2b-256 624ed75b60805b7d92896fe7e968afc1e5ee1548cd45e69ddd48f9ff3de1c1d0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page