通过 Looper(looper.bot)自动化内容创作、代码改进和社交媒体发布,适用于搭建自动化博客文章和持续代码改进。
Looper - 不断改进引擎是一项面向实际任务的技能,主要用于Looper运行自动循环,分析、创建和改进您在调度中的内容和代码;Service : https://looper.bot.API : https://api.looper.b。
从功能定位来看,该技能强调把分散的操作要求整理成清晰、可复用的处理流程,使用户能够围绕既定目标快速准备输入、选择执行方式并获得结构化结果。实际使用前应先确认任务范围、数据来源、运行环境、必要权限和关键参数,再依据技能说明逐步执行;
若输入条件不完整,应先补齐信息或采用保守配置,避免因错误假设导致结果偏离需求。执行过程中需要关注工具调用是否成功、接口或依赖是否可用、输出格式是否符合预期,并对异常提示、缺失字段和边界情况进行处理;涉及批量任务时,还应保存进度,避免中断后重复操作。
Looper 运行自动化循环任务,按计划分析、生成并优化您的内容与代码。
curl -X POST https://api.looper.bot/api/signup
-H "Content-Type: application/json"
-d '{"email": "you@example.com", "password": "your-password"}'
响应中包含 admin_key(以 lp_ 开头)。请务必保存 — 该密钥仅显示一次。
curl -X POST https://api.looper.bot/api/login
-H "Content-Type: application/json"
-d '{"email": "you@example.com", "password": "your-password"}'
所有 API 调用均需携带请求头 Authorization: Bearer 。
按计划为您自动生成博客文章,并提交至 GitHub 仓库。
curl -X POST https://api.looper.bot/api/loops -H "Authorization: Bearer" -H "Content-Type: application/json" -d '{ "name": "My Blog", "target_type": "github", "target_config": { "owner": " ", "repo": " ", "branch": "main", "path": "blog" }, "template_id": "68b7e661-46e1-45cd-b25a-584b8cd392b1", "schedule": "0 6 * * *", "schedule_tz": "America/New_York", "mode": "auto", "model": "gpt-4o-mini", "questions": ["Write a blog post about . Research current events. 400-600 words. NO em dashes. Include YAML frontmatter with slug, title, excerpt, date, readTime, tag."] }'
关键字段说明:
target_config.path —— 仓库中存放 Markdown 博客文章的目录路径schedule —— Cron 表达式(例如 0 6 * * * 表示每天上午 6 点执行)schedule_tz —— 执行计划所采用的时区mode —— 执行模式:auto(直接提交)、propose(创建 PR)、notify(仅发送通知)questions[0] —— 驱动内容生成的提示词(Prompt)Blog Kit 模板 ID:68b7e661-46e1-45cd-b25a-584b8cd392b1
扫描您的代码库,提出或自动应用改进建议。
curl -X POST https://api.looper.bot/api/loops -H "Authorization: Bearer" -H "Content-Type: application/json" -d '{ "name": "Code Review", "target_type": "github", "target_config": { "owner": " ", "repo": " ", "branch": "main" }, "schedule": "0 2 * * 1", "mode": "propose", "questions": [ "Are there any security vulnerabilities?", "Is error handling consistent?", "Are there performance bottlenecks?" ] }'
通过 Upload-Post 集成方式生成并发布社交媒体内容。
Social Kit 模板 ID:7431b897-396f-4542-8e32-d8d1c5e445a2
curl -X POST https://api.looper.bot/api/loops -H "Authorization: Bearer" -H "Content-Type: application/json" -d '{ "name": "Social Posts", "target_type": "text", "target_config": {}, "template_id": "7431b897-396f-4542-8e32-d8d1c5e445a2", "schedule": "0 9 * * 1,3,5", "mode": "auto", "questions": ["{"upload_post_profile": "my-profile", "upload_post_api_key": " ", "platforms": ["x", "linkedin"], "business_name": "My Business", "industry": "tech"}"] }'
curl -s https://api.looper.bot/api/loops -H "Authorization: Bearer"
curl -s https://api.looper.bot/api/loops/-H "Authorization: Bearer "
curl -s https://api.looper.bot/api/loops//runs -H "Authorization: Bearer "
curl -X PATCH https://api.looper.bot/api/loops/-H "Authorization: Bearer " -H "Content-Type: application/json" -d '{"enabled": false}'
curl -X POST https://api.looper.bot/api/loops//run -H "Authorization: Bearer "
curl -X PATCH https://api.looper.bot/api/loops/-H "Authorization: Bearer " -H "Content-Type: application/json" -d '{"schedule": "0 8 * * *", "model": "gpt-4o"}'
curl -X DELETE https://api.looper.bot/api/loops/-H "Authorization: Bearer "
| 方案 | Loop 数量 | 每月运行次数 | 价格 |
|---|---|---|---|
| Free | 2 | 60 | $0 |
| Pro | 10 | 300 | $19/月 |
| Team | 50 | 1,500 | $49/月 |
| Enterprise | 无限制 | 无限制 | 联系销售 |
通过 Stripe 升级:向 POST /api/stripe/checkout 发送请求体 {"plan": "pro"}。
如需将 Loop 关联至特定 GitHub 仓库,请完成以下接入流程:
# 获取 OAuth 授权 URL curl -s https://api.looper.bot/api/github/connect -H "Authorization: Bearer" # 访问返回的 URL 完成授权,之后检查接入状态: curl -s https://api.looper.bot/api/github/status -H "Authorization: Bearer "
# 列出密钥(仅返回元数据,不暴露密钥本身) curl -s https://api.looper.bot/api/keys -H "Authorization: Bearer" # 创建新密钥 curl -X POST https://api.looper.bot/api/keys -H "Authorization: Bearer " -H "Content-Type: application/json" -d '{"name": "CI Key"}'
当 Agent 需要自动化内容生成或代码改进能力时,可按以下步骤集成 Looper:
LOOPER_ADMIN_KEY)admin_key此后,Agent 可完全通过 API 管理 Loop,无需浏览器交互。
相关专题
热门下载
相关下载
精品课程
共6课时 | 54.7万人学习
共89课时 | 134.1万人学习
共49课时 | 82.6万人学习
最新文章