通过百度 AIOB 的获取 Token 与实时任务接口创建外呼任务。适用于:立即拨打电话、定时提醒电话(例如 5 分钟后拨打)、以及通过脚本自动化创建外呼任务并结合 OpenClaw cron 调度。
用于稳定地创建“立即外呼”与“延时外呼”任务。
config.json 中配置默认参数(可参考 config.json.example),包括:accessKey、secretKey、robotId、mobile、callerNum。references/aiob-auth.md 获取 accessToken。references/aiob-realtime-task.md 组织实时外呼请求体。scripts/create_realtime_call.py 发起请求(命令行参数可覆盖配置文件中的默认值)。cron 做精确定时触发。采用配置优先模式。
示例(拨打配置文件中的默认手机号):
cp config.json.example config.json
python3 scripts/create_realtime_call.py --config config.json
示例(仅覆盖被叫手机号):
python3 scripts/create_realtime_call.py --config config.json --mobile "13333333333"
使用 OpenClaw cron 进行一次性调度。
实现模式:
schedule.kind = "at"),触发时间为当前时间 + 5 分钟。agentTurn 执行本技能流程。设置 --stop-date "yyyy-MM-dd HH:mm:ss",超过截止时间后 AIOB 不再继续拨打。
dialogVar、promptVar 必须是合法 JSON 对象。mobile)。config.json.example:默认配置模板(AK/SK/robotId/mobile/callerNum 等)。references/aiob-auth.md:Token 获取接口与认证约束。references/aiob-realtime-task.md:实时任务字段、请求和响应要点。scripts/create_realtime_call.py:配置优先、支持参数覆盖的外呼脚本。ZIP package — ready to use