How to connect Klaviyo to Composio

7 min read

Composio connects AI agents to Klaviyo so they can manage profiles, lists, campaigns, templates and flows, and pull performance reports. This works with Claude, ChatGPT, Cursor, and custom agents built with the Composio SDK or MCP. Your agent connects to your Klaviyo account through OAuth, and you can disconnect at any time.

You need a Klaviyo account and a user role that can authorize apps: Owner, Admin or Manager. [VERIFY roles] You also need a free Composio account at https://dashboard.composio.dev. You don't need to create your own OAuth app. Composio's Klaviyo app handles authorization for you.

On this page: Part 1: Connect Klaviyo in Composio · Part 2: Use Klaviyo with your agent · Part 3: Add new subscribers to a Klaviyo list · Part 4: Report on campaign and flow performance · Manage your Klaviyo data and revoke access

Part 1: Connect Klaviyo in Composio

Step 1: Start the connection

1. Open the Composio listing in the Klaviyo App Marketplace and select Install. [INSTALL URL – confirm with engineering]

2. Sign in to Composio, or create a free account. Composio then sends you to Klaviyo's authorization screen.

[Screenshot: Composio listing in the Klaviyo App Marketplace with the Install button]

You can also start in the Composio dashboard:

1. Open Auth Configs and select Create.

2. Search for Klaviyo and choose OAuth 2.0.

3. Select Create Auth Config, then select Connect Account.

[VERIFY: managed-auth option label in the new dashboard]

Step 2: Review permissions and authorize

1. If you have more than one Klaviyo account, choose the one you want to connect.

2. Review the permissions Composio requests, then select Allow.

[Screenshot: Klaviyo authorization screen with the Allow button]

If you don't see Allow, your Klaviyo role may not be able to authorize apps. Ask an Owner or Admin to connect.

If you select Deny, Klaviyo shows this message: "Authorization was declined. Please authorize access by clicking 'Allow' to enable integration." You can start again from Step 1 at any time.

Permission reference. Composio uses these permissions only when you or your agent runs a tool. [VERIFY final scope list with engineering]

Scope

Why Composio needs it

accounts:read

Read account timezone and currency

campaigns:read/write

Create, clone and schedule campaigns

catalogs:read/write

Manage catalog items, such as products

coupons:read/write

View and create coupons

coupon-codes:read/write

View and create unique coupon codes

data-privacy:read/write

Submit profile deletion requests when you ask

events:read/write

Read and record events

flows:read/write

View flows and turn them on or off

images:read/write

View images and upload new ones for templates

lists:read/write

Create lists and manage members

metrics:read/write

View metrics used in reports

profiles:read/write

View, create, update and merge profiles

push-tokens:read/write

Manage push notification tokens

segments:read/write

View and create segments

subscriptions:read/write

Subscribe or unsubscribe profiles, with consent

tags:read/write

View, create and apply tags

templates:read/write

View, create and update email templates

conversations:read/write

View and reply to SMS conversations

Step 3: Confirm the connection is Active

1. Klaviyo returns you to Composio. Wait for the successful-connection confirmation.

2. Open Connected Accounts and check that your Klaviyo account shows Active.

[Screenshot: Composio connected account for Klaviyo with status Active]

If the account shows Expired or Failed, reconnect by starting again from Step 1.

Part 2: Use Klaviyo with your agent

Step 1: Add Composio to your agent

1. Claude, ChatGPT or Cursor: Add Composio's MCP endpoint to your AI app. The setup steps are at https://docs.composio.dev.

2. Your own code: Install the Composio SDK. Use the same user_id you used when you connected Klaviyo.

Step 2: Run your first request

Ask your agent, "Show me my Klaviyo lists." Or run this in code:

from composio import Composio

composio = Composio()
result = composio.tools.execute(
    "KLAVIYO_GET_LISTS",
    user_id="your-user-id",
    arguments={}
)
print(result)

[VERIFY snippet runs as-is on the current Python SDK]

If a request fails with a rate-limit error, wait a minute and try again.

Part 3: Add new subscribers to a Klaviyo list

Add new sign-ups from another tool, such as a form or a spreadsheet, to a Klaviyo list with their consent. Before you start, complete Part 1. Make sure everyone on your sign-up list agreed to receive email marketing.

Example prompt: "Add everyone from this sheet to my 'Newsletter' list in Klaviyo and subscribe them to email marketing."

Step 1: Find the list

Your agent looks up your lists with KLAVIYO_GET_LISTS and picks the one you name.

Step 2: Create or update each profile

Your agent calls KLAVIYO_CREATE_OR_UPDATE_PROFILE with each person's email, name and other details. If a profile already exists, it's updated rather than duplicated. Include an external_id, such as your CRM ID, to avoid duplicate profiles.

Step 3: Subscribe them with email consent

Your agent calls KLAVIYO_SUBSCRIBE_PROFILES with the list ID. This records consent and adds each person to the list. Only subscribe people who gave consent. If the list uses double opt-in, Klaviyo sends a confirmation email first.

Step 4: Check the list in Klaviyo

Open Audience → Lists & Segments, select the list, and confirm that the new profiles appear. Klaviyo processes subscriptions in the background, so this can take a few minutes.

[Screenshot: Agent reply confirming the profiles were subscribed, next to the Klaviyo list showing the new members]

Test with two or three rows before a large import.

Part 4: Report on campaign and flow performance

Get opens, clicks and revenue for your campaigns and flows in one summary. Before you start, complete Part 1. To share the report, also connect Slack or Google Sheets to Composio.

Example prompt: "Give me open rate, click rate and revenue for every campaign and flow in the last 30 days, ranked by revenue."

Step 1: Choose the time frame and conversion metric

Pick a period, such as the last 30 days. Then pick the metric that counts as a conversion, usually Placed Order. Your agent can find it with KLAVIYO_GET_METRICS. Use the same metric in every report, so the numbers can be compared.

Step 2: Get campaign and flow results

Your agent calls KLAVIYO_QUERY_CAMPAIGN_VALUES and KLAVIYO_QUERY_FLOW_VALUES for opens, clicks, conversions and revenue.

Klaviyo limits how often reports can run (about 2 per minute and 225 per day). Ask for campaigns and flows together rather than running many small reports.

Step 3: Summarize or share the results

Your agent ranks and summarizes the results. It can also post them to Slack or a Google Sheet through Composio. Keep reporting prompts read-only, for example "show me" or "summarize". That way, your agent doesn't change anything.

[Screenshot: Agent reply with a table of campaigns and flows ranked by revenue]

Manage your Klaviyo data and revoke access

How Composio uses Klaviyo data

Composio doesn't copy or bulk-sync your Klaviyo data. A read or write happens only when you or your agent runs a Composio tool, and the result goes back to that agent. Composio stores only two things: the OAuth connection it needs to make those calls, and execution logs that you can view in your Composio dashboard. [VERIFY log retention period and wording with engineering/security]

For every Klaviyo object, field and tool, see the Klaviyo data reference. [VERIFY data reference URL, and that the page no longer mentions API-key auth]

Request deletion of stored Klaviyo data

To ask Composio to delete Klaviyo-related data it stores, such as execution logs, email [SUPPORT EMAIL – e.g. support@composio.dev]. Tell us which Composio account and Klaviyo connection the request is about, and which data you want deleted. Never include passwords or tokens.

Revoke access

  • In Composio: Open Connected Accounts, select your Klaviyo account, and choose Delete. Composio revokes its access right away, and the app is removed from Klaviyo's Integrations page. [VERIFY token revocation on delete with engineering]

  • In Klaviyo: Open Integrations, find Composio, and remove it.

Revoking access stops Composio from reaching your Klaviyo account. It doesn't delete data that Composio already stored. To remove that, request deletion as described above.

Get help

Email [SUPPORT EMAIL – e.g. support@composio.dev] or join our Discord at [DISCORD LINK]. Developers: see https://docs.composio.dev.


Share