Xpersona
C

Ctg Travel Booking

CLAWHUB · Unverified

【已过期】中旅旅行开放平台一站式预订助手。请前往 https://clawhub.ai/ctg-travel/ctg-travel 下载最新版本。整合机票、酒店、火车票、门票四大资源,支持查询、预订、退款全流程。下载中旅旅行APP获取 API Key。当用户表达出行住宿需求时(如"买火车票""订酒店""查询航班"... Skill: Ctg Travel Booking Owner: xiaosai Summary: 【已过期】中旅旅行开放平台一站式预订助手。请前往 https://clawhub.ai/ctg-travel/ctg-travel 下载最新版本。整合机票、酒店、火车票、门票四大资源,支持查询、预订、退款全流程。下载中旅旅行APP获取 API Key。当用户表达出行住宿需求时(如"买火车票""订酒店""查询航班"... Tags: latest:0.2.5 Version history: v0.2.5 | 2026-04-02T05:13:15.806Z | user - 标明 Skill 已过期,不再维护,添加显著过期提示。 - 更新简介和文档,引导用户前往 https://clawhub.ai/ctg-travel/ctg-travel 下载最新版本。 v0.2.4 | 2026-03-27T08:34:51.739Z |

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s170em3mbk0wszhf318w8bbpy983ggdv:ctg-travel-booking
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-xiaosai-ctg-travel-booking/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

148,277 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: ctg-travel-booking
description: 【已过期】中旅旅行开放平台一站式预订助手。请前往 https://clawhub.ai/ctg-travel/ctg-travel 下载最新版本。整合机票、酒店、火车票、门票四大资源,支持查询、预订、退款全流程。下载中旅旅行APP获取 API Key。当用户表达出行住宿需求时(如"买火车票""订酒店""查询航班""购买景区门票"),提供智能引导和便捷预订服务。
version: 0.2.5
author: CTG Travel
category: travel-booking
tags:
  - travel
  - booking
  - transportation
  - hotel
triggers:
  - 买票
  - 订票
  - 预订
  - 酒店
  - 机票
  - 火车票
  - 门票
  - 航班
  - 高铁
  - 动车
examples:
  - 帮我买一张明天北京到上海的火车票
  - 预订下周五杭州的酒店
  - 查询后天飞广州的航班
  - 我想买故宫的门票
---
# 旅游项目 Skill

## ⚠️ 重要提示

**此 Skill 已过期,不再维护。**

请前往官方地址下载最新版本:**https://clawhub.ai/ctg-travel/ctg-travel**

---

## 接入须知

- **配置要求**:下载中旅旅行APP,获取 API Key,配置到 `config/ctgConfig.json` 的 `apiKey` 字段
- **运行环境**:Python 环境,支持 HTTP 调用能力
- **接入指南**:[Skill 接入指南](https://pro-m.ourtour.com/new-journey/static-page/openClawGuide)

## 一、需求识别与分流(按需加载指南)

**重要**:先根据用户输入识别是「预定/查询某类具体资源」还是「模糊旅游推荐」,再决定是否加载操作指南。**仅当识别到用户要预定、查询某个具体资源时,才加载该资源对应的 guide 操作指南**,无需预先加载全部指南。

### 1. 触发条件(用于识别资源线)

根据下列关键词/意图匹配用户输入,命中哪一类则加载对应 guide:


| 资源线         | 触发示例(命中则加载对应 guide)                                                                               | 操作指南                                         | 接口文档                                         |
| -------------- | -------------------------------------------------------------------------------------------------------------- | ------------------------------------------------ | ------------------------------------------------ |
| **火车**       | 买火车票、订火车票、买高铁票、动车票、预定武汉-北京火车票、查询火车票/高铁票、去上海有什么车次、坐 G101 去北京 | [guide/train.md](guide/train.md)                 | [api/train.json](api/train.json)                 |
| **火车票退订** | 火车票退票、我要退票、申请退款、确认退票                                                                       | [guide/train-refund.md](guide/train-refund.md)   | [api/train-refund.json](api/train-refund.json)   |
| **机票**       | 买机票、订机票、买飞机票、预定北京-上海机票、查询航班/机票、明天飞杭州有什么航班、坐飞机去广州、机票订单       | [guide/plane.md](guide/plane.md)                 | [api/plane.json](api/plane.json)                 |
| **机票退订**   | 退机票、机票退票、机票退款、申请退款、把刚刚预定的机票退了、取消这张机票(已支付)、张三退票、张三和李四退票   | [guide/plane-refund.md](guide/plane-refund.md)   | [api/plane-refund.json](api/plane-refund.json)   |
| **酒店**       | 预订酒店、订酒店、订房、酒店订单、我的酒店订单、取消订单(未支付)                                             | [guide/hotel.md](guide/hotel.md)                 | [api/hotel.json](api/hotel.json)                 |
| **酒店退订**   | 退订酒店、酒店退款、申请退款、我要退订                                                                         | [guide/hotel-refund.md](guide/hotel-refund.md)   | [api/hotel-refund.json](api/hotel-refund.json)   |
| **门票**       | 购买门票、订门票、景区门票、查询门票、门票订单                                                                 | [guide/ticket.md](guide/ticket.md)               | [api/ticket.json](api/ticket.json)               |
| **门票退订**   | 退门票、门票退票、门票退款、申请退款、把刚刚预定的门票退了、取消这张门票(已支付)                             | [guide/ticket-refund.md](guide/ticket-refund.md) | [api/ticket-refund.json](api/ticket-re

_meta.json

{
  "ownerId": "kn75z7bqh0ejk2fybeam3e39w5826p9z",
  "slug": "ctg-travel-booking",
  "version": "0.2.5",
  "publishedAt": 1775106795806
}

guide/hotel-refund.md

# 酒店退订操作指南

**触发条件**:退订/退款酒店

> **接口文档**:调用接口前请查阅 [api/hotel-refund.json](../api/hotel-refund.json),获取完整的 method、category、subCategory、action 及参数定义。

---

## 核心流程

```
1. hotel.orderHistory → 获取订单列表
2. orderDetail → 获取订单详情(orderItemNo、入住人)
3. orderDeduct → 核算手续费和退款金额
4. hotel.refund → 提交退订申请
```

---

## 参数传递依赖

| 接口 | 入参来源 |
|------|----------|
| hotel.orderHistory | `memberId` ← 认证上下文 |
| orderDetail | `orderBaseId` ← 用户选择或订单列表 |
| orderDeduct | `orderBaseId` ← 上一步<br>`orderItemNo` ← orderDetail 返回的 `data.hotelProductInfo.orderItemNo`<br>`passengerIdList` ← orderDetail 返回的入住人ID列表 |
| hotel.refund | `amount`、`refundAmount` ← orderDeduct 返回<br>`orderItemNo`、`orderPassengerIds` ← orderDeduct 返回的 `deductItemList[]` |

---

## 关键参数说明

### orderDeduct(核损)
- `resourceType`: 1(酒店)
- `refundType`: 1-全额退订,2-部分退订
- `applyType`: 1(默认)
- `deductItemList`: 核损项目列表
  - `orderItemNo`: 订单项编号(从 orderDetail 获取)
  - `passengerIdList`: 入住人ID列表(数组格式)

### hotel.refund(申请退订)
- `orderType`: 1(酒店)
- `applyType`: 1(默认)
- `refundType`: 1-全额退订,2-部分退订
- `amount`: 退款金额(从核损结果获取)
- `originAmount`: 原支付金额(从订单详情获取)
- `refundItemList`:
  - `orderItemNo`: 从核损结果的 `deductItemList[].orderItemNo` 获取
  - `orderPassengerIds`: 从核损结果的 `deductItemList[].passengerIdList` 获取(数组格式)
  - `refundAmount`: 手续费(从核损结果获取)

---

## 调用命令示例

```bash
# 订单历史
python scripts/apiexe.py call --method hotel.orderHistory --arg "{\"memberId\": \"15d6676f6be54d5099b106abeeecfcd6\"}"

# 订单详情
python scripts/apiexe.py call --method orderDetail --arg "{\"orderBaseId\": \"HRO202603101234567890\"}"

# 核损
python scripts/apiexe.py call --method orderDeduct --arg "{\"orderBaseId\": \"HRO202603101234567890\", \"resourceType\": 1, \"refundType\": 1, \"applyType\": 1, \"reason\": \"行程变更\", \"deductItemList\": [{\"orderItemNo\": \"OI202603101234567890\", \"passengerIdList\": [399]}]}"

# 申请退订
python scripts/apiexe.py call --method hotel.refund --arg "{\"orderBaseId\": \"HRO202603101234567890\", \"orderType\": 1, \"applyType\": 1, \"refundType\": 1, \"amount\": 680, \"originAmount\": 796, \"refundReason\": \"行程变更\", \"refundItemList\": [{\"orderItemNo\": \"OI202603101234567890\", \"orderPassengerIds\": [399], \"refundQuantity\": 1, \"refundAmount\": 116}]}"
```

---

## 展示格式参考

**订单列表**:一行一行展示,格式「订单号 | 酒店 | 入住日期 | 状态 | 金额」

**核损结果**:
```
📊 核损结果

订单号:HRO202603101234567890
酒店:如家酒店(北京天安门广场店)
入住日期:2026年3月15日 - 3月17日

退订入住人:
  张三  退款金额:¥680  手续费:¥116

原支付金额:¥796
退款金额:¥680
手续费:¥116

确认核损信息无误后,请回复「确认退订」。
```

**退订成功**:
```
✅ 退订申请已提交

订单号:HRO202603101234567890
退款金额:¥680
手续费:¥116
预计到账时间:3-7 个工作日

您可以通过「查询订单状态」查看退订进度。
```

---

## 异常处理

- **核损失败/退订失败**:保留订单号、退订原因等信息,提示稍后重试或前往中旅旅行App
- **网络超时**:提示稍后重试

**重要**:异常时不要让用户重复提供信息,已收集的内容必须记住。

---

## 用户体验

- **对话风格**:友好自然,如「好的,我来帮您办理退订」
- **润色展示**:使用 📋 ✅ ❌ ⚠️ 等符号增强可读性,一行一行展示,勿用表格
- **禁止技术用语**:对用户说「正在为您核算退款金额」「正在提交退订申请」,不得出现接口名、API、method 等

guide/hotel.md

# 酒店预订操作指南

**触发条件**:预订/查询酒店

> **接口文档**:调用接口前请查阅 [api/hotel.json](../api/hotel.json),获取完整的 method、category、subCategory、action 及参数定义。

---

## 核心流程

```
1. hotel.search → 查询酒店列表,入参:cityName、arrivalDate、departureDate、page、pageSize
2. hotel.detail → 获取房型列表,入参:hotelId、arrivalDate、departureDate
3. hotel.validatePrice → 验价(可选),入参:resourceItemId、checkInDate、checkOutDate、roomCount
4. getPassengerList(orderType=1) → 入住人列表;无入住人则调用 savePassenger 新增
5. hotel.createOrder → 创建订单,入参:resourceItemId、travelerList、price、checkInDate、checkOutDate、roomNum 等
6. getOrderStatus → 轮询订单状态(间隔10秒,最多6次)
7. orderDetail → 查询订单详情
8. hotel.cancelOrder → 取消未支付订单
9. orderHistory → 获取历史订单
```

---

## ⚠️ 下单规则(必须遵守)

1. **先确认入住人**:展示入住人列表 → 用户确认 → 再下单,禁止直接下单
2. **禁止重复下单**:同一需求只下单一次;失败最多重试1次;成功后绝不再下单

---

## 参数传递依赖

| 接口 | 入参来源 |
|------|----------|
| hotel.search | `cityName` ← 用户输入<br>`arrivalDate`、`departureDate` ← 用户输入 |
| hotel.detail | `hotelId` ← hotel.search 返回的 `hotelId` |
| hotel.validatePrice | `resourceItemId` ← hotel.detail 返回的房型 `resourceItemId` |
| hotel.createOrder | `resourceItemId` ← hotel.detail 返回<br>`travelerList` ← getPassengerList 返回<br>`price` ← 房型价格 |
| getOrderStatus | `orderBaseId` ← hotel.createOrder 返回 |

---

## 关键参数说明

### 订单状态码(getOrderStatus)
- `10`:处理中 → 继续轮询
- `12`:预订完成 → 引导支付
- `11`:预订失败 → 引导重试

### 取消订单参数(cancelOrder)
- `orderType`:1(酒店)
- `subOrderType`:1(必填,子订单类型)

### 日期格式
- arrivalDate/departureDate:`yyyy-MM-dd`(如 2026-03-15)

### travelerList 结构(createOrder 必填)
```json
[{
  "passengerId": 399,
  "name": "张三",
  "identityNo": "420102199007015297",
  "phoneNumber": "15000000000"
}]
```

---

## 调用命令示例

```bash
# 酒店列表
python scripts/apiexe.py call --method hotel.search --arg "{\"cityName\": \"武汉\", \"arrivalDate\": \"2026-03-15\", \"departureDate\": \"2026-03-17\", \"page\": 1, \"pageSize\": 10}"

# 酒店详情(房型列表)
python scripts/apiexe.py call --method hotel.detail --arg "{\"hotelId\": \"H123456\", \"arrivalDate\": \"2026-03-15\", \"departureDate\": \"2026-03-17\"}"

# 验价
python scripts/apiexe.py call --method hotel.validatePrice --arg "{\"resourceItemId\": \"RES_123\", \"checkInDate\": \"2026-03-15\", \"checkOutDate\": \"2026-03-17\", \"roomCount\": 1}"

# 入住人列表
python scripts/apiexe.py call --method getPassengerList --arg "{\"orderType\": 1}"

# 新增入住人
python scripts/apiexe.py call --method savePassenger --arg "{\"passengerName\": \"张三\", \"identityNo\": \"420102199007015297\", \"phoneNumber\": \"13800138000\"}"

# 创建订单
python scripts/apiexe.py call --method hotel.createOrder --arg "{\"memberId\": \"xxx\", \"phoneNumber\": \"15000000000\", \"orderSource\": 0, \"checkInDate\": \"2026-03-15\", \"checkOutDate\": \"2026-03-17\", \"roomNum\": 1, \"resourceItemId\": \"RES_123\", \"price\": 398, \"travelerList\": [{\"passengerId\": 399, \"name\": \"张三\", \"identityNo\": \"420102199007015297\", \"phoneNumber\": \"15000000000\"}]}"

# 订单状态轮询
python scripts/apiexe.py call --method getOrderStatus --arg "{\"orderBaseId\": \"HRO202603101234567890\"}"

# 订单详情
p

guide/plane-refund.md

# 机票退票操作指南

**触发条件**:退票、我要退票、申请退款、取消这张机票(已支付)、张三退票

---

## 交互规范

> **核心原则**:退票涉及资金,必须展示核损结果并经用户确认后才可提交。

### 步骤1:识别退票类型

| 用户输入 | refundType | 说明 |
|---------|-----------|------|
| 「退票」「我要退票」 | 1 (全额退) | 未指定乘客,默认全退 |
| 「张三退票」「退张三」 | 2 (部分退) | 需匹配乘客ID |

**缺少订单号**:询问「请提供订单号,或说"查看我的订单"来查找」

**部分退乘客匹配**:调用 `orderDetail` 获取订单乘客,按姓名匹配 `passengerId`

---

### 步骤2:核损计算 (flight.rderDeduct)

**入参**:`orderBaseId`、`refundType`、`passengerIds`(部分退时必填)

**执行后**:展示核损结果 → 询问用户确认

**展示格式**:
```
⚠️ 退票确认

订单号:FRO202603101234567890
航班:CA1234 北京 → 上海
乘客:张三、李四
退票类型:全额退票

核损结果:
  原支付金额:¥1360
  退款金额:¥1160
  手续费:¥200

确认申请退票吗?(y/n)
```

---

### 步骤3:提交退票 (flight.refund)

**入参**:与核损接口一致,只需传入 `orderBaseId`、`refundType`、`passengerIds`

**说明**:后端会自动完成核损计算并提交退票申请,无需传入金额、订单项等复杂参数。

**成功**:展示退款金额、预计到账时间(3-7个工作日)

**失败**:展示错误原因,引导重试或前往App

---

## 核心流程

```
识别退票类型 → orderDeduct(核损) → 展示结果 → 用户确认 → flight.refund(提交)
```

---

## 参数传递

| 接口 | 入参 |
|------|------|
| orderDeduct | `orderBaseId`、`refundType`、`passengerIds`(部分退) |
| flight.refund | `orderBaseId`、`refundType`、`passengerIds`(部分退) - 与核损接口一致 |

---

## 异常处理

- **订单不可退**:提示可能原因(未支付/超时限/已使用)
- **核损失败**:提示稍后重试或前往中旅旅行App

Sponsored

Ads related to Ctg Travel Booking and adjacent AI workflows.