ClawSkills logoClawSkills

LinkedIn Inbox Manager

LinkedIn 收件箱管理,具有计划扫描、遵循用户沟通风格的自动起草回复以及审批工作流。在监控 Linked 时使用

介绍

# LinkedIn Inbox Manager

自动化 LinkedIn 收件箱监控,并采用人机协同机制审批回复。使用 Peekaboo 进行 UI 自动化(无 API 速率限制,适用于任何 LinkedIn 账户)。

## 要求

- 安装了 Peekaboo CLI 的 macOS(`brew install steipete/tap/peekaboo`) - 已授予屏幕录制 + 辅助功能权限 - 已通过浏览器登录 LinkedIn(推荐 Chrome) - 具备浏览器功能的 Clawdbot

## 快速开始

### 1. 一次性设置 ```bash # Grant Peekaboo permissions peekaboo permissions

# Verify LinkedIn is accessible peekaboo app launch "Google Chrome" peekaboo see --app "Google Chrome" --annotate --path /tmp/linkedin-check.png ```

### 2. 配置用户风格 在工作区中创建 `linkedin-inbox-config.json`: ```json { "scan": { "intervalMinutes": 60, "activeHours": { "start": 9, "end": 18, "timezone": "America/Los_Angeles" }, "skipWeekends": true }, "drafting": { "styleProfile": "USER.md", "templates": { "decline": "Thanks for reaching out. Not a fit for us right now, but best of luck.", "interested": "This looks interesting. Happy to chat more. What's your availability?", "referral": "I might know someone. Let me check and get back to you." } }, "notifications": { "channel": "discord", "target": "#linkedin" } } ```

### 3. 开始监控 告诉你的智能体:“Start LinkedIn inbox monitoring”或添加到 HEARTBEAT.md: ```markdown - Check LinkedIn inbox if last scan >1 hour ago ```

## 核心工作流

### 扫描收件箱 ```bash # Navigate to LinkedIn messaging peekaboo app launch "Google Chrome" peekaboo menu click --app "Google Chrome" --item "New Tab" peekaboo type "https://www.linkedin.com/messaging/" --return sleep 3

# Capture inbox state peekaboo see --app "Google Chrome" --window-title "Messaging" --annotate --path /tmp/linkedin-inbox.png ```

智能体读取带注释的屏幕截图以识别: - 未读消息(加粗的姓名、蓝点) - 消息预览 - 发件人姓名和头衔

### 起草回复 针对每条未读消息: 1. 智能体阅读对话 2. 对意图进行分类(推销、社交、求职咨询、垃圾邮件) 3. 起草符合用户沟通风格的回复 4. 将草稿发布到通知频道以供审批

通知示例: ``` 💼 LinkedIn: New message from **Alex M.** (Founder @ SomeCompany)

Preview: "Hi, I noticed you're growing and wondered if..."

**My read:** Services pitch. Doesn't fit current needs.

**Draft reply:** > Thanks for reaching out. We're set on that side for now, but I'll keep you in mind if that changes.

React ✅ to send, ❌ to skip, or reply with edits. ```

### 发送已批准的消息 获得批准后: ```bash # Click into conversation peekaboo click --on [message-element-id] --app "Google Chrome" sleep 1

# Type response peekaboo type "Your approved message here" --app "Google Chrome"

# Send (Enter or click Send button) peekaboo press return --app "Google Chrome" ```

## 沟通风格匹配

该技能读取 `USER.md`(或配置的风格文件)以匹配用户的语气:

**提取这些信号:** - 正式程度(随意 vs 专业) - 典型的问候风格 - 结尾署名模式 - 句子长度偏好 - 禁用词/短语 - 回复长度规范

**应用于草稿:** - 镜像检测到的模式 - 使用用户的词汇 - 匹配其直率程度 - 遵守其防护规则(不使用“excited”等词,不炒作等)

详细指南请参阅 `references/style-extraction.md`。

## 晨间提醒集成

将 LinkedIn 摘要添加到你的晨间提醒中: ```markdown 📣 The Morning Ping — Monday, Jan 27

**LinkedIn:** • 💚 Sarah Chen replied — "That sounds great, let's do Thursday" → Draft ready • 💚 Mike R. replied — "Not interested right now" → No action needed • 📩 3 new connection requests (2 sales pitches, 1 relevant) • 📩 1 unread message from Alex (job inquiry) → Draft ready

Reply "send sarah" to approve, "skip mike" to archive. ```

## 审批命令

用户可以回复: - `send [name]` - 发送起草的回复 - `send all` - 发送所有待定草稿 - `skip [name]` - 不回复直接归档 - `edit [name]: [new message]` - 替换草稿并发送 - `show [name]` - 显示完整对话

## 定时扫描

### 通过 Cron(推荐) ```json { "schedule": "0 */2 9-18 * * 1-5", "text": "Scan LinkedIn inbox and post any new messages to #linkedin with draft replies" } ```

### 通过 Heartbeat 在 HEARTBEAT.md 中: ```markdown - If 9am-6pm PT and last LinkedIn scan >60min: scan inbox, draft replies, post to #linkedin ```

## 安全规则

1. **未经明确批准绝不发送** - 始终等待用户确认 2. **操作速率限制** - 每小时最多 20 次 LinkedIn 操作 3. **遵守静默时段** - 不要在配置的 activeHours 之外进行扫描 4. **记录所有内容** - 在每日记忆文件中记录所有操作 5. **保留原始内容** - 永远不要删除消息,仅归档

## 故障排除

### "Can't find messaging UI" - 确保 Chrome 已打开并登录 LinkedIn - 检查窗口标题是否匹配(可能因语言而异) - 使用 `peekaboo list windows --app "Google Chrome" --json` 进行调试

### "Session expired" - LinkedIn 会话定期过期 - 在浏览器中手动重新认证 - 技能会检测登录页面并通知用户

### "Peekaboo permissions denied" ```bash peekaboo permissions # Check status # Grant via System Preferences > Privacy & Security > Screen Recording + Accessibility ```

## 文件

- `scripts/scan_inbox.sh` - 用于收件箱捕获的 Peekaboo 命令 - `scripts/send_message.sh` - 用于发送的 Peekaboo 命令 - `references/style-extraction.md` - 沟通风格匹配指南

更多产品