Agent Connector

Connect your agents to Klaviyo

Production-ready access to your Klaviyo data with managed auth, parametric control, and the reliability your agents need to actually work.

Installation & Usage

Get start with the Klaviyo connector in minutes.

[01]

Install Package

Using uv or pip

BASH

Copy
uv pip install airbyte-agent-klaviyo

[02]

Import

Initialize and use

PYTHON

Copy
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>"
    )
)

[03]

Tool

Add tools to your agent

python

Copy
@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 {})

Supported Entities & Actions

Access all your Klaviyo data through a unified API

Lorem ipsum

Lorem ipsum

| Entity | Actions |\n|--------|---------|\n| Profiles | [List](./REFERENCE.md#profiles-list), [Get](./REFERENCE.md#profiles-get), [Search](./REFERENCE.md#profiles-search) |\n| Lists | [List](./REFERENCE.md#lists-list), [Get](./REFERENCE.md#lists-get), [Search](./REFERENCE.md#lists-search) |\n| Campaigns | [List](./REFERENCE.md#campaigns-list), [Get](./REFERENCE.md#campaigns-get), [Search](./REFERENCE.md#campaigns-search) |\n| Events | [List](./REFERENCE.md#events-list), [Search](./REFERENCE.md#events-search) |\n| Metrics | [List](./REFERENCE.md#metrics-list), [Get](./REFERENCE.md#metrics-get), [Search](./REFERENCE.md#metrics-search) |\n| Flows | [List](./REFERENCE.md#flows-list), [Get](./REFERENCE.md#flows-get), [Search](./REFERENCE.md#flows-search) |\n| Email Templates | [List](./REFERENCE.md#email-templates-list), [Get](./REFERENCE.md#email-templates-get), [Search](./REFERENCE.md#email-templates-search) |

Example Prompts

The Klaviyo connector is optimized to handle prompts like these

Lorem ipsum

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

Why Airbyte for AI Agents?

Built for production AI workloads with enterprise-grade reliability

Secure Authentication

Built-in OAuth 2.0 handling with automatic token refresh. No hard-coded credentials.

Agent-Native Design
Heading

Structured, LLM-friendly schemas optimized for AI agent consumption with natural language query support.

Production Ready

Battle-tested connectors with comprehensive error handling, logging, and retry logic.

Open Source

Fully open source under the MIT license. Contribute, customize, and extend freely.

Works with your favorite frameworks

Use the Salesforce connector with any AI agent framework.

LangChain

CrewAI

LlamaIndex

AutoGen

OpenAI Agents SDK

Claude Agents SDK

Frequently Asked Questions

Didn't find your answer? Please don't hesitate to reach out.

How do I authenticate with Klaviyo?

The Klaviyo connector supports direct API key authentication in open source mode, where you provide your Klaviyo private API key directly via the KlaviyoAuthConfig. In hosted mode, credentials are stored securely in Airbyte Cloud and accessed using AirbyteAuthConfig with your Airbyte client ID and secret.

Can I use this connector with any AI agent framework?

The connector is compatible with any Python-based AI agent framework including LangChain, LlamaIndex, CrewAI, Pydantic AI, and custom implementations.

Does this connector support write operations?

Currently, the Klaviyo connector focuses on read operations only. Write operations such as creating profiles, updating email addresses, deleting lists, sending campaigns, or adding profiles to lists are not supported at this time.

How is this different from the Airbyte data connector?

Agent connectors are specifically designed for AI agents and LLM applications. They provide natural language interfaces, optimized response formats, and seamless integration with agent frameworks, unlike traditional ETL-focused connectors.

Ready to connect your AI agents to Klaviyo?

Get started in minutes with our open-source connector.