连接器指南阅读约 6 分钟26 个 MCP 工具7 种语言

将 Customer.io MCP 连接到 Microsoft Copilot

让你的 AI 使用 Customer.io:查看用户及其属性、分群、活动和消息,分析自动化流程、广播和一次性发送及其指标,并在你确认后发送交易邮件或触发广播。

HC作者:HelpCode 团队更新于 6 分钟阅读 在 GitHub 开源

无需信用卡 · 7 天试用 · 提供自托管方案

Customer.io

Customer.io

Let your AI work with Customer.io: look up people, their attributes, segments, activity and messages, review automations, broadcasts and one-time sends with their metrics, and send transactional emails or trigger broadcasts after you confirm.

个工具

26

区域

INTL

类别

营销自动化

身份验证

Bearer Token

所需环境变量

CUSTOMERIO_API_URLCUSTOMERIO_APP_API_KEY
在 Cloud 上一键安装

7 天免费试用 · 无需信用卡

  • 7 天免费试用
    无需信用卡
  • 符合 GDPR,SOC 2 就绪
    数据驻留欧盟,审计日志
  • 在 GitHub 开源
    开源 · AGPL-3.0
  • 支持 ChatGPT、Claude、Gemini
    任何兼容 MCP 的客户端

摘要

让你的 AI 使用 Customer.io:查看用户及其属性、分群、活动和消息,分析自动化流程、广播和一次性发送及其指标,并在你确认后发送交易邮件或触发广播。

引导式设置

2 分钟将 Customer.io 连接到 Microsoft Copilot

开始 AnythingMCP Cloud 免费试用,在引导式设置中连接 Customer.io,再把你的 MCP URL 添加到 Microsoft Copilot。无需代码,也无需自行运行服务器。

无需信用卡 · 7 天试用 · 提供自托管方案

试试这样问

Customer.io 的示例提示

点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。

Customer.io · 通过 MCP 实时
分享
Opus 4.7

Claude 是 AI,可能会出错。请核对回答。

💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → Customer.io、粘贴凭证、生成 MCP API key,即可完成。无 Docker、无 git clone、无本地服务器。

Customer.io + Microsoft Copilot

让你的 AI 使用 Customer.io:查看用户及其属性、分群、活动和消息,分析自动化流程、广播和一次性发送及其指标,并在你确认后发送交易邮件或触发广播。

前提条件

完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:

CUSTOMERIO_API_URL, CUSTOMERIO_APP_API_KEY

步骤 1 — 获取凭证

设置大约需要 3 分钟。你需要一个能创建 App API key 的 Customer.io 用户,并且要知道账户托管在美国还是欧盟。

  1. 在 Customer.io 中打开 Settings → Account Settings → API Credentials → App API Keys(fly.customer.io/settings/api_credentials),点击 Create App API Key。选择工作区和密钥的权限:完全访问,或者在 AI 只需读取和发送时选择只读加发送。
  2. 立即复制密钥:Customer.io 只显示一次。按原样粘贴到 CUSTOMERIO_APP_API_KEY,不要加 Bearer 前缀。这是 App API key,不是 Track API key。
  3. 把 CUSTOMERIO_API_URL 设为账户所在的数据中心:美国账户用 https://api.customer.io,欧盟账户用 https://api-eu.customer.io,不要加 /v1 或其他路径。区域在创建账户时就已确定。
  4. 安装连接器,先运行 customer_io_list_workspaces:它会检查密钥,并显示工作区及其用户数和消息数。

一个密钥对应整个工作区:App API key 代表的是工作区,而不是某个人。使用这个连接器的人可以看到该密钥能读取的所有用户、分群和消息,所以只把 MCP 服务器分享给有权查看这些数据的人。

覆盖范围:用户(按邮箱查找,或按分群归属和属性值搜索),以及他们的属性、分群、最近 30 天的活动和收到的消息;分群的条件、当前人数和成员;自动化流程(Customer.io API 中称为 campaigns)及其消息指标;通过 API 触发的广播和一次性发送(API 中称为 newsletters)及其指标;整个工作区的投递和活动;以及交易消息模板。

发送前先等你确认:只有两个工具会发送,其余都只读。

  • customer_io_send_transactional_email 发送一封真实邮件(收据、密码重置、通知),to、cc 和 bcc 合计最多 15 个地址,可以使用交易模板,也可以自定主题和正文。AI 会先给你看收件人、主题和内容。
  • customer_io_trigger_broadcast 会一次发给很多人。AI 先展示广播、受众人数(customer_io_get_segment_customer_count)和数据,只有在你明确回复 "yes, send" 后才会触发。之后用 customer_io_get_broadcast_trigger 跟踪进度。

不包含 Track API:识别用户、记录事件和删除用户需要使用 Customer.io 的 Track API,它使用另一套凭证(Site ID 和 Track API key)。本连接器不使用 Track API,因此不能修改用户资料,也不会删除任何人。

限制:App API 每秒约允许 10 个请求。交易邮件共享每 3 秒 3,000 个请求的软限制,广播每 10 秒最多触发一次。较长的列表分页返回,AI 会一直读到最后一页。时间戳为 Unix 秒。

常见错误:401 表示 App API key 错误或已删除,或者账户在另一个区域;请检查 CUSTOMERIO_API_URL。403:密钥的权限不包括此操作,例如用只读密钥发送。404:该 ID 在此工作区中不存在。400 或 422:某个参数或搜索过滤条件无效,错误信息会指出是哪一个。429:达到速率限制,请稍后重试。

本连接器不使用 Track API 和 Pipelines API,不执行导出或导入,不管理 collections、snippets、报告 Webhook 或 ESP 屏蔽列表,也不修改自动化流程和广播的内容。

步骤 2 — 安装 adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

步骤 3 — 在 Microsoft Copilot 中添加连接器

你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(https://cloud.anythingmcp.com/mcp/…)。本指南中出现 YOUR_SERVER_ID 的地方都用它替换。

Microsoft Copilot 通过在 Copilot Studio 中构建的智能体使用 MCP 服务器:把 AnythingMCP 作为工具添加到智能体,然后把智能体发布到 Microsoft 365 Copilot 和 Teams。Copilot Studio 从 Microsoft 的云端通过 Streamable HTTP 连接,AnythingMCP 支持这种方式。

  1. 在 Copilot Studio 中打开你的智能体(或新建一个),进入 Tools,选择 Add a tool → New tool → Model Context Protocol。
  2. 填写 Server name(例如 AnythingMCP)、说明连接器用途的 Server description,以及 Server URL https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID。Copilot Studio 根据描述决定何时调用该服务器。
  3. 身份验证选择 API key,把 Type 设为 Header,请求头名称填 X-API-Key,然后选择 Create。
  4. 在 Add tool 中选择 Create a new connection,粘贴 AnythingMCP 的 MCP API 密钥(MCP Servers → 你的服务器 → API keys),然后选择 Add to agent。
  5. 在智能体的 Test 窗格中试一试:提出需要用到 Customer.io 的工具的请求。
  6. 选择 Publish,然后进入 Channels → Microsoft 365 and Microsoft Teams,保持勾选 Make agent available in Microsoft Copilot,再选择 Add channel。See agent in Teams 会为你安装该智能体;在 Microsoft 365 Copilot 中输入 @ 并选择该智能体。

希望每个用户各自登录?请选择 OAuth 2.0 → Dynamic discovery 代替 API 密钥:每个用户会在智能体首次调用时登录 AnythingMCP。

自托管?请用你实例的公网 HTTPS 地址替换 https://cloud.anythingmcp.com。Copilot Studio 从 Microsoft 的云端连接,因此 localhost 无法使用。

可用工具

ToolWhat it does
customer_io_list_workspacesList the workspaces of the Customer.io account with their id, name and counts of people, objects and messages sent in the billing period…
customer_io_find_customers_by_emailFind the people in the workspace with an email address: returns their id, email and cio_id
customer_io_search_customersSearch people in the workspace with a filter on segment membership and attribute values, up to 1000 per page; returns their identifiers…
customer_io_get_customer_attributesGet a person's profile: all attributes (stored as strings), identifiers, subscription preferences, timestamps and devices
customer_io_get_customer_segmentsList the segments a person currently belongs to (id, name, description)
customer_io_list_customer_activitiesList what happened to a person in the last 30 days or more: events, attribute changes, messages attempted, sent, opened, clicked, bounced…
customer_io_list_customer_messagesList the deliveries sent to a person (newest six months unless start_ts and end_ts are given): message id, automation, broadcast or…
customer_io_list_campaignsList the automations (campaigns) of the workspace: id, name, type of trigger, state, active flag, created and updated times, trigger and…
customer_io_get_campaignGet one automation (campaign) with its trigger, segments, state, tags and actions (messages, delays, branches)
customer_io_get_campaign_metricsGet an automation's message metrics over a window: series of attempted, sent, delivered, opened, clicked, converted, bounced, spammed…
customer_io_list_broadcastsList the API-triggered broadcasts of the workspace: id, name, active flag, created and updated times, tags and actions
customer_io_get_broadcastGet one API-triggered broadcast: name, state, active flag, created, updated and first started times, tags and actions
customer_io_get_broadcast_metricsGet a broadcast's message metrics per period: series of attempted, sent, delivered, opened, clicked, converted, bounced, unsubscribed…
customer_io_get_broadcast_triggerGet the status of one broadcast trigger (as returned by customer_io_trigger_broadcast): created, processed and cancelled times, schedule…
customer_io_list_newslettersList the one-time sends (newsletters) of the workspace: id, name, type, sent and created times, recipient segments, tags and variant…
customer_io_get_newsletter_metricsGet a one-time send's message metrics per period: series of attempted, sent, delivered, opened, clicked, converted, bounced, unsubscribed…
customer_io_list_segmentsList the segments of the workspace (not archived ones): id, name, description, type (data-driven or manual), state, progress and tags
customer_io_get_segmentGet one segment with its conditions (for data-driven segments), type, state and tags
customer_io_get_segment_customer_countCount the people currently in a segment, for example to size a broadcast audience before sending
customer_io_list_segment_membersList the people in a segment, page by page: their identifiers (id, email, cio_id)
customer_io_list_messagesList deliveries across the workspace, newest first, filtered by message type, metric (sent, delivered, opened, clicked, bounced…
customer_io_get_messageGet one delivery by id: recipient, parent automation, broadcast, one-time send or transactional message, subject, template, created, sent…
customer_io_list_activitiesList activities across the workspace, newest first: events, attribute changes and message activity, optionally for one person, one type or…
customer_io_list_transactional_messagesList the transactional message templates of the workspace (id, name, description, link tracking, body retention)
customer_io_send_transactional_emailSend one transactional email (receipts, password resets, notifications) to up to 15 addresses in to, cc and bcc, from a transactional…
customer_io_trigger_broadcastTrigger an API-triggered broadcast: send it to its default audience set in Customer.io, or to listed emails or ids, per-person data, or…

示例提示

  • “在 Customer.io 中查找 [email protected],显示她的属性、所属分群以及我们最近发给她的邮件。”
  • “我们的 Onboarding 自动化流程最近 30 天表现如何:发送、送达、打开、点击和退订各多少?”
  • “Trial ending 分群现在有多少人?其中哪些人是 pro 套餐?”
  • “触发 Product update 广播,但发送前先告诉我会发给谁、一共多少人。”

FAQ

这适用于哪个 Copilot? 适用于工作中的 Microsoft 365 Copilot,通过 Copilot Studio 的智能体实现。面向个人账户的 Microsoft Copilot 应用无法添加自己的 MCP 服务器。

我需要什么? 一个可以使用 Copilot Studio 的工作账户(许可证或试用版),用于构建智能体。在 Microsoft 365 Copilot 或 Teams 中使用它的人需要拥有该智能体的访问权限:把它共享给他们,或请管理员为整个组织发布。如果你的组织对 Power Platform 连接器设置了数据策略,这些策略同样适用于 MCP 服务器。

智能体不调用工具。 检查请求头名称是否正好是 X-API-Key,密钥是否属于与 URL 相同的 MCP 服务器,并把 Server description 写得具体:Copilot Studio 根据它决定何时调用服务器。每次修改后重新发布智能体;在已打开的对话中输入 "start over" 即可使用新版本。

下一步

这份指南对你有帮助吗?

2 分钟将 Customer.io 连接到 Microsoft Copilot

开始 AnythingMCP Cloud 免费试用,在引导式设置中连接 Customer.io,再把你的 MCP URL 添加到 Microsoft Copilot。无需代码,也无需自行运行服务器。

相关指南

连接器

将 Customer.io MCP 连接到 ChatGPT

让你的 AI 使用 Customer.io:查看用户及其属性、分群、活动和消息,分析自动化流程、广播和一次性发送及其指标,并在你确认后发送交易邮件或触发广播。

连接器

将 Customer.io MCP 连接到 Claude

让你的 AI 使用 Customer.io:查看用户及其属性、分群、活动和消息,分析自动化流程、广播和一次性发送及其指标,并在你确认后发送交易邮件或触发广播。

连接器

将 Customer.io MCP 连接到 Cursor

让你的 AI 使用 Customer.io:查看用户及其属性、分群、活动和消息,分析自动化流程、广播和一次性发送及其指标,并在你确认后发送交易邮件或触发广播。

连接器

将 Customer.io MCP 连接到 Gemini CLI

让你的 AI 使用 Customer.io:查看用户及其属性、分群、活动和消息,分析自动化流程、广播和一次性发送及其指标,并在你确认后发送交易邮件或触发广播。

连接器

将 Customer.io MCP 连接到 Meta Muse

让你的 AI 使用 Customer.io:查看用户及其属性、分群、活动和消息,分析自动化流程、广播和一次性发送及其指标,并在你确认后发送交易邮件或触发广播。

连接器

Customer.io MCP 服务器:用户、分群与消息

让你的 AI 使用 Customer.io:查看用户及其属性、分群、活动和消息,分析自动化流程、广播和一次性发送及其指标,并在你确认后发送交易邮件或触发广播。