Email campaign report
Reports last week's Klaviyo campaigns and flows in Slack each Monday, against the four weeks before, with any deliverability warning signs.
Read Klaviyo profiles, lists, segments, campaigns, flows, metrics and events. Toolspoke gives your agents 12 of its actions, and you decide which ones each project allows.
Open the marketplace in your workspace, add Klaviyo to the project your agents work in, and it appears on the gateway immediately.
Provide the credential Klaviyo asks for. Where to get it, and what it has to be able to reach, is the next section.
Describe the job in one sentence and the builder proposes the instructions, the toolkits it needs, a schedule and where it should answer, or start from a catalogue agent. It can use every Klaviyo action the project leaves on.
Ask it in a channel or a thread, and it replies in the thread it was asked in.
Email it. Each write waits for a person's go-ahead unless that action is allowed in advance.
Mention it on a pull request, and it answers there.
A routine wakes it on a schedule, or when a new item matches.
Any agent in the project can use Klaviyo, and only the actions the project leaves on.
API key. You provide it once, when you install the connector. Toolspoke encrypts it at rest and decrypts it only for the length of a single call, and the gateway attaches it to the outbound request itself, so it is never part of the arguments an agent sends.
12 actions, each one declared by name in the connector. A workspace policy grants a person all of them, a hand-picked selection, everything on the read side, everything on the write side, or none.
11 read, 1 write, none destructive
Fetches data and changes nothing.
list_profilesList profiles in the Klaviyo account. Returns real people, email addresses, phone numbers, names and custom properties, so ask for a filter rather than paging the whole account. Filters use Klaviyo's expression syntax: equals(email,'[email protected]'), any(id,["01ABC","01DEF"]), greater-than(created,2026-01-01T00:00:00Z).
get_profileFetch one profile by its Klaviyo ID, optionally with its list and segment memberships. Returns that person's contact details and properties.
list_listsList the account's lists, the manually managed audiences a person is added to or removed from, as opposed to segments, which are rule-driven. Returns list names and IDs, not their members. Klaviyo caps this endpoint at 10 per page.
get_listFetch one list by ID. Pass additional_fields ["profile_count"] to include how many people are on it. Klaviyo rate-limits that variant hard (about one call a second), so do not ask for it in a loop.
list_segmentsList the account's segments, audiences defined by rules, which Klaviyo re-evaluates continuously. Returns definitions and IDs, not the people in them. Klaviyo caps this endpoint at 10 per page.
list_campaignsList campaigns. Klaviyo rejects this endpoint without a channel filter, so `filter` always carries one and defaults to equals(messages.channel,'email'). Whatever you pass must still name a channel, combine with and(...), e.g. and(equals(messages.channel,'sms'),equals(status,'Sent')). Valid channels are email, sms and mobile_push.
get_campaignFetch one campaign by ID, with its status, schedule and audience references. Pass include to pull the campaign's messages, subject lines, preview text and template references, in the same call.
list_metricsList the metrics Klaviyo tracks for this account. Placed Order, Opened Email, Viewed Product, and anything your integrations send. Call this first to find the metric ID that query_metric_aggregates needs.
query_metric_aggregatesCount or sum a metric over a date range, optionally bucketed by interval and broken down by a property. This is the reporting action: it answers "how many orders last month", "revenue by channel", "opens per day" without returning a row per person. Get the metric ID from list_metrics. Measurements are count, sum_value, unique. Break down with group_by, e.g. ["$attributed_channel"] or ["$flow"].
list_flowsList the account's automated flows, welcome series, abandoned cart, win-back, with their status and trigger type. Returns definitions, not the people who went through them.
list_eventsList raw events, one row per thing one person did, with the event properties that came with it. Filter by metric_id or profile_id and by datetime; without a filter this is the account's whole firehose. Use query_metric_aggregates instead when the question is a total rather than a list of individual actions.
Creates or updates something on the other side.
create_or_update_profileCreate a profile, or update one that already exists, by email, phone number or external ID. Klaviyo matches on those identifiers, so calling this twice with the same email updates rather than duplicates. Answers 201 when it created and 200 when it updated. Properties passed here replace the values already stored under those keys.
The gateway enforces each of these, so they can be stated flatly.
12 named actions: 11 that only read and 1 that write. They include list_profiles, get_profile and create_or_update_profile. Nothing outside that list is reachable: the connector declares each operation by name rather than proxying whatever an agent asks for.
API key. The connector asks for private api key, and optionally api revision. Values are encrypted at rest and attached to the outbound request by the gateway, so they are never part of the arguments an agent sends and never reach the audit log.
Install Klaviyo in a project and every agent in that project can use the actions the project leaves on. Describe a job in one sentence and the builder proposes the instructions, the toolkits it needs, a schedule and where it should answer, or start from a catalogue agent. The agent answers when someone asks it in Slack, emails it or mentions it on a GitHub pull request, or when its routine wakes it.
The 12 actions above are the whole of it. A call to any other name is refused before it reaches Klaviyo rather than forwarded on, and connecting your account does not add to the list: it is fixed by the connector, not discovered at run time. This connector writes to Klaviyo, but nothing in it deletes or permanently alters anything. Toolspoke holds no access to Klaviyo of its own. Every call carries the credential you stored and nothing besides, so whatever that credential cannot reach, this connector cannot reach either. Nothing is pushed to it. There is no webhook, no subscription and no polling, so this connector cannot notice by itself that something changed in Klaviyo. An agent has to ask. Toolspoke does not retry, queue or back off around Klaviyo's own rate limits. A call that Klaviyo refuses comes back to the agent as a failed call.
Yes, in two places. The project switches Klaviyo's actions on and off one at a time, for everyone in the project at once, and the screen groups them by read, write and destructive so turning off everything that deletes is one click. An individual agent key can then be narrowed further, to particular toolkits in a project and to particular actions in a toolkit. Whatever it was granted, a key never reaches a project its owner cannot.
Every attempt, with the agent that made it and the person that agent belongs to, the full request payload, the response payload, the status, the duration, and what the call cost in sandbox time and model tokens. Values whose key names a secret are masked out before the record is shown to anyone. An operation the connector marks as not retained never has its response body written at all, so the gateway keeps no second copy of what was read.
Reports last week's Klaviyo campaigns and flows in Slack each Monday, against the four weeks before, with any deliverability warning signs.