Skip to main content

Airbyte Klaviyo Connector for AI platforms

Project description

Klaviyo agent connector

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
  • Get profile details for a specific contact
  • Show me all email lists
  • Get details for a specific email list
  • What campaigns have been created?
  • Get details for a specific campaign
  • Show me all email campaigns
  • List all events for tracking customer actions
  • Show me all metrics (event types)
  • Get details for a specific metric
  • What automated flows are configured?
  • Get details for a specific flow
  • List all email templates
  • Get details for a specific 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.

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

connector = KlaviyoConnector(
    external_user_id="<your_external_user_id>",
    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
Lists List, Get
Campaigns List, Get
Events List
Metrics List, Get
Flows List, Get
Email Templates List, Get

Authentication and configuration

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

Klaviyo API docs

See the official Klaviyo API reference.

Version information

  • Package version: 0.1.8
  • Connector version: 1.0.0
  • Generated with Connector SDK commit SHA: 30d23e05ea640689df95fa82153916c6f67fa916
  • 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.8.tar.gz (131.7 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.8-py3-none-any.whl (157.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for airbyte_agent_klaviyo-0.1.8.tar.gz
Algorithm Hash digest
SHA256 7ca1c43157655eac5ba5a06f6206da5e6166906e140fb63df003dcd753b7d465
MD5 cb255360880ff84570fba2f3509c3446
BLAKE2b-256 3f3088a00cb49d6f6332c221ed4df3e387b934f52ceb1d2f02ca7bbe31ffc7dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for airbyte_agent_klaviyo-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 13044126c5c5fad29892f670be33507f0566a3854b122b3137b21e7a9a14ea6c
MD5 07a544527c7ab0d051d37837902fce25
BLAKE2b-256 a09ed23d1320a0095092a42eb5e8f4daf240cd510d29ff2566514f3780dfba6e

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