将 OpenClaw 生成的自驾行程导入到 TripClaw 应用。当用户说"导入行程到 TripClaw"、"同步到 TripClaw"、"发送到 TripClaw"、"推送到 TripClaw" 或提及 TripClaw 行程同步时触发。支持将行程数据(途经点、住宿、活动、预算等)通过 API 同步到用户的 TripClaw 账户。
将 OpenClaw 生成的自驾行程同步到 TripClaw 应用。
用户需要先配置 TripClaw API Key:
bash
⚠️ 安全提醒:API Key 是敏感信息,请勿分享、勿提交到公开仓库、勿在截图或录屏中暴露。
用户说以下任一指令时触发:
TripClaw 接受以下 JSON 格式的行程数据:
json
{
name: 行程名称,
description: 行程描述(可选),
startDate: 2024-01-15,
endDate: 2024-01-22,
travelers: 2,
waypoints: [
{
order: 1,
name: 地点名称,
type: start|waypoint|destination,
location: {
address: 详细地址,
coordinates: {
lat: 25.0389,
lng: 102.7183
}
},
arrivalDate: 2024-01-15,
stay: {
accommodation: 住宿名称,
nights: 1,
bookingUrl: 预订链接(可选)
}
}
],
activities: [
{
date: 2024-01-16,
name: 活动名称,
description: 活动描述,
location: {
address: 活动地点,
coordinates: { lat: 0, lng: 0 }
},
duration: 2小时,
cost: 100
}
],
budget: {
total: 15000,
currency: CNY
}
}
| 字段 | 必填 | 说明 |
|---|---|---|
| name | ✅ | 行程名称 |
| description |
使用脚本执行实际导入:
bash
python3 scripts/importtrip.py --api-key $TRIPCLAWAPI_KEY --data
或传入文件:
bash
python3 scripts/importtrip.py --api-key $TRIPCLAWAPI_KEY --file trip.json
详细的 API 文档请参阅 references/api.md。
| 错误码 | 说明 | 处理建议 |
|---|---|---|
| 401 | API Key 无效或过期 | 检查 TRIPCLAWAPIKEY 配置 |
| 400 |
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 tripclaw-1775936770 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 tripclaw-1775936770 技能
skillhub install tripclaw-1775936770
文件大小: 8.19 KB | 发布时间: 2026-4-12 11:45