BlueBubbles消息管理Skill bluebubbles

BlueBubbles 消息管理技能是一个用于通过 BlueBubbles 服务集成来发送、接收和管理 Apple iMessage 消息的自动化工具。它支持发送文本和附件、添加或移除表情反应(Tapback)、编辑或撤销已发送消息、在主题内回复以及管理群聊设置。该技能通过 API 调用实现,是连接自动化工作流与 iMessage 生态系统的桥梁,适用于需要将 iMessage 通信集成到自动化流程、客服系统或智能助手的场景。关键词:iMessage 集成,BlueBubbles,消息自动化,Apple 消息,聊天机器人,消息管理,API 通信。

移动开发 0 次安装 0 次浏览 更新于 2/24/2026

name: bluebubbles description: 当需要通过BlueBubbles发送或管理iMessage时使用(推荐使用的iMessage集成)。调用通过通用消息工具完成,并设置channel=“bluebubbles”。 metadata: { “openclaw”: { “emoji”: “🫧”, “requires”: { “config”: [“channels.bluebubbles”] } } }

BlueBubbles 操作指南

概述

BlueBubbles 是 OpenClaw 推荐的 iMessage 集成方案。使用 message 工具并设置 channel: "bluebubbles" 来发送消息和管理 iMessage 对话:发送文本和附件、添加反应(轻点回放)、编辑/撤销发送、在主题中回复以及管理群聊参与者和群组名称/图标。

需要收集的输入信息

  • target (优先使用 chat_guid:...;也可以是 E.164 格式的 +15551234567user@example.com
  • message 用于发送/编辑/回复的文本内容
  • messageId 用于反应/编辑/撤销发送/回复
  • 附件 path 用于本地文件,或 buffer + filename 用于 base64 编码

如果用户描述模糊(例如“给我妈发个短信”),请询问收件人的句柄或聊天 GUID 以及确切的消息内容。

操作

发送消息

{
  "action": "send",
  "channel": "bluebubbles",
  "target": "+15551234567",
  "message": "来自 OpenClaw 的问候"
}

添加反应(轻点回放)

{
  "action": "react",
  "channel": "bluebubbles",
  "target": "+15551234567",
  "messageId": "<message-guid>",
  "emoji": "❤️"
}

移除反应

{
  "action": "react",
  "channel": "bluebubbles",
  "target": "+15551234567",
  "messageId": "<message-guid>",
  "emoji": "❤️",
  "remove": true
}

编辑已发送的消息

{
  "action": "edit",
  "channel": "bluebubbles",
  "target": "+15551234567",
  "messageId": "<message-guid>",
  "message": "更新后的文本"
}

撤销发送消息

{
  "action": "unsend",
  "channel": "bluebubbles",
  "target": "+15551234567",
  "messageId": "<message-guid>"
}

回复特定消息

{
  "action": "reply",
  "channel": "bluebubbles",
  "target": "+15551234567",
  "replyTo": "<message-guid>",
  "message": "回复那条消息"
}

发送附件

{
  "action": "sendAttachment",
  "channel": "bluebubbles",
  "target": "+15551234567",
  "path": "/tmp/photo.jpg",
  "caption": "请查收"
}

发送带有 iMessage 特效的消息

{
  "action": "sendWithEffect",
  "channel": "bluebubbles",
  "target": "+15551234567",
  "message": "重大新闻",
  "effect": "balloons"
}

注意事项

  • 需要网关配置 channels.bluebubbles (serverUrl/password/webhookPath)。
  • 尽可能优先使用 chat_guid 作为目标(尤其是群聊)。
  • BlueBubbles 支持丰富的操作,但部分功能依赖于 macOS 版本(例如,编辑功能在 macOS 26 Tahoe 上可能无法使用)。
  • 网关可能同时暴露短消息 ID 和完整消息 ID;完整 ID 在重启后更具持久性。
  • 底层插件的开发者参考文档位于 extensions/bluebubbles/README.md

可以尝试的想法

  • 使用轻点回放反应来确认收到请求。
  • 当用户引用特定消息时,在主题内进行回复。
  • 发送带有简短说明的文件附件。