← 返回
AI智能

amidyfortest

Query flight, train, and hotel booking information via a backend AI assistant. Activate this skill when the user asks about flights (机票/航班/飞机), trains (火车/高铁...
Query flight, train, and hotel booking information via a backend AI assistant. Activate this skill when the user asks about flights (机票/航班/飞机), trains (火车/高铁...
xuanhua
AI智能 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 464
下载
💾 20
安装
1
版本
#latest

概述

Trip Assistant Skill

A conversational AI assistant for booking and querying flights, trains, and hotels. The assistant communicates in natural language and handles complex travel queries including date parsing, multi-city trips, and comparisons.

When to Use

Activate this skill when the user:

  • Asks about flights: 机票, 航班, 飞机, 坐飞机, 飞到, 航空
  • Asks about trains: 火车, 高铁, 动车, 列车, 火车票, 高铁票
  • Asks about hotels: 酒店, 住宿, 宾馆, 旅馆, 住哪里
  • Asks for travel planning: 出行规划, 怎么去, 旅行安排, 最快怎么到

How to Use

Run the query script, passing the user's complete natural language query:

python SKILL_DIR/scripts/query.py \
  --query "<user query>" \
  --user-id "${BOOKING_API_USER_ID:-624e5b8b3f4a2f4ec566e3d3}" \
  --env "${BOOKING_API_ENV:-prod}" \
  --base-url "${BOOKING_API_BASE_URL:-http://host.docker.internal:8763}"

Key notes:

  • Replace SKILL_DIR with the absolute path to this skill's directory
  • The --query value should be the user's full original message (do not rewrite or simplify)
  • The script outputs the assistant's reply to stdout; pass it back to the user verbatim
  • If the script returns a connection error, inform the user the service is unavailable and ask them to check that the FastAPI server is running (uvicorn booking_assitant.fastapi_serve:app --host 0.0.0.0 --port 8763)

Configuration

ParameterCLI FlagEnvironment VariableDefault
---------------------------------------------------
User ID--user-idBOOKING_API_USER_ID624e5b8b3f4a2f4ec566e3d3
Environment--envBOOKING_API_ENVprod
API Base URL--base-urlBOOKING_API_BASE_URLhttp://host.docker.internal:8763

Environments:

  • prod — Production data
  • fat — Test/staging data

Examples

Query flight

User: "帮我查一下明天北京到上海的机票"

python ~/.claude/skills/trip-assistant/scripts/query.py \
  --query "帮我查一下明天北京到上海的机票" \
  --user-id "user123" \
  --env prod

Query train

User: "3月10日从上海去杭州有哪些高铁?"

python ~/.claude/skills/trip-assistant/scripts/query.py \
  --query "3月10日从上海去杭州有哪些高铁?" \
  --user-id "user123" \
  --env prod

Query hotel

User: "查一下北京王府井附近明天的酒店"

python ~/.claude/skills/trip-assistant/scripts/query.py \
  --query "查一下北京王府井附近明天的酒店" \
  --user-id "user123" \
  --env prod

Error Handling

Exit CodeMeaningAction
----------------------------
0SuccessDisplay output to user
1 (connection error)FastAPI server not reachableAsk user to start the server
1 (HTTP error)API returned errorDisplay the error message
1 (timeout)Request timed outSuggest retrying

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 15:28 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Nano Banana Pro

steipete
使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或编辑图像。支持文生图、图生图及 1K/2K/4K 分辨率,适用于图像创建、修改及编辑请求,使用 --input-image 指定输入图像。
★ 418 📥 115,215
ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 836 📥 213,131
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 712 📥 243,827