Klaviyo automation

From aAAaqwq/AGI-Super-Team · View interactive version

Klaviyo automation is an AI agent skill from the GitHub repository aAAaqwq/AGI-Super-Team. Automate Klaviyo tasks via Rube MCP (Composio): manage email/SMS campaigns, inspect campaign messages, track tags, and monitor send jobs. Always search tools first for current schemas.

How to use this skill

Skill file

Klaviyo Automation via Rube MCP

Automate Klaviyo email and SMS marketing operations through Composio's Klaviyo toolkit via Rube MCP.

Prerequisites

Setup

Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.

  1. Verify Rube MCP is available by confirming RUBE_SEARCH_TOOLS responds
  2. Call RUBE_MANAGE_CONNECTIONS with toolkit klaviyo
  3. If connection is not ACTIVE, follow the returned auth link to complete Klaviyo authentication
  4. Confirm connection status shows ACTIVE before running any workflows

Core Workflows

1. List and Filter Campaigns

When to use: User wants to browse, search, or filter marketing campaigns

Tool sequence:

  1. KLAVIYO_GET_CAMPAIGNS - List campaigns with channel and status filters [Required]

Key parameters:

Pitfalls:

2. Get Campaign Details

When to use: User wants detailed information about a specific campaign

Tool sequence:

  1. KLAVIYO_GET_CAMPAIGNS - Find campaign to get its ID [Prerequisite]
  2. KLAVIYO_GET_CAMPAIGN - Retrieve full campaign details [Required]

Key parameters:

Pitfalls:

3. Inspect Campaign Messages

When to use: User wants to view the email/SMS content of a campaign

Tool sequence:

  1. KLAVIYO_GET_CAMPAIGN - Find campaign and its message IDs [Prerequisite]
  2. KLAVIYO_GET_CAMPAIGN_MESSAGE - Get message content details [Required]

Key parameters:

Pitfalls:

4. Manage Campaign Tags

When to use: User wants to view tags associated with campaigns for organization

Tool sequence:

  1. KLAVIYO_GET_CAMPAIGN_RELATIONSHIPS_TAGS - Get tag IDs for a campaign [Required]

Key parameters:

Pitfalls:

5. Monitor Campaign Send Jobs

When to use: User wants to check the status of a campaign send operation

Tool sequence:

  1. KLAVIYO_GET_CAMPAIGN_SEND_JOB - Check send job status [Required]

Key parameters:

Pitfalls:

Common Patterns

Campaign Discovery Pattern

1. Call KLAVIYO_GET_CAMPAIGNS with channel='email'
2. Paginate through all results via page_cursor
3. Filter by status client-side for accuracy
4. Extract campaign IDs for detailed inspection

Sparse Fieldset Pattern

Klaviyo supports sparse fieldsets to reduce response size:

fields__campaign__message=['content.subject', 'content.from_email', 'send_times']
fields__campaign=['name', 'status', 'send_time']
fields__template=['name', 'html', 'text']

Pagination

Filter Syntax

- equals(status,"draft") - Campaigns in draft status
- equals(name,"Newsletter") - Campaign named "Newsletter"
- greater-than(created_at,"2024-01-01T00:00:00Z") - Created after date

Known Pitfalls

API Version:

Response Nesting:

Rate Limits:

Status Values:

Quick Reference

| Task | Tool Slug | Key Params |

|------|-----------|------------|

| List campaigns | KLAVIYO_GET_CAMPAIGNS | channel, filter, sort, page_cursor |

| Get campaign details | KLAVIYO_GET_CAMPAIGN | campaign_id, include_messages, include_tags |

| Get campaign message | KLAVIYO_GET_CAMPAIGN_MESSAGE | id, fieldscampaignmessage |

| Get campaign tags | KLAVIYO_GET_CAMPAIGN_RELATIONSHIPS_TAGS | id |

| Get send job status | KLAVIYO_GET_CAMPAIGN_SEND_JOB | id |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.