How to Connect Klaviyo to ChatGPT (Step-by-Step Guide)
If you want to ask ChatGPT questions about your Klaviyo campaigns — open rates, click rates, revenue per email, flow performance — you need a way to give it access to your actual data. Here's how to do it using Ask AI Data Connector and a Custom GPT.
What you'll be able to do
Once connected, you can ask ChatGPT things like:
- "Which Klaviyo campaigns had the best revenue per recipient this month?"
- "What's my average open rate across all flows?"
- "Which flow generates the most revenue — abandoned cart or post-purchase?"
- "Show me my top 10 campaigns by click-through rate this quarter"
- "How did my Black Friday email perform compared to last year?"
ChatGPT queries your real Klaviyo data and gives you actual answers — not generic email marketing advice.
Why you need a connector
ChatGPT can't see your Klaviyo account. When you ask it about email performance, it can only give general tips like "try A/B testing your subject lines." That's not useful when you need to know which specific campaign drove the most orders last week.
Ask AI Data Connector syncs your Klaviyo data — campaigns, flows, metrics, and subscriber engagement — and makes it queryable through ChatGPT via a Custom GPT. You get real answers from real data.
Prerequisites
- A Klaviyo account with campaign data
- A ChatGPT Plus or Team account (Custom GPTs require a paid plan)
- Your Klaviyo API key
- 5 minutes
Step 1: Sign up for Ask AI Data Connector
Go to ask-ai-data-connector.co.uk/signup and create a free account. No credit card required — you get a 3-day free trial.
Step 2: Connect Klaviyo
From your dashboard, go to Data Sources and click Klaviyo. You'll need your Klaviyo API key:
- In Klaviyo, go to Settings → API Keys
- Create a new private API key (or use an existing one) with read-only access
- Paste it into Ask AI and click Connect
Your campaign and flow data will start syncing immediately.
Step 3: Connect Shopify too (recommended)
This is where it gets powerful. If you connect Shopify alongside Klaviyo, you can ask cross-source questions like:
- "Which Klaviyo campaigns drove the most Shopify orders?"
- "What's the revenue per email for my welcome flow vs my abandoned cart flow?"
- "Show me customers who opened my last campaign but didn't purchase"
One question, two data sources, one answer. That's the thing that takes 30 minutes in spreadsheets.
Step 4: Get your API key and OpenAPI spec
Navigate to AI Tools in your dashboard and click ChatGPT. You'll see:
- Your API key — this authenticates ChatGPT's requests to your data
- The OpenAPI specification URL — ChatGPT uses this to understand what queries it can make
Copy both of these.
Step 5: Create a Custom GPT
-
Open chatgpt.com
-
Click your profile → My GPTs → Create a GPT
-
In the Configure tab:
- Name: Something like "My Marketing Data" or your brand name
- Description: "Queries my live Klaviyo and Shopify data"
- Instructions: "You have access to my Klaviyo email marketing data and Shopify store data through the Ask AI API. Use the available actions to answer questions about campaign performance, flows, revenue attribution, and subscriber engagement. Always use real data — never guess or make up numbers."
-
Scroll down to Actions → Create new action
-
Click Import from URL and paste your OpenAPI specification URL
-
Under Authentication, select API Key, enter your API key, and set the header to
Authorizationwith the prefixBearer -
Click Save
Step 6: Start asking questions
Open your new Custom GPT and try:
"Which Klaviyo campaigns generated the most revenue this month?"
ChatGPT will call the Ask AI API, query your Klaviyo data, and return real numbers.
Try a few more:
"What's my average open rate this month compared to last month?"
"Which flows have the highest click-to-conversion rate?"
"Show me a breakdown of revenue by campaign for the last 30 days"
Questions that work best
Klaviyo data is especially good for:
- Campaign comparisons — "Which campaign had the best open rate this quarter?"
- Flow performance — "How much revenue did my abandoned cart flow generate this month?"
- Trend analysis — "Is my email engagement improving or declining over the last 3 months?"
- Revenue attribution — "What percentage of my total revenue came from email this month?" (requires Shopify connected too)
- Audience insights — "How many active subscribers do I have? How has that changed?"
What about Claude, Gemini, or Perplexity?
Ask AI also works with:
- Claude — via MCP (Model Context Protocol). The most seamless integration for deep analysis.
- Gemini — via function calling and REST API
- Perplexity — via MCP (Pro plan)
Setup instructions for each are in your AI Tools dashboard. You can use more than one — they all query the same data.
Is my data secure?
- Read-only access — we never modify your Klaviyo account
- AES-256-GCM encryption for all stored API keys
- Your API key controls access — only your Custom GPT can query your data
- Data is never used to train AI models
Get started
The whole process takes about 5 minutes: Sign up here, connect Klaviyo (and Shopify for cross-source queries), and create your Custom GPT.