闲社服务运行正常AI智能体自动化平台
h

HelpScout命令行工具

技能标识:hs

CLI for the HelpScout API. Manage conversations, customers, mailboxes, knowledge base articles, and more from the terminal. Covers both Inbox and Docs APIs with full CRUD, PII redaction, permissions, and multiple output formats.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 0.0.2
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

HelpScout命令行工具

hs

使用 hs 从终端与 HelpScout 交互。两个 API 命名空间:hs inbox(Mailbox API — 对话、客户、用户、团队等)和 hs docs(Docs API — 站点、集合、分类、文章)。

认证

Inbox 使用 OAuth2 客户端凭证(App ID + App Secret)。Docs 使用 API 密钥。

  • - hs inbox auth login — 交互式设置,对 API 进行验证
  • hs docs auth login — 提示输入 Docs API 密钥,进行验证
  • hs inbox auth status / hs docs auth status — 检查存储的凭证
  • hs inbox auth logout / hs docs auth logout — 移除凭证

凭证解析顺序:OS 密钥环 → 配置文件。对于非交互式认证,使用 hs inbox config set --inbox-app-id --inbox-app-secret 。

Inbox 命令

对话(conv)

  • - hs inbox conv list --status active --mailbox --tag --assigned-to --embed threads
  • hs inbox conv get --embed threads
  • hs inbox conv create --mailbox --subject ... --customer --body ...
  • hs inbox conv update --status closed --subject ...
  • hs inbox conv delete
  • hs inbox conv threads list
  • hs inbox conv threads reply --customer --body ... --status closed
  • hs inbox conv threads note --body ...
  • hs inbox conv tags set --tag billing --tag urgent
  • hs inbox conv fields set --field =
  • hs inbox conv attachments upload --thread-id --file ./path

客户(cust)

  • - hs inbox cust list --query email:jane@example.com
  • hs inbox cust get
  • hs inbox cust create --first-name Jane --last-name Doe --email jane@example.com
  • hs inbox cust update --last-name Smith
  • hs inbox cust delete

邮箱(mb)

  • - hs inbox mb list / hs inbox mb get
  • hs inbox mb folders list / hs inbox mb custom-fields list

用户

  • - hs inbox users list --email user@co.com / hs inbox users get / hs inbox users me
  • hs inbox users status get / hs inbox users status set --status away

团队

  • - hs inbox teams list / hs inbox teams members

组织

  • - hs inbox organizations list --query acme / hs inbox organizations get
  • hs inbox organizations create --name Acme Corp / hs inbox organizations delete

标签 / 评分

  • - hs inbox tags list / hs inbox ratings list

工作流(wf)

  • - hs inbox wf list / hs inbox wf run --conversation-ids id1,id2
  • hs inbox wf update-status --status active

Webhooks(wh)

  • - hs inbox wh list / hs inbox wh get
  • hs inbox wh create --url https://... --events convo.created --secret s3cret
  • hs inbox wh delete

已保存回复

  • - hs inbox saved-replies list --mailbox-id
  • hs inbox saved-replies create --mailbox-id --name Greeting --body Hello...

报告

  • - hs inbox reports conversations --start 2025-01-01 --end 2025-01-31 --mailbox
  • 子命令:chats、company、conversations、customers、docs、email、productivity、ratings、users

工具

  • - hs inbox tools briefing — 每日简报摘要
  • hs inbox tools briefing --assigned-to --embed threads — 特定代理的简报,包含线程内容

Docs 命令

站点

  • - hs docs sites list / hs docs sites get
  • hs docs sites create --subdomain help --title Help Center

集合

  • - hs docs collections list --site / hs docs collections get
  • hs docs collections create --site --name Getting Started

分类

  • - hs docs categories list / hs docs categories get
  • hs docs categories create --collection --name FAQ
  • hs docs categories reorder --categories id1,id2,id3

文章

  • - hs docs articles list --collection 或 --category
  • hs docs articles search --query password reset --site
  • hs docs articles get / hs docs articles get --draft
  • hs docs articles create --collection --name How to reset --text Step 1...
  • hs docs articles update --text Updated... --status published
  • hs docs articles delete
  • hs docs articles draft save --text ... / hs docs articles draft delete
  • hs docs articles revisions list / hs docs articles revisions get
  • hs docs articles upload --file ./image.png

重定向

  • - hs docs redirects list / hs docs redirects find --site --url /old-path
  • hs docs redirects create --site --url-mapping /old --redirect /new

资源

  • - hs docs assets article upload --file ./img.png
  • hs docs assets settings upload --file ./logo.png

输出与全局标志

  • - --format table|json|json-full|csv — 输出格式(默认:table)
  • --no-paginate — 自动获取所有页面
  • --page / --per-page — 分页(默认值:1, 25)
  • --debug — 显示 HTTP 请求/响应详情

配置

  • - hs config set --format json --inbox-default-mailbox 12345
  • hs config get [key] — 打印一个或所有配置值
  • hs config path — 打印配置文件位置
  • 默认位置:~/.config/hs/config.yaml(Linux/macOS),%AppData%\hs\config.yaml(Windows)

PII 脱敏

Inbox 命令使用确定性假身份对客户/用户的 PII 进行脱敏。通过配置键 inboxpiimode 控制。

模式效果
off不脱敏(默认)
customers
脱敏客户姓名、邮箱、电话 |
| all | 脱敏客户和用户 |

  • - hs inbox 上的 --unredacted 标志可在单次调用中禁用脱敏(需要在配置中设置 inboxpiiallow_unredacted: true)

权限

白名单模型 — 限制代理可以运行的命令。空策略 = 无限制。

  • - 通过配置键 inboxpermissions / docspermissions 设置 — 逗号分隔的 resource:operation 对
  • 通配符::read、conversations:
  • 操作:read、write、delete、*
  • hs inbox permissions — 检查当前策略,显示每个命令的 ALLOW/DENY

示例:hs inbox config set --inbox-permissions conversations:read,customers:read,mailboxes:read

备注

  • - 自我更新:hs update
  • Shell 补全:hs completion bash|zsh|fish|powershell

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 helpscout-cli-1776275151 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 helpscout-cli-1776275151 技能

通过命令行安装

skillhub install helpscout-cli-1776275151

下载

⬇ 下载 hs v0.0.2(免费)

文件大小: 3.11 KB | 发布时间: 2026-4-16 15:29

v0.0.2 最新 2026-4-16 15:29
- Updated authentication flow: environment variables are no longer used or documented for auth; now credentials resolve via OS keyring or config file.
- Changed guidance for non-interactive authentication to use `hs inbox config set` command.
- Removed documentation for configuration and control via environment variables.
- Permission and redaction settings are now managed via config keys (`inbox_permissions`, `docs_permissions`, `inbox_pii_mode`) instead of environment variables.
- Updated instructions and examples throughout SKILL.md for clarity and consistency with the new config-driven approach.
返回顶部