convertkit-automation
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseConvertKit (Kit) Automation via Rube MCP
通过Rube MCP实现ConvertKit(Kit)自动化
Automate ConvertKit (now known as Kit) email marketing operations through Composio's Kit toolkit via Rube MCP.
通过Composio的Kit工具包,借助Rube MCP自动化ConvertKit(现称为Kit)的邮件营销操作。
Prerequisites
前提条件
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active Kit connection via with toolkit
RUBE_MANAGE_CONNECTIONSkit - Always call first to get current tool schemas
RUBE_SEARCH_TOOLS
- 必须已连接Rube MCP(需具备RUBE_SEARCH_TOOLS功能)
- 通过激活Kit连接,工具包为
RUBE_MANAGE_CONNECTIONSkit - 请始终先调用以获取最新的工具架构
RUBE_SEARCH_TOOLS
Setup
设置步骤
Get Rube MCP: Add as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
https://rube.app/mcp- Verify Rube MCP is available by confirming responds
RUBE_SEARCH_TOOLS - Call with toolkit
RUBE_MANAGE_CONNECTIONSkit - If connection is not ACTIVE, follow the returned auth link to complete Kit authentication
- Confirm connection status shows ACTIVE before running any workflows
获取Rube MCP:在客户端配置中添加作为MCP服务器。无需API密钥 —— 只需添加端点即可使用。
https://rube.app/mcp- 通过确认能正常响应,验证Rube MCP是否可用
RUBE_SEARCH_TOOLS - 调用,指定工具包为
RUBE_MANAGE_CONNECTIONSkit - 如果连接状态未激活,请按照返回的认证链接完成Kit认证
- 在运行任何工作流之前,确认连接状态显示为ACTIVE
Core Workflows
核心工作流
1. List and Search Subscribers
1. 列出并搜索订阅者
When to use: User wants to browse, search, or filter email subscribers
Tool sequence:
- - List subscribers with filters and pagination [Required]
KIT_LIST_SUBSCRIBERS
Key parameters:
- : Filter by status ('active' or 'inactive')
status - : Exact email to search for
email_address - /
created_after: Date range filter (YYYY-MM-DD)created_before - /
updated_after: Date range filter (YYYY-MM-DD)updated_before - : Sort by 'id', 'cancelled_at', or 'updated_at'
sort_field - : 'asc' or 'desc'
sort_order - : Results per page (min 1)
per_page - /
after: Cursor strings for paginationbefore - : Set to 'true' to get total subscriber count
include_total_count
Pitfalls:
- If is 'cancelled_at', the
sort_fieldmust be set to 'cancelled'status - Date filters use YYYY-MM-DD format (no time component)
- is an exact match; partial email search is not supported
email_address - Pagination uses cursor-based approach with /
aftercursor stringsbefore - is a string 'true', not a boolean
include_total_count
适用场景:用户想要浏览、搜索或筛选邮件订阅者
工具序列:
- - 使用筛选条件和分页功能列出订阅者 [必填]
KIT_LIST_SUBSCRIBERS
关键参数:
- : 按状态筛选('active'或'inactive')
status - : 精确搜索的邮箱地址
email_address - /
created_after: 日期范围筛选(格式:YYYY-MM-DD)created_before - /
updated_after: 日期范围筛选(格式:YYYY-MM-DD)updated_before - : 排序字段('id'、'cancelled_at'或'updated_at')
sort_field - : 排序顺序('asc'或'desc')
sort_order - : 每页结果数(最小值1)
per_page - /
after: 用于分页的游标字符串before - : 设置为'true'以获取订阅者总数
include_total_count
注意事项:
- 如果设为'cancelled_at',则
sort_field必须设为'cancelled'status - 日期筛选使用YYYY-MM-DD格式(不包含时间部分)
- 为精确匹配;不支持邮箱部分搜索
email_address - 分页采用基于游标的方式,使用/
after游标字符串before - 是字符串'true',而非布尔值
include_total_count
2. Manage Subscriber Tags
2. 管理订阅者标签
When to use: User wants to tag subscribers for segmentation
Tool sequence:
- - Find subscriber ID by email [Prerequisite]
KIT_LIST_SUBSCRIBERS - - Associate a subscriber with a tag [Required]
KIT_TAG_SUBSCRIBER - - List subscribers for a specific tag [Optional]
KIT_LIST_TAG_SUBSCRIBERS
Key parameters for tagging:
- : Numeric tag ID (required)
tag_id - : Numeric subscriber ID (required)
subscriber_id
Pitfalls:
- Both and
tag_idmust be positive integerssubscriber_id - Tag IDs must reference existing tags; tags are created via the Kit web UI
- Tagging an already-tagged subscriber is idempotent (no error)
- Subscriber IDs are returned from LIST_SUBSCRIBERS; use filter to find specific subscribers
email_address
适用场景:用户想要为订阅者添加标签以进行细分
工具序列:
- - 通过邮箱查找订阅者ID [前提步骤]
KIT_LIST_SUBSCRIBERS - - 为订阅者关联标签 [必填]
KIT_TAG_SUBSCRIBER - - 列出特定标签下的所有订阅者 [可选]
KIT_LIST_TAG_SUBSCRIBERS
标签管理的关键参数:
- : 数字标签ID(必填)
tag_id - : 数字订阅者ID(必填)
subscriber_id
注意事项:
- 和
tag_id必须为正整数subscriber_id - 标签ID必须指向已存在的标签;标签需通过Kit网页界面创建
- 为已添加标签的订阅者再次添加标签是幂等操作(不会报错)
- 订阅者ID可从LIST_SUBSCRIBERS的响应中获取;使用筛选条件查找特定订阅者
email_address
3. Unsubscribe a Subscriber
3. 取消订阅者订阅
When to use: User wants to unsubscribe a subscriber from all communications
Tool sequence:
- - Find subscriber ID [Prerequisite]
KIT_LIST_SUBSCRIBERS - - Unsubscribe the subscriber [Required]
KIT_DELETE_SUBSCRIBER
Key parameters:
- : Subscriber ID (required, positive integer)
id
Pitfalls:
- This permanently unsubscribes the subscriber from ALL email communications
- The subscriber's historical data is retained but they will no longer receive emails
- Operation is idempotent; unsubscribing an already-unsubscribed subscriber succeeds without error
- Returns empty response (HTTP 204 No Content) on success
- Subscriber ID must exist; non-existent IDs return 404
适用场景:用户想要让订阅者取消所有通信订阅
工具序列:
- - 查找订阅者ID [前提步骤]
KIT_LIST_SUBSCRIBERS - - 取消订阅者的订阅 [必填]
KIT_DELETE_SUBSCRIBER
关键参数:
- : 订阅者ID(必填,正整数)
id
注意事项:
- 此操作会永久取消订阅者的所有邮件通信订阅
- 订阅者的历史数据会被保留,但他们将不再收到邮件
- 操作是幂等的;为已取消订阅的订阅者再次执行操作会成功且无报错
- 成功时返回空响应(HTTP 204 No Content)
- 订阅者ID必须存在;不存在的ID会返回404错误
4. List and View Broadcasts
4. 列出并查看广播
When to use: User wants to browse email broadcasts or get details of a specific one
Tool sequence:
- - List all broadcasts with pagination [Required]
KIT_LIST_BROADCASTS - - Get detailed information for a specific broadcast [Optional]
KIT_GET_BROADCAST - - Get performance statistics for a broadcast [Optional]
KIT_GET_BROADCAST_STATS
Key parameters for listing:
- : Results per page (1-500)
per_page - /
after: Cursor strings for paginationbefore - : Set to 'true' for total count
include_total_count
Key parameters for details:
- : Broadcast ID (required, positive integer)
id
Pitfalls:
- max is 500 for broadcasts
per_page - Broadcast stats are only available for sent broadcasts
- Draft broadcasts will not have stats
- Broadcast IDs are numeric integers
适用场景:用户想要浏览邮件广播或获取特定广播的详情
工具序列:
- - 分页列出所有广播 [必填]
KIT_LIST_BROADCASTS - - 获取特定广播的详细信息 [可选]
KIT_GET_BROADCAST - - 获取广播的性能统计数据 [可选]
KIT_GET_BROADCAST_STATS
列出广播的关键参数:
- : 每页结果数(1-500)
per_page - /
after: 用于分页的游标字符串before - : 设置为'true'以获取总数
include_total_count
获取详情的关键参数:
- : 广播ID(必填,正整数)
id
注意事项:
- 广播的最大值为500
per_page - 仅已发送的广播有统计数据
- 草稿广播没有统计数据
- 广播ID为数字整数
5. Delete a Broadcast
5. 删除广播
When to use: User wants to permanently remove a broadcast
Tool sequence:
- - Find the broadcast to delete [Prerequisite]
KIT_LIST_BROADCASTS - - Verify it is the correct broadcast [Optional]
KIT_GET_BROADCAST - - Permanently delete the broadcast [Required]
KIT_DELETE_BROADCAST
Key parameters:
- : Broadcast ID (required)
id
Pitfalls:
- Deletion is permanent and cannot be undone
- Deleting a sent broadcast removes it but does not unsend the emails
- Confirm the broadcast ID before deleting
适用场景:用户想要永久删除某个广播
工具序列:
- - 找到要删除的广播 [前提步骤]
KIT_LIST_BROADCASTS - - 确认是要删除的广播 [可选]
KIT_GET_BROADCAST - - 永久删除广播 [必填]
KIT_DELETE_BROADCAST
关键参数:
- : 广播ID(必填)
id
注意事项:
- 删除操作是永久性的,无法撤销
- 删除已发送的广播会移除该记录,但不会撤回已发送的邮件
- 删除前请确认广播ID正确
Common Patterns
常见模式
Subscriber Lookup by Email
通过邮箱查找订阅者
1. Call KIT_LIST_SUBSCRIBERS with email_address='user@example.com'
2. Extract subscriber ID from the response
3. Use ID for tagging, unsubscribing, or other operations1. 调用KIT_LIST_SUBSCRIBERS with email_address='user@example.com'
2. Extract subscriber ID from the response
3. Use ID for tagging, unsubscribing, or other operationsPagination
分页处理
Kit uses cursor-based pagination:
- Check response for cursor value
after - Pass cursor as parameter in next request
after - Continue until no more cursor is returned
- Use to track progress
include_total_count: 'true'
Kit采用基于游标的分页方式:
- 检查响应中的游标值
after - Pass cursor as parameter in next request
after - Continue until no more cursor is returned
- Use to track progress
include_total_count: 'true'
Tag-Based Segmentation
基于标签的细分
1. Create tags in Kit web UI
2. Use KIT_TAG_SUBSCRIBER to assign tags to subscribers
3. Use KIT_LIST_TAG_SUBSCRIBERS to view subscribers per tag1. Create tags in Kit web UI
2. Use KIT_TAG_SUBSCRIBER to assign tags to subscribers
3. Use KIT_LIST_TAG_SUBSCRIBERS to view subscribers per tagKnown Pitfalls
已知注意事项
ID Formats:
- Subscriber IDs: positive integers (e.g., 3887204736)
- Tag IDs: positive integers
- Broadcast IDs: positive integers
- All IDs are numeric, not strings
Status Values:
- Subscriber statuses: 'active', 'inactive', 'cancelled'
- Some operations are restricted by status (e.g., sorting by cancelled_at requires status='cancelled')
String vs Boolean Parameters:
- is a string 'true', not a boolean true
include_total_count - is a string enum: 'asc' or 'desc'
sort_order
Rate Limits:
- Kit API has per-account rate limits
- Implement backoff on 429 responses
- Bulk operations should be paced appropriately
Response Parsing:
- Response data may be nested under or
datadata.data - Parse defensively with fallback patterns
- Cursor values are opaque strings; use exactly as returned
ID格式:
- 订阅者ID: 正整数(例如:3887204736)
- 标签ID: 正整数
- 广播ID: 正整数
- 所有ID均为数字,而非字符串
状态值:
- 订阅者状态: 'active', 'inactive', 'cancelled'
- 某些操作受状态限制(例如:按cancelled_at排序需要status='cancelled')
字符串与布尔参数:
- 是字符串'true',而非布尔值true
include_total_count - 是字符串枚举值: 'asc'或'desc'
sort_order
速率限制:
- Kit API有每个账户的速率限制
- 收到429响应时请实现退避机制
- 批量操作应适当控制节奏
响应解析:
- 响应数据可能嵌套在或
data下data.data - 请使用防御性解析方式并包含回退逻辑
- 游标值是不透明字符串;请完全按照返回值使用
Quick Reference
快速参考
| Task | Tool Slug | Key Params |
|---|---|---|
| List subscribers | KIT_LIST_SUBSCRIBERS | status, email_address, per_page |
| Tag subscriber | KIT_TAG_SUBSCRIBER | tag_id, subscriber_id |
| List tag subscribers | KIT_LIST_TAG_SUBSCRIBERS | tag_id |
| Unsubscribe | KIT_DELETE_SUBSCRIBER | id |
| List broadcasts | KIT_LIST_BROADCASTS | per_page, after |
| Get broadcast | KIT_GET_BROADCAST | id |
| Get broadcast stats | KIT_GET_BROADCAST_STATS | id |
| Delete broadcast | KIT_DELETE_BROADCAST | id |
| 任务 | 工具标识 | 关键参数 |
|---|---|---|
| 列出订阅者 | KIT_LIST_SUBSCRIBERS | status, email_address, per_page |
| 为订阅者添加标签 | KIT_TAG_SUBSCRIBER | tag_id, subscriber_id |
| 列出标签下的订阅者 | KIT_LIST_TAG_SUBSCRIBERS | tag_id |
| 取消订阅 | KIT_DELETE_SUBSCRIBER | id |
| 列出广播 | KIT_LIST_BROADCASTS | per_page, after |
| 获取广播详情 | KIT_GET_BROADCAST | id |
| 获取广播统计数据 | KIT_GET_BROADCAST_STATS | id |
| 删除广播 | KIT_DELETE_BROADCAST | id |