HashBox:为 AI 智能体提供的 iOS 推送通知 - Openclaw Skills

作者:互联网

2026-04-18

AI教程

什么是 HashBox 通知插件?

HashBox 插件旨在通过提供移动设备的直接线路来扩展 AI 智能体的触达范围。通过利用 HashBox iOS 应用和 Firebase Webhooks,此技能允许智能体传输关键更新,而无需用户一直盯着终端或桌面环境。它通过为智能体生成的警报提供原生移动体验,代表了 Openclaw Skills 的重大进步。

无论您是在监控运行时间较长的后台任务,还是需要立即获得安全事件通知,此插件都能处理 API 通信的繁重工作。它支持各种有效负载格式,确保 iOS 设备上显示的信息针对可读性进行了优化,无论是简单的文本文章还是复杂的性能指标集。

下载入口:https://github.com/openclaw/skills/tree/main/skills/w3h9uf/hashbox-plugin

安装与下载

1. ClawHub CLI

从源直接安装技能的最快方式。

npx clawhub@latest install hashbox-plugin

2. 手动安装

将技能文件夹复制到以下位置之一

全局模式 ~/.openclaw/skills/ 工作区 /skills/

优先级:工作区 > 本地 > 内置

3. 提示词安装

将此提示词复制到 OpenClaw 即可自动安装。

请帮我使用 Clawhub 安装 hashbox-plugin。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。

HashBox 通知插件 应用场景

  • 在长时间运行的 CI/CD 构建完成或失败时发送即时警报。
  • 将 CPU 使用率和内存消耗等实时服务器健康指标推送到移动仪表板。
  • 将安全审计日志或未经授权的访问尝试直接发送到您的 iPhone。
  • 通知用户智能体生成的摘要或已完成的研究任务,以便随时阅读。
HashBox 通知插件 工作原理
  1. 开发者安装插件并提供以 HB- 前缀开头的有效 HashBox API 令牌。
  2. 配置工具将凭据保存在本地,以便为未来的请求启用无缝身份验证。
  3. 当智能体需要发送通知时,它会调用带有特定有效负载类型(如文章、指标或审计)的传送工具。
  4. 插件打包数据并通过安全 Webhook 将其发送到 HashBox 基础设施。
  5. 用户收到按指定频道和图标分类的原生 iOS 推送通知。

HashBox 通知插件 配置指南

首先,通过 npm 安装包:

npm install hashbox-plugin

接下来,通过配置工具提供您的 HashBox API 令牌来初始化连接。这是这些 Openclaw Skills 运行所需的一次性设置:

configure_hashbox({
  "token": "HB-your-token-here"
})

HashBox 通知插件 数据架构与分类体系

插件将配置本地存储在名为 hashbox_config.json 的文件中。通知有效负载的结构如下:

属性 描述 格式
payloadType 决定 iOS 上的视觉布局 article, metric, 或 audit
channelName 通知的组名 字符串
contentOrData 实际消息内容或结构化数据 字符串或对象数组
channelIcon UI 的表情符号或图标标识符 字符串

hashbox-plugin

OpenClaw plugin that connects an AI agent to the HashBox iOS app via Firebase webhook for push notifications.

Installation

npm install hashbox-plugin

Setup

Prerequisites

  1. A HashBox iOS app account
  2. A valid HB- prefixed API token from your HashBox dashboard

Configuration

Before using the plugin, configure it with your HashBox API token using the configure_hashbox tool:

configure_hashbox({
  "token": "HB-your-token-here"
})

This stores your configuration locally in hashbox_config.json.

Usage

configure_hashbox

Sets up the HashBox connection by saving your API token.

Parameters:

Parameter Type Required Description
token string Yes Your HashBox API token (must start with HB-)

Example:

configure_hashbox({
  "token": "HB-abc123"
})

send_hashbox_notification

Sends a push notification to the HashBox iOS app through the configured Firebase webhook.

Parameters:

Parameter Type Required Description
payloadType "article" | "metric" | "audit" Yes Type of notification payload
channelName string Yes Name of the notification channel
channelIcon string Yes Icon/emoji for the channel
title string Yes Notification title
contentOrData string | MetricItem[] | AuditFinding[] Yes Content body (string for article) or structured data (array for metric/audit)

Example (article):

send_hashbox_notification({
  "payloadType": "article",
  "channelName": "Builds",
  "channelIcon": "??",
  "title": "Build Complete",
  "contentOrData": "Your project compiled successfully with 0 errors."
})

Example (metric):

send_hashbox_notification({
  "payloadType": "metric",
  "channelName": "Performance",
  "channelIcon": "??",
  "title": "Daily Metrics",
  "contentOrData": [
    { "label": "CPU Usage", "value": 42, "unit": "%" },
    { "label": "Memory", "value": 8.2, "unit": "GB" }
  ]
})

Example (audit):

send_hashbox_notification({
  "payloadType": "audit",
  "channelName": "Security",
  "channelIcon": "??",
  "title": "Audit Log",
  "contentOrData": [
    { "severity": "info", "message": "User logged in from new device" }
  ]
})

Dependencies

  • Node.js >= 18.0.0
  • A valid HB- prefixed token from your HashBox account

License

MIT

相关推荐