返回顶部
t

travel-itinerary-builder旅行行程生成器

Comprehensive travel itinerary generator that creates detailed, multi-day trip plans with automatic weather forecasts, points of interest, restaurant recommendations, transportation logistics, and budget estimates. Generates print-ready HTML documents with dark theme styling. Use when: (1) Planning a trip and need a complete itinerary, (2) User provides destination(s) and dates, (3) Organizing travel bookings (flights, hotels, car rentals) from Gmail, (4) Need multi-language support for destinat

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.2
安全检测
已通过
377
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

travel-itinerary-builder

旅行行程生成器

生成全面、可打印的旅行行程,自动整合天气、地点、餐饮、交通和预算规划。

⚠️ 安全与隐私声明

此技能可访问敏感数据,需要外部凭证:

Gmail 访问(可选)

  • - gmailparser.py 脚本读取您的 Gmail 邮件以提取预订确认信息
  • 需要 GOGKEYRING_PASSWORD 环境变量(用于 GOG CLI 身份验证)
  • 访问内容:匹配搜索条件的邮件主题、摘要和完整正文
  • 提取内容:航班详情(PNR、时间)、酒店预订、租车信息、活动门票
  • 数据处理:提取的数据本地存储为 JSON 文件;不进行外部传输

Google Places API(可选)

  • - placesfetcher.py 脚本查询 Google Places 获取景点信息
  • 需要 GOOGLEPLACESAPIKEY 环境变量(免费层级:每月 1000 次请求)
  • 如未提供 API 密钥,则回退到内置数据库

外部 CLI 依赖

  • - gog(Google OAuth CLI):通过 OAuth2 验证 Gmail 访问
  • goplaces:查询 Google Places API
  • curl:从 wttr.in 获取天气数据

安装前

  1. 1. 审查 scripts/ 目录中的所有脚本
  2. 仅在信任外部 CLI 的情况下提供凭证
  3. 考虑在隔离环境(容器/虚拟机)中运行
  4. Gmail 集成为可选——您可以在不使用的情况下使用此技能

快速开始

基本用法

bash

从用户输入生成行程


python3 scripts/generate_itinerary.py \
--destination 东京, 大阪, 京都 \
--start-date 2026-03-06 \
--end-date 2026-03-15 \
--language zh \
--output ./japan_trip.html

使用 Gmail 集成

bash

从 Gmail 提取预订信息并生成行程


python3 scripts/gmail_parser.py \
--account rachelchoo1212@gmail.com \
--after 2026-03-01 \
--output ./bookings.json

python3 scripts/generate_itinerary.py \
--bookings ./bookings.json \
--destination 东京, 大阪 \
--start-date 2026-03-06 \
--end-date 2026-03-15 \
--output ./trip.html

核心功能

1. 自动数据收集

  • - 天气预报:与 weather 技能集成,获取每日预报
  • 兴趣点:使用 goplaces 技能获取景点、餐厅、地标信息
  • 多语言名称:以用户语言 + 当地语言显示地点名称
  • Gmail 解析:从确认邮件中提取航班、酒店、租车预订信息

2. 智能规划

  • - 每日行程:自动生成基于时间的行程安排(08:00 出发 → 10:00 景点 → 12:00 午餐)
  • 交通路线:计算驾车/公共交通的距离、行程时间和费用
  • 预算估算:计算住宿、餐饮、交通、门票的总费用
  • 行李清单:生成适合气候的打包建议

3. 输出格式

  • - HTML:精美的深色主题、可打印文档(基于经过验证的模板)
  • Markdown:可编辑的纯文本格式
  • JSON:结构化数据,便于进一步处理
  • PDF:通过 HTML 转 PDF 的可选导出

工作流程

步骤 1:收集信息

向用户询问:

  • - 目的地(城市/地区)
  • 旅行日期(开始和结束)
  • 预算范围(可选)
  • 兴趣/标签(历史、自然、美食、购物、演唱会)
  • 语言偏好(zh, en, ja, ko)
  • 特殊要求(饮食、无障碍设施、亲子友好)

步骤 2:提取现有预订(可选)

如果用户配置了 Gmail 访问:

bash
python3 scripts/gmail_parser.py \
--account <邮箱> \
--after \
--keywords flight,hotel,booking,reservation,confirmation \
--output bookings.json

提取内容:

  • - ✈️ 航班:航空公司、航班号、出发/到达时间、PNR
  • 🏨 酒店:名称、地址、入住/退房日期、预订号、价格
  • 🚗 租车:公司、车型、取车/还车时间、预订号
  • 🎫 门票:演唱会、博物馆、活动的时间及座位信息

支持的平台:Agoda、Booking.com、新加坡航空、全日空、Trip.com、Klook、KKday

步骤 3:查询天气和地点

bash

每个目的地的天气预报


python3 scripts/weather_fetcher.py \
--destinations 东京,大阪,京都 \
--start-date 2026-03-06 \
--end-date 2026-03-15 \
--output weather.json

兴趣点

python3 scripts/places_fetcher.py \ --destinations 东京,大阪,京都 \ --interests 寺庙,美食,购物 \ --language zh \ --output places.json

步骤 4:生成行程

bash
python3 scripts/generate_itinerary.py \
--bookings bookings.json \
--weather weather.json \
--places places.json \
--start-date 2026-03-06 \
--end-date 2026-03-15 \
--budget 2000 \
--currency SGD \
--language zh \
--output japan_trip.html

步骤 5:导出(可选)

bash

导出为 PDF


python3 scripts/exportpdf.py japantrip.html japan_trip.pdf

同步到 Notion(如果已配置)

python3 scripts/syncnotion.py japantrip.json

脚本参考

generate_itinerary.py

核心生成器。将所有数据源合并为完整的行程。

参数

  • - --destination:以逗号分隔的城市/地区列表
  • --start-date:行程开始日期(YYYY-MM-DD)
  • --end-date:行程结束日期(YYYY-MM-DD)
  • --bookings:预订 JSON 文件路径(来自 gmailparser.py)
  • --weather:天气 JSON 文件路径(来自 weatherfetcher.py)
  • --places:地点 JSON 文件路径(来自 places_fetcher.py)
  • --budget:总预算金额(可选)
  • --currency:货币代码(SGD、USD、JPY 等)
  • --language:输出语言(zh、en、ja、ko)
  • --interests:以逗号分隔的标签(历史、自然、美食、购物、演唱会)
  • --output:输出文件路径(.html、.md 或 .json)

gmail_parser.py

使用 GOG 技能从 Gmail 提取旅行预订信息。

要求:GOGKEYRINGPASSWORD 环境变量

参数

  • - --account:Gmail 账户邮箱
  • --after:邮件搜索开始日期(YYYY-MM-DD)
  • --keywords:搜索关键词(默认:flight,hotel,booking,confirmation)
  • --output:输出 JSON 文件

weather_fetcher.py

使用 weather 技能获取目的地的天气预报。

参数

  • - --destinations:以逗号分隔的城市列表
  • --start-date:预报开始日期
  • --end-date:预报结束日期
  • --output:输出 JSON 文件

places_fetcher.py

使用 goplaces 技能查询兴趣点。

参数

  • - --destinations:以逗号分隔的城市列表
  • --interests:活动标签(寺庙、博物馆、美食、购物)
  • --language:显示语言
  • --output:输出 JSON 文件

translator.py

将地点名称翻译为多种语言。

参数

  • - --text:要翻译的文本
  • --source-lang:源语言代码
  • --target-langs:以逗号分隔的目标语言代码
  • --output:输出 JSON 文件

budget_calculator.py

根据目的地、行程天数和预订信息估算旅行费用。

参数

  • - --destination:主要目的地
  • --days:天数
  • --bookings:预订 JSON 文件路径
  • --category:预算类别(经济、中等、豪华)
  • --output:输出 JSON 文件

export_html.py

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 travel-itinerary-builder-1776271307 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 travel-itinerary-builder-1776271307 技能

通过命令行安装

skillhub install travel-itinerary-builder-1776271307

下载

⬇ 下载 travel-itinerary-builder v1.0.2(免费)

文件大小: 20.61 KB | 发布时间: 2026-4-16 18:13

v1.0.2 最新 2026-4-16 18:13
- Dependency requirements in metadata updated: only `curl` is now required, with `gog` and `goplaces` marked as optional.
- Environment variable requirements updated: all environment variables are now optional.
- Installation instructions for `gog` and `goplaces` updated to clarify they are optional and only needed for Gmail or Google Places integration.
- Overall: the skill can now run without Gmail or Google Places setup; core functionality relies only on built-in and public data sources.

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部