做什么
Mailchimp 营销 API 与管理的 OAuth 集成. 访问受众、活动、模板、自动化、报告和管理用户。 当用户想要管理电子邮件营销,订阅者列表,或将电子邮件活动自动化时使用此技能. 对于其他第三方应用,使用api-gateway技能(https://clawhub.ai/byungkyu/api-gateway). 以 OAuth 登录方式通过“ maton” CLI 调用; 默认读取和列表调用, 并确认与用户的每一个写入或新连接 .
技能库 智客分类:协作效率 mailchimp OpenClaw
Mailchimp 营销 API 与管理的 OAuth 集成. 访问受众、活动、模板、自动化、报告和管理用户。 当用户想要管理电子邮件营销,订阅者列表,或将电子邮件活动自动化时使用此技能. 对于其他第三方应用,使用api-gateway技能(https://clawhub.ai/byungkyu/api-gateway). 以 OAuth 登录方式通过“ maton” CLI 调用; 默认读取和列表调用, 并确认与用户的每一个写入或新连接 .
官方网址:作者主页
先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。
Mailchimp 营销 API 与管理的 OAuth 集成. 访问受众、活动、模板、自动化、报告和管理用户。 当用户想要管理电子邮件营销,订阅者列表,或将电子邮件活动自动化时使用此技能. 对于其他第三方应用,使用api-gateway技能(https://clawhub.ai/byungkyu/api-gateway). 以 OAuth 登录方式通过“ maton” CLI 调用; 默认读取和列表调用, 并确认与用户的每一个写入或新连接 .
官方 description 未单独写出 Use when。按规范,代理会在用户任务与这段 description 的关键词匹配时激活本技能。
按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:Mailchimp、Quick Start、Installation、NPM、Homebrew、Authentication。
文件分析:这是一份仅含 SKILL.md 的指令型技能,代理激活后整份正文进入上下文。 正文约 1086 行,超过规范建议的 500 行,激活时仍会整份载入。
Mailchimp Marketing API integration with managed OAuth. Access audiences, campaigns, templates, automations, reports, and manage subscribers. Use this skill when users want to manage email marketing, subscriber lists, or automate email campaigns. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway). Calls run through the `maton` CLI with OAuth login; default to read and list calls, and confirm every write or new connection with the user.
MailchimpQuick StartInstallationNPMHomebrewAuthenticationOAuth (Recommended)API KeyVerifyConnectionsList ConnectionsCreate Connection
兼容:Requires network access and a Maton account · allowed-tools:Bash, Read, Grep, Glob
来源分类:ClawHub Marketing
市场来源:ClawHub
namemailchimpdescriptioncompatibilityallowed-tools具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗
先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。
复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。
把 Agent Skill「mailchimp」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-2148a9aad8b6d07a-Mailchimp.html 请存为 .cursor/skills/mailchimp/SKILL.md 或 .claude/skills/mailchimp/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。
当前没有明确的 GitHub 技能包地址,请按来源页面的安装器说明操作。
Newsletter content here.
", "plain_text": "Hello! Newsletter content here." } JSON ``` Or use a template: ```bash maton api -X PUT '/mailchimp/3.0/campaigns/{campaign_id}/content' -H 'Content-Type: application/json' --input - <<'JSON' { "template": { "id": 12345, "sections": { "body": "Custom content for the template section
" } } } JSON ``` #### Get Campaign Send Checklist Check if a campaign is ready to send: ```bash maton api '/mailchimp/3.0/campaigns/{campaign_id}/send-checklist' ``` #### Send a Campaign ```bash maton api -X POST '/mailchimp/3.0/campaigns/{campaign_id}/actions/send' ``` #### Schedule a Campaign ```bash maton api -X POST '/mailchimp/3.0/campaigns/{campaign_id}/actions/schedule' -H 'Content-Type: application/json' --input - <<'JSON' { "schedule_time": "2025-03-01T10:00:00+00:00" } JSON ``` #### Cancel a Scheduled Campaign ```bash maton api -X POST '/mailchimp/3.0/campaigns/{campaign_id}/actions/cancel-send' ``` ### Templates #### Get All Templates ```bash maton api '/mailchimp/3.0/templates' ``` Query parameters: - `type` - Template type (user, base, gallery) - `count` - Number of records to return - `offset` - Number of records to skip **Example:** ```bash maton api '/mailchimp/3.0/templates?type=user' ``` #### Get a Template ```bash maton api '/mailchimp/3.0/templates/{template_id}' ``` #### Get Template Default Content ```bash maton api '/mailchimp/3.0/templates/{template_id}/default-content' ``` #### Create a Template ```bash maton api -X POST '/mailchimp/3.0/templates' -H 'Content-Type: application/json' --input - <<'JSON' { "name": "Newsletter Template", "html": "Content here
" } JSON ``` #### Update a Template ```bash maton api -X PATCH '/mailchimp/3.0/templates/{template_id}' ``` #### Delete a Template ```bash maton api '/mailchimp/3.0/templates/{template_id}' -X DELETE ``` Returns `204 No Content` on success. ### Automations Mailchimp's classic automations let you build email series triggered by dates, activities, or events. #### Get All Automations ```bash maton api '/mailchimp/3.0/automations' ``` **Example:** ```bash maton api '/mailchimp/3.0/automations' ``` #### Get an Automation ```bash maton api '/mailchimp/3.0/automations/{workflow_id}' ``` #### Start an Automation ```bash maton api -X POST '/mailchimp/3.0/automations/{workflow_id}/actions/start-all-emails' ``` #### Pause an Automation ```bash maton api -X POST '/mailchimp/3.0/automations/{workflow_id}/actions/pause-all-emails' ``` #### Get Automation Emails ```bash maton api '/mailchimp/3.0/automations/{workflow_id}/emails' ``` #### Add Subscriber to Automation Queue Manually add a subscriber to an automation workflow: ```bash maton api -X POST '/mailchimp/3.0/automations/{workflow_id}/emails/{workflow_email_id}/queue' -H 'Content-Type: application/json' --input - <<'JSON' { "email_address": "[email protected]" } JSON ``` ### Reports #### Get Campaign Reports ```bash maton api '/mailchimp/3.0/reports' ``` Query parameters: - `count` - Number of records to return - `offset` - Number of records to skip - `type` - Campaign type **Example:** ```bash maton api '/mailchimp/3.0/reports?count=20' ``` **Response:** ```json { "reports": [ { "id": "campaign123", "campaign_title": "Monthly Newsletter", "emails_sent": 5000, "opens": { "opens_total": 1500, "unique_opens": 1200, "open_rate": 0.24 }, "clicks": { "clicks_total": 450, "unique_clicks": 300, "click_rate": 0.06 }, "unsubscribed": 10, "bounce_rate": 0.02 } ] } ``` #### Get Campaign Report ```bash maton api '/mailchimp/3.0/reports/{campaign_id}' ``` #### Get Campaign Open Details ```bash maton api '/mailchimp/3.0/reports/{campaign_id}/open-details' ``` #### Get Campaign Click Details ```bash maton api '/mailchimp/3.0/reports/{campaign_id}/click-details' ``` #### Get List Activity ```bash maton api '/mailchimp/3.0/lists/{list_id}/activity' ``` Returns recent daily aggregated activity stats (unsubscribes, signups, opens, clicks) for up to 180 days. ### Batch Operations Process multiple operations in a single call. #### Create Batch Operation ```bash maton api -X POST '/mailchimp/3.0/batches' -H 'Content-Type: application/json' --input - <<'JSON' { "operations": [ { "method": "POST", "path": "/lists/abc123def4/members", "body": "{\"email_address\":\"[email protected]\",\"status\":\"subscribed\"}" }, { "method": "POST", "path": "/lists/abc123def4/members", "body": "{\"email_address\":\"[email protected]\",\"status\":\"subscribed\"}" } ] } JSON ``` #### Get Batch Status ```bash maton api '/mailchimp/3.0/batches/{batch_id}' ``` #### List All Batches ```bash maton api '/mailchimp/3.0/batches' ``` #### Delete a Batch ```bash maton api '/mailchimp/3.0/batches/{batch_id}' -X DELETE ``` Returns `204 No Content` on success. ## Pagination Mailchimp uses offset-based pagination: ```bash maton api '/mailchimp/3.0/lists?count=50&offset=100' ``` Response includes `total_items` for calculating total pages: ```json { "lists": [...], "total_items": 250 } ``` ## Response Codes | Status | Meaning | |--------|---------| | 200 | Success with response body | | 204 | Success with no content (DELETE, some POST operations) | | 400 | Bad request or missing Mailchimp connection | | 401 | Invalid or missing Maton API key | | 403 | Forbidden - insufficient permissions | | 404 | Resource not found | | 405 | Method not allowed | | 429 | Rate limited | | 4xx/5xx | Passthrough error from Mailchimp API | Mailchimp error responses include detailed information: ```json { "type": "https://mailchimp.com/developer/marketing/docs/errors/", "title": "Invalid Resource", "status": 400, "detail": "The resource submitted could not be validated.", "instance": "abc123-def456", "errors": [ { "field": "email_address", "message": "This value should be a valid email." } ] } ``` ## Notes - List IDs are 10-character alphanumeric strings - Subscriber hashes are MD5 hashes of lowercase email addresses - Timestamps are in ISO 8601 format - The API has a 120-second timeout on calls - Maximum 1000 records per request for list endpoints - "Audience" and "list" are used interchangeably (app vs API terminology) - "Contact" and "member" are used interchangeably (app vs API terminology) ## SDK The CLI above is this skill's documented path; the SDKs are an optional way to call the same gateway from application code. The two modes keep separate credential stores: the CLI uses the profile from `maton login`, while an SDK program signs in once with `login()`, which opens a browser and stores a session that `Maton()` reads. Mailchimp has no typed accessor yet, so calls go through the `api` passthrough, which takes the app and the path after it. **Python** ```bash pip install maton-ai ``` ```python from maton_ai import Maton, login # login() maton = Maton() # maton = Maton(api_key="...") result = maton.api.get("mailchimp", "/3.0/lists") ``` **JavaScript** ```bash npm install @maton/sdk ``` ```javascript import { Maton, login } from "@maton/sdk"; // await login() const maton = new Maton(); // const maton = new Maton({ apiKey: "..." }); const result = await maton.api.get("mailchimp", "/3.0/lists"); ``` ## Error Handling | Status | Meaning | |--------|---------| | 400 | Missing Mailchimp connection | | 401 | Invalid, missing, or expired Maton credential | | 429 | Rate limited (10 requests/second per account) | | 500 | Internal Server Error | | 4xx/5xx | Passthrough error from the Mailchimp API | Errors from Mailchimp are passed through with their original status codes and response bodies. ### Troubleshooting: Authentication ```bash maton whoami --json ``` - `"authenticated": false` — login again with `maton login --oauth`. - `"auth_type": "api_key"` — prefer `maton login --oauth` so no long-lived key sits on the machine. - Never inspect the stored credential itself; `maton whoami` is the check. Then confirm the app is connected: ```bash maton connection list mailchimp --status ACTIVE ``` ### Troubleshooting: Invalid App Name Paths passed to `maton api` must start with `/mailchimp/`: - Correct: `maton api '/mailchimp/3.0/lists'` - Incorrect: `maton api '/3.0/lists'` ### Troubleshooting: Server Error A 500 may mean the Mailchimp authorization expired. With the user's approval, create a new connection (`maton connection create mailchimp`) and complete authorization; once it is `ACTIVE`, delete the stale connection so the gateway uses the new one. ## Rate Limits - 10 requests per second per Maton account - Mailchimp API rate limits also apply ## Tips - **Use the native API docs** (see Resources) for endpoint paths and parameters, then call them with `maton api`. - **Filter server-side, then locally.** `--paginate` walks every page and `-q/--jq` trims the response before it reaches you. On typed commands, `--jq` requires `--json`. - **Headers and query params pass through** `maton api`; `Host` and `Authorization` are set by the gateway. ## Appendix: Environments Without the CLI Everything above uses the CLI, which holds the credential itself and never exposes it to the caller. Use the raw HTTP form below **only** where the CLI cannot be installed — a locked-down container, a CI step, a sandbox with no package manager. If `maton` is available, `maton api` does the same job without handling a secret. Calling `api.maton.ai` directly means holding a long-lived Maton API key in the process environment, where it is readable by every child process and easy to leak into logs, crash dumps, shell history, and pasted output. Handle it accordingly: - **Never print, echo, or log the key**, and never include it in output shown to the user. Check for presence, never for value: ```bash [ -n "$MATON_API_KEY" ] && echo "MATON_API_KEY is set" || echo "MATON_API_KEY is not set" ``` - **Do not persist it.** A session environment variable is already broad exposure; writing it into a shell profile, a committed `.env`, or a script makes it permanent. Let the environment that starts the session supply it — a CI secret store, a container secret, a secrets manager. - **Do not pass it on a command line**, where it lands in `ps` output and shell history. Read it from the environment inside the process that makes the request, as below. - **Send it only to `api.maton.ai`.** It is not a credential for Mailchimp or any other third-party host. - **Rotate the key in [Settings](https://maton.ai/settings)** if it was printed, committed, or pasted anywhere. The request is a plain HTTPS call to host `api.maton.ai` at path `/mailchimp/{native-api-path}` with a bearer token; the gateway swaps in the connected app's credential. Add a `Maton-Connection: {connection_id}` header to pin a specific connection when the account has more than one. Query values must be URL-encoded. The Python standard library is enough — the key is read from the environment inside the process, so it never appears on a command line: ```bash python3 - <<'PY' import json, os, urllib.request GATEWAY = "https://api.maton.ai" req = urllib.request.Request(GATEWAY + "/mailchimp/3.0/lists") req.add_header("Authorization", "Bearer " + os.environ["MATON_API_KEY"]) req.add_header("User-Agent", "maton-mailchimp-skill/1.2") # req.add_header("Maton-Connection", "{connection_id}") with urllib.request.urlopen(req) as resp: print(json.dumps(json.load(resp), indent=2)) PY ``` For a write, set `method="POST"` (or `PUT`/`DELETE`) on the `Request`, pass the JSON-encoded body as `data=`, and add a `Content-Type: application/json` header. The same rules as the CLI apply to every request made this way: read-only calls first, and explicit user confirmation before any POST, PUT, PATCH, or DELETE. ## Resources - [Mailchimp Marketing API Documentation](https://mailchimp.com/developer/marketing/) - [API Reference](https://mailchimp.com/developer/marketing/api/) - [Quick Start Guide](https://mailchimp.com/developer/marketing/guides/quick-start/) - [Release Notes](https://mailchimp.com/developer/release-notes/) - [Maton Docs](https://docs.maton.ai) - [API Reference](https://docs.maton.ai/api-reference/overview) - [Maton CLI Manual](https://cli.maton.ai/manual) - [Maton Community](https://community.maton.ai/) - [Maton Support](mailto:[email protected])协作效率
Google 工作空间 CLI 用于 Gmail, Calendar, Drive, 联系人, 工作表和文档 .
协作效率
用于创建和管理页面、数据库和块的逗号 API.
协作效率
需要通过懒惰工具控制 Clawdbot 的 Slack 时使用,包括在 Slack 频道或 DMs 中对消息作出反应或发夹/取消项目.
协作效率
通过IMAP/SMTP读取并发送电子邮件. 检查新/未读信件,获取内容,搜索信箱,标记为已读/未读,并发送带有附件的邮件. 支持多个账户。 与任何IMAP/SMTP服务器合作,包括Gmail,Outlook,163.com,vip.163.com,126.com,vip.126.…