@optima-chat/optima-agent 0.8.67 → 0.8.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -46,6 +46,18 @@ growth calendar pending
46
46
  growth calendar update <id> --status published
47
47
  ```
48
48
 
49
+ ### 触达管理
50
+ ```bash
51
+ growth outreach targets list [--status discovered|qualified|messaged|replied|converted|rejected] [--platform xiaohongshu]
52
+ growth outreach targets create --account-id <id> --platform xiaohongshu --platform-user-id <uid> --platform-username "昵称" --source-url "https://..." --source-keyword "关键词" --reason "筛选理由"
53
+ growth outreach targets update <id> --status qualified
54
+ growth outreach targets delete <id>
55
+ growth outreach messages list [--target-id <id>] [--status sent|replied]
56
+ growth outreach messages create --target-id <id> --account-id <id> --message "私信内容"
57
+ growth outreach messages update <id> --status replied --reply "回复内容"
58
+ growth outreach stats
59
+ ```
60
+
49
61
  ## style 字段说明
50
62
 
51
63
  每个账号的 `style` 字段是该人设的完整内容规范,包含口吻风格、图片风格、标题格式、正文格式、标签策略、禁忌事项等。
@@ -68,8 +80,10 @@ growth calendar update <id> --status published
68
80
  1. `growth accounts get <id>` + `growth config get` — 获取人设和产品信息
69
81
  2. 根据 style 规范生成文案,**必须自然植入产品推广**(植入方式因人设而异)
70
82
  3. 用 gen skill 生成配图
71
- 4. 用 browser skill 发布到小红书:
72
- - `browser-cli launch --url "https://creator.xiaohongshu.com/publish/publish" --profile <browser_profile_id> --force`
83
+ 4. 用 browser skill 发布到目标平台:
84
+ - 根据账号 `channels` 和当前任务的 channel 选择平台 URL
85
+ - 小红书:`browser-cli launch --url "https://creator.xiaohongshu.com/publish/publish" --profile <browser_profile_id> --force`
86
+ - 其他平台:根据平台 URL 和发布流程操作
73
87
  - 切到图文模式 → 上传图片 → 填标题正文 → 直接点击发布(不需要用户确认)
74
88
  - 如果需要登录,询问用户手机号和验证码
75
89
  - **发布成功后,从页面或 URL 栏抓取帖子链接,记录到 publish_result**
@@ -103,12 +117,38 @@ growth calendar update <id> --status published
103
117
  - `growth calendar update <id> --performance '{"views":1200,"likes":85,"collects":42,"comments":12}'`
104
118
  3. 根据表现数据更新关联选题的评分(`growth topics update <id> --performance-score <分数>`),表现好的选题得分更高,后续 `growth topics suggest` 会优先推荐
105
119
 
120
+ ### 私信触达
121
+
122
+ 发现目标用户、发送个性化私信、追踪转化:
123
+
124
+ **发现目标用户:**
125
+ 1. 根据产品配置和目标受众确定搜索关键词
126
+ 2. 用 scout 相关 skill 搜索各平台内容
127
+ 3. 筛选目标:最近发帖、互动少、表达了明确痛点
128
+ 4. 去重:`growth outreach targets list` 检查是否已触达
129
+ 5. 存入:`growth outreach targets create`
130
+
131
+ **筛选评估:**
132
+ 1. 读取 discovered 状态的目标,用 scout skill 查看其主页评估
133
+ 2. 合格 → `growth outreach targets update <id> --status qualified`
134
+ 3. 不合格 → `growth outreach targets update <id> --status rejected`
135
+
136
+ **发送私信:**
137
+ 1. 读取 qualified 目标,AI 根据其帖子内容 + 人设风格生成个性化私信
138
+ 2. 用 browser skill 打开平台发送私信
139
+ 3. 记录:`growth outreach messages create` + 更新 target 状态为 messaged
140
+ 4. 遵守风控:不超过 posting_rules.max_daily_outreach
141
+
142
+ **回复跟进:**
143
+ 回采时检查私信回复,更新 target 为 replied,AI 自动跟进引导注册
144
+
106
145
  ### 定时自动化
107
146
 
108
147
  用 sentinel skill 创建定时规则:
109
148
  - **自动发布**:为每个账号创建发布规则(cron 调度),指令:加载 growth skill → 检查 pending → 生成并发布
110
149
  - **选题更新**:定期搜索多平台热门内容,补充选题库
111
150
  - **数据回采**:每天回采已发帖子的互动数据,更新选题评分
151
+ - **私信触达**:每日发现新目标、发送私信、检查回复
112
152
  - **内容规划**:每周自动规划下一周日历
113
153
  - 同一用户的规则排队执行,不会并发
114
154
 
@@ -123,5 +163,7 @@ growth calendar update <id> --status published
123
163
 
124
164
  - 单账号每日发布不超过 posting_rules.max_daily_posts
125
165
  - 两次发布间隔不少于 posting_rules.min_interval_hours 小时
166
+ - 单账号每日触达不超过 posting_rules.max_daily_outreach
167
+ - 两次触达间隔不少于 posting_rules.min_outreach_interval_minutes 分钟
126
168
  - 不同人设的内容必须有明显差异
127
169
  - 发布时间加入随机偏移
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optima-chat/optima-agent",
3
- "version": "0.8.67",
3
+ "version": "0.8.68",
4
4
  "description": "基于 Claude Agent SDK 的电商运营 AI 助手",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",