由 geo-cycle-autopilot(needsFangxieRun)或 geo-opt-coordinator(needsDeepImitate)调用。taskId 从任务列表内部取得,勿向用户索要 OPT-ID。
~/.qclaw/geo-api-key、~/.openclaw/geo-api-key;存在且非空则使用```bash
echo -n "<用户提供的key>" > ~/.qclaw/geo-api-key
```
GEO_KEY=$(cat ~/.qclaw/geo-api-key 2>/dev/null || cat ~/.openclaw/geo-api-key 2>/dev/null)
BASE="https://ai.gaobobo.cn"
curl -s -X POST "$BASE/api/geo/verify-key" \
-H "Authorization: Bearer $GEO_KEY"
code: 0 → 继续下文code != 0 → 立即停止,告知用户密钥无效或已吊销,请到 SaaS 重新创建并更新本机 key 文件web_fetch 可用(无需 Firecrawl 或 FIRECRAWL_API_KEY)OPT_ID="<由协调器匹配到的 task.taskId>"
CYCLE=<latestCycle.cycleNumber>
curl -s "https://ai.gaobobo.cn/api/geo/diagnosis/imitate-sources?optimization_task_id=$OPT_ID&cycle_number=$CYCLE" \
-H "Authorization: Bearer $GEO_KEY"
取 Top1–3 条带 url 的条目。
对每条信源 URL 只用 web_fetch(url) 获取页面内容:
summary 并注明「已降级为摘要」firecrawl_scrapecurl -s -X POST "https://ai.gaobobo.cn/api/geo/article/generate-deep-imitate" \
-H "Authorization: Bearer $GEO_KEY" \
-H "Content-Type: application/json" \
-d '{
"optimization_task_id": "OPT-XXX",
"cycle_number": 1,
"brand_name": "<task.brandName>",
"keyword": "<核心词>",
"reference_url": "https://...",
"reference_markdown": "...",
"reference_outline": {"sections": ["..."]}
}'
# 间隔 ≥30 秒
curl -s "https://ai.gaobobo.cn/api/geo/article/$TASK_ID" \
-H "Authorization: Bearer $GEO_KEY"
status=completed 且正文非空即成功;deepImitate 由服务端回写。
BASE="https://ai.gaobobo.cn"
DIR="$HOME/.qclaw/geo-exports/<brand>_<product>_C<cycle>/fangxie"
mkdir -p "$DIR"
curl -fsSL -o "$DIR/fangxie.zip" \
"$BASE/api/geo/optimization/$OPT_ID/cycles/$CYCLE/export/fangxie.zip" \
-H "Authorization: Bearer $GEO_KEY"
curl -s -X POST "$BASE/api/geo/optimization/$OPT_ID/cycles/$CYCLE/mass-publish-export" \
-H "Authorization: Bearer $GEO_KEY" -H "Content-Type: application/json" \
-d "{\"branch\":\"fangxie\",\"local_path_hint\":\"$DIR\"}"
imitate_enabled)互斥共 2 个版本