@optima-chat/optima-agent 0.8.67 → 0.8.69

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,27 @@ 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
+
61
+ ### 评论管理
62
+ ```bash
63
+ growth comments list [--type reply|outreach] [--platform xiaohongshu] [--account-id <id>] [--post-url <url>]
64
+ growth comments create --account-id <id> --platform xiaohongshu --type reply --post-url "https://..." --comment "评论内容"
65
+ growth comments update <id> --status replied --performance '{"likes":5}'
66
+ growth comments delete <id>
67
+ growth comments stats
68
+ ```
69
+
49
70
  ## style 字段说明
50
71
 
51
72
  每个账号的 `style` 字段是该人设的完整内容规范,包含口吻风格、图片风格、标题格式、正文格式、标签策略、禁忌事项等。
@@ -68,8 +89,10 @@ growth calendar update <id> --status published
68
89
  1. `growth accounts get <id>` + `growth config get` — 获取人设和产品信息
69
90
  2. 根据 style 规范生成文案,**必须自然植入产品推广**(植入方式因人设而异)
70
91
  3. 用 gen skill 生成配图
71
- 4. 用 browser skill 发布到小红书:
72
- - `browser-cli launch --url "https://creator.xiaohongshu.com/publish/publish" --profile <browser_profile_id> --force`
92
+ 4. 用 browser skill 发布到目标平台:
93
+ - 根据账号 `channels` 和当前任务的 channel 选择平台 URL
94
+ - 小红书:`browser-cli launch --url "https://creator.xiaohongshu.com/publish/publish" --profile <browser_profile_id> --force`
95
+ - 其他平台:根据平台 URL 和发布流程操作
73
96
  - 切到图文模式 → 上传图片 → 填标题正文 → 直接点击发布(不需要用户确认)
74
97
  - 如果需要登录,询问用户手机号和验证码
75
98
  - **发布成功后,从页面或 URL 栏抓取帖子链接,记录到 publish_result**
@@ -89,6 +112,7 @@ growth calendar update <id> --status published
89
112
  3. **去重检查**:创建选题前,用 `growth topics list` 和 `growth calendar list --status published` 获取已有选题和已发内容,跳过角度相似或主题重复的内容
90
113
  4. 从高互动内容中提取选题角度,用 `growth topics create --source trending` 存入选题库
91
114
  5. 根据原内容互动数据给选题打分(`growth topics update <id> --performance-score <分数>`)
115
+ 6. **评论引流**:筛选适合评论的帖子(话题相关、互动活跃、最近发的),AI 生成评论(提供价值,不是硬广),用 browser skill 发评论,`growth comments create --type outreach` 记录
92
116
 
93
117
  可用 sentinel skill 创建定时规则自动执行选题更新。
94
118
 
@@ -102,6 +126,33 @@ growth calendar update <id> --status published
102
126
  - 从页面抓取互动数据:浏览量、点赞、收藏、评论数
103
127
  - `growth calendar update <id> --performance '{"views":1200,"likes":85,"collects":42,"comments":12}'`
104
128
  3. 根据表现数据更新关联选题的评分(`growth topics update <id> --performance-score <分数>`),表现好的选题得分更高,后续 `growth topics suggest` 会优先推荐
129
+ 4. **评论回复**:抓取帖子下的新评论,AI 根据人设风格生成回复,用 browser skill 发送,`growth comments create --type reply` 记录
130
+ 5. **评论数据**:检查已发评论的互动数据(点赞数),`growth comments update <id> --performance '{"likes":N}'`
131
+
132
+ ### 私信触达
133
+
134
+ 发现目标用户、发送个性化私信、追踪转化:
135
+
136
+ **发现目标用户:**
137
+ 1. 根据产品配置和目标受众确定搜索关键词
138
+ 2. 用 scout 相关 skill 搜索各平台内容
139
+ 3. 筛选目标:最近发帖、互动少、表达了明确痛点
140
+ 4. 去重:`growth outreach targets list` 检查是否已触达
141
+ 5. 存入:`growth outreach targets create`
142
+
143
+ **筛选评估:**
144
+ 1. 读取 discovered 状态的目标,用 scout skill 查看其主页评估
145
+ 2. 合格 → `growth outreach targets update <id> --status qualified`
146
+ 3. 不合格 → `growth outreach targets update <id> --status rejected`
147
+
148
+ **发送私信:**
149
+ 1. 读取 qualified 目标,AI 根据其帖子内容 + 人设风格生成个性化私信
150
+ 2. 用 browser skill 打开平台发送私信
151
+ 3. 记录:`growth outreach messages create` + 更新 target 状态为 messaged
152
+ 4. 遵守风控:不超过 posting_rules.max_daily_outreach
153
+
154
+ **回复跟进:**
155
+ 回采时检查私信回复,更新 target 为 replied,AI 自动跟进引导注册
105
156
 
106
157
  ### 定时自动化
107
158
 
@@ -109,6 +160,7 @@ growth calendar update <id> --status published
109
160
  - **自动发布**:为每个账号创建发布规则(cron 调度),指令:加载 growth skill → 检查 pending → 生成并发布
110
161
  - **选题更新**:定期搜索多平台热门内容,补充选题库
111
162
  - **数据回采**:每天回采已发帖子的互动数据,更新选题评分
163
+ - **私信触达**:每日发现新目标、发送私信、检查回复
112
164
  - **内容规划**:每周自动规划下一周日历
113
165
  - 同一用户的规则排队执行,不会并发
114
166
 
@@ -123,5 +175,9 @@ growth calendar update <id> --status published
123
175
 
124
176
  - 单账号每日发布不超过 posting_rules.max_daily_posts
125
177
  - 两次发布间隔不少于 posting_rules.min_interval_hours 小时
178
+ - 单账号每日触达不超过 posting_rules.max_daily_outreach
179
+ - 两次触达间隔不少于 posting_rules.min_outreach_interval_minutes 分钟
180
+ - 单账号每日评论不超过 posting_rules.max_daily_comments
181
+ - 两次评论间隔不少于 posting_rules.min_comment_interval_minutes 分钟
126
182
  - 不同人设的内容必须有明显差异
127
183
  - 发布时间加入随机偏移
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.69",
4
4
  "description": "基于 Claude Agent SDK 的电商运营 AI 助手",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",