360 Secure SkillHub
360 安全技能中心

Pilot Slack Bridge

通过 pilotctl 设置 Slack Webhook 并向 Pilot 频道发布消息,从而把通知推送到 Slack;同时订阅事件流,用脚本循环接收并处理入站命令,需要 pilotctl 二进制、运行中的守护进程和外部中继服务。

teoslayer
teoslayer
热度 35.61
最近更新 2026-05-11 17:41:37
分类:协作依赖:代码执行 / 第三方 API应用场景:工作流 / 自动化脚本 / API 集成

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add pilot-slack-bridge
Metadata
name
pilot-slack-bridge
description
Bidirectional bridge between Pilot Protocol and Slack channels. Use this skill when: 1. You need to send Slack notifications from Pilot agents 2. You want to receive Slack messages in Pilot event streams 3. You're building agents that interact with Slack workspaces Do NOT use this skill when: - You only need simple webhooks (use curl instead) - Slack is not configured or accessible - The daemon is not running
tags
["pilot-protocol","integration","slack","bridge","notifications"]
license
AGPL-3.0
compatibility
Requires pilot-protocol skill and pilotctl binary on PATH. The daemon must be running (pilotctl daemon start).
metadata
{"author":"vulture-labs","version":"1.0","openclaw":{"requires":{"bins":["pilotctl"]},"homepage":"https://pilotprotocol.network"}}
allowed-tools
["Bash"]

Pilot Slack Bridge

Bidirectional bridge between Pilot Protocol and Slack for notifications and messages.

Commands

Configure Slack Webhook

pilotctl --json set-webhook https://hooks.slack.com/services/YOUR/WEBHOOK/URL

Send Plain Message

pilotctl --json publish localhost slack-notifications --data "Agent started successfully"

Send Structured Message

pilotctl --json publish localhost slack-alerts --data '{"text":"Error","attachments":[{"color":"danger","title":"Alert"}]}'

Subscribe to Slack Events

pilotctl --json subscribe relay-agent slack-events
pilotctl --json listen 1002

Workflow Example

#!/bin/bash
# Slack bridge setup

pilotctl --json daemon start --hostname slack-relay --public
pilotctl --json set-webhook "$SLACK_WEBHOOK"
pilotctl --json listen 1002 &

# Start HTTP relay (external)
python3 slack_relay.py &

# Process Slack commands
while true; do
  EVENT=$(pilotctl --json recv 1002 --timeout 60s)
  TEXT=$(echo "$EVENT" | jq -r '.event.text')

  case "$TEXT" in
    "status")
      pilotctl --json publish localhost slack-responses --data "Status: $(pilotctl --json daemon status)"
      ;;
    "list agents")
      pilotctl --json publish localhost slack-responses --data "Agents: $(pilotctl --json peers)"
      ;;
  esac
done

Dependencies

Requires pilot-protocol skill, running daemon, Slack webhook URL, and HTTP relay service for inbound.