@optima-chat/optima-agent 0.8.61 → 0.8.63
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.
|
@@ -64,8 +64,9 @@ growth calendar update <id> --status published
|
|
|
64
64
|
当用户首次使用增长功能时:
|
|
65
65
|
1. 了解用户的产品/业务和目标受众
|
|
66
66
|
2. 建议 2-4 个人设方案,创建账号(`growth accounts create`)
|
|
67
|
-
3.
|
|
68
|
-
4.
|
|
67
|
+
3. 为每个账号绑定浏览器 profile:`growth accounts update <id> --browser-profile-id <账号的UUID>`(用账号 ID 作为 profile ID,首次发帖时 profile 会自动创建)
|
|
68
|
+
4. 基于产品功能和目标受众生成初始选题库(`growth topics create`)
|
|
69
|
+
5. 生成第一周的内容日历(`growth calendar create`)
|
|
69
70
|
|
|
70
71
|
### 日常执行
|
|
71
72
|
|
|
@@ -99,6 +100,11 @@ growth config get
|
|
|
99
100
|
- 用 gen skill 生成小红书风格的配图,保存到本地路径
|
|
100
101
|
|
|
101
102
|
### Step 3: 启动浏览器并打开发布页
|
|
103
|
+
如果账号有 `browser_profile_id`,用 `--profile` 指定该人设的独立浏览器配置(独立登录态):
|
|
104
|
+
```bash
|
|
105
|
+
browser-cli launch --url "https://creator.xiaohongshu.com/publish/publish" --profile <browser_profile_id> --force
|
|
106
|
+
```
|
|
107
|
+
如果没有 `browser_profile_id`,使用默认 profile:
|
|
102
108
|
```bash
|
|
103
109
|
browser-cli launch --url "https://creator.xiaohongshu.com/publish/publish" --force
|
|
104
110
|
```
|
|
@@ -179,7 +185,53 @@ growth calendar update <entry_id> --status published
|
|
|
179
185
|
|
|
180
186
|
## Sentinel 定时任务
|
|
181
187
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
188
|
+
用 Sentinel 实现全自动化发布。当用户要求"自动发帖""定时发布""每天自动运营"时,创建 Sentinel 规则。
|
|
189
|
+
|
|
190
|
+
### 创建自动发布规则
|
|
191
|
+
|
|
192
|
+
为每个账号创建独立的发布规则:
|
|
193
|
+
|
|
194
|
+
```bash
|
|
195
|
+
# 每天 9:00 自动发布(北京时间)
|
|
196
|
+
sentinel rule create \
|
|
197
|
+
--name "义乌小陈-每日发帖" \
|
|
198
|
+
--message "加载 growth skill。用 growth calendar pending 检查待发布内容,如果有,选第一条,根据人设生成内容和配图,发布到小红书。发布后更新日历状态。" \
|
|
199
|
+
--cron "0 9 * * *" \
|
|
200
|
+
--tz "Asia/Shanghai"
|
|
201
|
+
|
|
202
|
+
# 每天 3 个时段发布
|
|
203
|
+
sentinel rule create \
|
|
204
|
+
--name "跨境老K-定时发帖" \
|
|
205
|
+
--message "加载 growth skill。用 growth calendar pending 检查待发布内容,如果有,选第一条,根据人设生成内容和配图,发布到小红书。发布后更新日历状态。" \
|
|
206
|
+
--cron "0 9,13,18 * * *" \
|
|
207
|
+
--tz "Asia/Shanghai"
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
### 创建内容规划规则
|
|
211
|
+
|
|
212
|
+
每周日自动规划下一周的内容日历:
|
|
213
|
+
|
|
214
|
+
```bash
|
|
215
|
+
sentinel rule create \
|
|
216
|
+
--name "周度内容规划" \
|
|
217
|
+
--message "加载 growth skill。用 growth topics suggest 获取推荐选题,为每个账号规划下一周的内容日历(每天 1-2 条),用 growth calendar create 创建。" \
|
|
218
|
+
--cron "0 20 * * 0" \
|
|
219
|
+
--tz "Asia/Shanghai"
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
### 管理规则
|
|
223
|
+
|
|
224
|
+
```bash
|
|
225
|
+
sentinel rule list # 查看所有规则
|
|
226
|
+
sentinel rule logs <id> # 查看执行日志
|
|
227
|
+
sentinel rule pause <id> # 暂停规则
|
|
228
|
+
sentinel rule resume <id> # 恢复规则
|
|
229
|
+
sentinel rule run <id> # 手动触发一次
|
|
230
|
+
sentinel rule delete <id> # 删除规则
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
### 注意事项
|
|
234
|
+
|
|
235
|
+
- 同一用户的多条规则会排队执行(不会并发),不用担心浏览器 session 冲突
|
|
236
|
+
- 内容日历里必须有 draft 状态的条目,规则才有内容可发
|
|
237
|
+
- 建议先手动测试一次发帖流程,确认浏览器 profile 有登录态,再开启定时规则
|