SuperAPI AI 工具集

pp-intercom

通用与其它

查看项目

更新于 10-16 06:49

技能介绍

用途:intercom-pp-cli 是驱动 Intercom REST API 的单体 Go 二进制,每个端点对应一个子命令,适合批量操作大量记录、跨区域(--region us|eu|au)工作区,以及构建会分诊、打标签、总结会话的智能体。

主要能力:覆盖 admins、ai、articles、companies、contacts、conversations、custom-object-instances、data-attributes、events、help-center、internal-articles、news、notes、segments、tags、teams、ticket-states、ticket-types、tickets 等资源。sync 命令把会话、联系人、公司、工单与文章镜像到本地 SQLite,支持离线搜索;四个特色命令包括 conversations incident-tag(按时间窗与关键词批量打标签)、articles pull/push(把帮助中心文章展开为可版本控制的 markdown 目录树并回推)、contact 360(把联系人在公司、会话、工单、备注、标签间联结成单一嵌套结果)、conversations sla(按团队或客服统计首次响应与解决时长)。整体 JSON 优先、带类型化退出码。

使用方式:先安装 CLI 并验证。npx -y @mvanhorn/printing-press-library install intercom --cli-only,然后运行 intercom-pp-cli --version。若 npx 安装失败(无 Node、离线等),可用 Go 1.26.6 或更新版本直接安装:go install github.com/mvanhorn/printing-press-library/library/sales-and-crm/intercom/cmd/intercom-pp-cli@latest,并确保二进制目录在 $PATH 上。示例:intercom-pp-cli conversations incident-tag --mentions "checkout fails" --since 24h --tag incident-2026-05-24 --apply;intercom-pp-cli articles pull --to ./articles/;intercom-pp-cli contact 360 mei@example.com --agent;intercom-pp-cli conversations sla --group-by team --metric first-response,resolution --since 7d --agent。

适用场景:事故响应批量打标签、帮助中心文档版本化管理、客服 SLA 分析、智能体分诊前查询联系人全景。

限制:需先安装并验证 CLI,若 --version 报 command not found 不应继续调用;删除会话或工单不可逆;events 列表仅支持 90 天内数据;custom-object-instances 需在 Developer Hub 配置额外权限;具体收费、价格与配额暂未提供。