简介
基于Intercom官方API的纯文档型客服管理技能,提供客户对话、联系人管理及消息发送的标准curl示例,零代码执行风险。
原始描述
Operate a local Intercom peer (Pear) for P2P agent messaging (sidechannels) optional contract state. Uses SC-Bridge WebSocket for agent I/O. No installers...
通过你的 Agent 添加
安装目录:intercom/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
intercom skill 是一个纯文档型的 API 参考工具,旨在帮助用户快速掌握 Intercom 客户消息平台的核心 API 操作。该 skill 提供了完整的 curl 命令示例,涵盖六大核心功能模块:联系人管理(列出、搜索、创建)、消息发送、对话管理(列出、回复)。用户只需配置 INTERCOM_ACCESS_TOKEN 环境变量,即可直接复制示例命令并执行,无需编写任何代码。
显著优点
零学习成本:所有操作均以标准 curl 命令呈现,任何具备基础命令行知识的用户都能立即上手,无需研究 Intercom 官方文档的复杂结构。透明可控:纯文档性质意味着无任何隐藏逻辑,用户完全掌控每一次 API 调用的时机、参数和目标对象。即开即用:无需安装依赖包或配置运行时环境,仅需系统自带的 curl 工具即可操作。功能覆盖全面:从基础的联系人 CRUD 到复杂的对话回复场景,覆盖了客服日常工作的主要 API 需求。
潜在缺点与局限性
手动操作负担:所有命令需用户手动复制、修改参数后执行,无法自动化批量处理。无响应解析:仅提供请求示例,不包含响应数据的解析或错误处理逻辑,用户需自行判断 API 返回结果。缺乏高级功能:未涵盖 Intercom 的 Webhook 配置、团队管理、Help Center 文章管理等进阶功能。无交互式体验:相比官方 SDK 或图形化工具,纯命令行方式在调试和可视化方面存在不足。
适合的目标群体
该 skill 最适合以下场景:需要快速验证 Intercom API 行为的开发者或运维人员;希望将 Intercom 集成到自有脚本或 CI/CD 流程中的技术团队;对数据安全敏感、偏好手动控制 API 调用的企业;以及学习 Intercom API 接口的新手用户作为速查手册。
使用风险
Token 泄露风险:Access Token 需通过环境变量配置,若用户误将 Token 写入脚本或日志,可能导致凭证泄露。误操作风险:创建联系人、发送消息等操作会直接修改生产数据,执行前务必确认参数正确性。API 限流风险:高频调用可能触发 Intercom 的速率限制,影响正常业务。网络依赖:所有操作依赖外部网络连接至 Intercom 服务器,网络波动可能导致命令失败。
技能正文
name: intercom
description: Manage customer conversations, contacts, and help articles via Intercom API. Send messages and manage support inbox.
metadata: {"clawdbot":{"emoji":"💬","requires":{"env":["INTERCOM_ACCESS_TOKEN"]}}}
Intercom
Customer messaging platform.
Environment
export INTERCOM_ACCESS_TOKEN="dG9rOxxxxxxxxxx"
List Contacts
curl "https://api.intercom.io/contacts" \
-H "Authorization: Bearer $INTERCOM_ACCESS_TOKEN" \
-H "Accept: application/json"
Search Contacts
curl -X POST "https://api.intercom.io/contacts/search" \
-H "Authorization: Bearer $INTERCOM_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"query": {"field": "email", "operator": "=", "value": "user@example.com"}}'
Create Contact
curl -X POST "https://api.intercom.io/contacts" \
-H "Authorization: Bearer $INTERCOM_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"role": "user", "email": "user@example.com", "name": "John Doe"}'
Send Message
curl -X POST "https://api.intercom.io/messages" \
-H "Authorization: Bearer $INTERCOM_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"message_type": "inapp",
"body": "Hey! How can I help?",
"from": {"type": "admin", "id": "ADMIN_ID"},
"to": {"type": "user", "id": "USER_ID"}
}'
List Conversations
curl "https://api.intercom.io/conversations" \
-H "Authorization: Bearer $INTERCOM_ACCESS_TOKEN"
Reply to Conversation
curl -X POST "https://api.intercom.io/conversations/{id}/reply" \
-H "Authorization: Bearer $INTERCOM_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"message_type": "comment", "type": "admin", "admin_id": "ADMIN_ID", "body": "Thanks for reaching out!"}'
Links
- Dashboard: https://app.intercom.com
- Docs: https://developers.intercom.com
export INTERCOM_ACCESS_TOKEN="dG9rOxxxxxxxxxx"
curl "https://api.intercom.io/contacts" \
-H "Authorization: Bearer $INTERCOM_ACCESS_TOKEN" \
-H "Accept: application/json"
Search Contacts
curl -X POST "https://api.intercom.io/contacts/search" \
-H "Authorization: Bearer $INTERCOM_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"query": {"field": "email", "operator": "=", "value": "user@example.com"}}'
Create Contact
curl -X POST "https://api.intercom.io/contacts" \
-H "Authorization: Bearer $INTERCOM_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"role": "user", "email": "user@example.com", "name": "John Doe"}'
Send Message
curl -X POST "https://api.intercom.io/messages" \
-H "Authorization: Bearer $INTERCOM_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"message_type": "inapp",
"body": "Hey! How can I help?",
"from": {"type": "admin", "id": "ADMIN_ID"},
"to": {"type": "user", "id": "USER_ID"}
}'
List Conversations
curl "https://api.intercom.io/conversations" \
-H "Authorization: Bearer $INTERCOM_ACCESS_TOKEN"
Reply to Conversation
curl -X POST "https://api.intercom.io/conversations/{id}/reply" \
-H "Authorization: Bearer $INTERCOM_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"message_type": "comment", "type": "admin", "admin_id": "ADMIN_ID", "body": "Thanks for reaching out!"}'
Links
- Dashboard: https://app.intercom.com
- Docs: https://developers.intercom.com
curl -X POST "https://api.intercom.io/contacts/search" \
-H "Authorization: Bearer $INTERCOM_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"query": {"field": "email", "operator": "=", "value": "user@example.com"}}'
curl -X POST "https://api.intercom.io/contacts" \
-H "Authorization: Bearer $INTERCOM_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"role": "user", "email": "user@example.com", "name": "John Doe"}'
Send Message
curl -X POST "https://api.intercom.io/messages" \
-H "Authorization: Bearer $INTERCOM_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"message_type": "inapp",
"body": "Hey! How can I help?",
"from": {"type": "admin", "id": "ADMIN_ID"},
"to": {"type": "user", "id": "USER_ID"}
}'
List Conversations
curl "https://api.intercom.io/conversations" \
-H "Authorization: Bearer $INTERCOM_ACCESS_TOKEN"
Reply to Conversation
curl -X POST "https://api.intercom.io/conversations/{id}/reply" \
-H "Authorization: Bearer $INTERCOM_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"message_type": "comment", "type": "admin", "admin_id": "ADMIN_ID", "body": "Thanks for reaching out!"}'
Links
- Dashboard: https://app.intercom.com
- Docs: https://developers.intercom.com
curl -X POST "https://api.intercom.io/messages" \
-H "Authorization: Bearer $INTERCOM_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"message_type": "inapp",
"body": "Hey! How can I help?",
"from": {"type": "admin", "id": "ADMIN_ID"},
"to": {"type": "user", "id": "USER_ID"}
}'
curl "https://api.intercom.io/conversations" \
-H "Authorization: Bearer $INTERCOM_ACCESS_TOKEN"
Reply to Conversation
curl -X POST "https://api.intercom.io/conversations/{id}/reply" \
-H "Authorization: Bearer $INTERCOM_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"message_type": "comment", "type": "admin", "admin_id": "ADMIN_ID", "body": "Thanks for reaching out!"}'
Links
- Dashboard: https://app.intercom.com
- Docs: https://developers.intercom.com
curl -X POST "https://api.intercom.io/conversations/{id}/reply" \
-H "Authorization: Bearer $INTERCOM_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"message_type": "comment", "type": "admin", "admin_id": "ADMIN_ID", "body": "Thanks for reaching out!"}'
- Dashboard: https://app.intercom.com
- Docs: https://developers.intercom.com
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。