编程

OpenCLAW Tour Planner

试用

Universal travel planning skill for OpenClaw agents. Plan itineraries, check weather, discover attractions, and estimate budgets — all through natural conver...

它能做什么

**Universal travel planning skill for OpenClaw agents** Plan itineraries, check weather, discover attractions, and estimate budgets — all through natural conversation.

技能文档

OpenCLAW Tour Planner

Universal travel planning skill for OpenClaw agents

Plan itineraries, check weather, discover attractions, and estimate budgets — all through natural conversation.


Quick Start

Installation

# Install via ClawHub
clawhub install Asif2BD/openclaw-tour-planner

# Or via OpenClaw CLI
openclaw skills install openclaw-tour-planner

# Or clone manually
git clone https://github.com/Asif2BD/openclaw.tours.git
cd openclaw.tours
npm install

Usage

User: Plan a 5-day trip to Tokyo in April
Agent: I'll create a personalized itinerary for Tokyo. Let me gather the latest information...

[Agent generates day-by-day plan with weather, attractions, and budget estimates]

Capabilities

Core Features

FeatureDescriptionData Source
Itinerary PlanningDay-by-day trip plansWikivoyage + OSM
Weather Forecasts15-day weather outlookVisual Crossing
GeocodingLocation lookupNominatim
Budget EstimationCost breakdown by categoryLocal data + APIs
Attraction DiscoveryTop sights and hidden gemsWikivoyage
Cultural TipsLocal customs and etiquetteWikivoyage

Commands

CommandDescriptionExample
planGenerate full itinerary/tour plan Tokyo 5 days in April
weatherGet destination weather/tour weather Tokyo next week
budgetEstimate trip costs/tour budget Tokyo 5 days mid-range
attractionsFind things to do/tour attractions Tokyo family-friendly
guideGet destination guide/tour guide Tokyo

Architecture

Data Flow

User Request
    │
    ▼
┌─────────────────┐
│  Input Parser   │ ──→ Extract: destination, dates, budget, interests
└────────┬────────┘
         │
    ┌────┴────┐
    ▼         ▼
┌────────┐ ┌────────┐
│Geocode │ │Weather │
│Nominatim│ │Visual  │
└───┬────┘ │Crossing│
    │      └───┬────┘
    │          │
    └────┬─────┘
         ▼
┌─────────────────┐
│ Wikivoyage API  │ ──→ Travel guide, attractions, tips
└────────┬────────┘
         │
         ▼
┌─────────────────┐
│ Itinerary Engine│ ──→ Build day-by-day plan
└────────┬────────┘
         │
         ▼
┌─────────────────┐
│ Output Formatter│ ──→ Markdown / JSON / Text
└─────────────────┘

API Integrations

Free Tier APIs (No Cost)

ServicePurposeLimits
NominatimGeocoding1 req/sec
Visual CrossingWeather1000 records/day
WikivoyageTravel guidesUnlimited
RestCountriesCountry infoUnlimited
ExchangeRate-APICurrency1500 req/month

Configuration

Environment Variables

# Optional — improves weather accuracy (free tier available at visualcrossing.com)
# Core features work without any keys using Open-Meteo (free, keyless)
VISUAL_CROSSING_API_KEY=your_key_here

# Optional — alternative weather source
OPENWEATHER_API_KEY=backup_weather_key

# Optional — flight search (Phase 2, not yet implemented in current release)
AMADEUS_API_KEY=flight_search_key
AMADEUS_API_SECRET=flight_search_secret

# Optional — redirect the local SQLite response cache (default: ~/.openclaw/cache/tour-planner.db)
TOUR_PLANNER_CACHE_PATH=/custom/path/tour-planner.db

Skill Config (openclaw.json)

{
  "skills": {
    "tour-planner": {
      "enabled": true,
      "config": {
        "defaultBudget": "mid-range",
        "cacheEnabled": true,
        "cachePath": "./cache/tour-planner.db"
      }
    }
  }
}

Output Formats

Markdown Itinerary (Default)

# 5-Day Tokyo Adventure

## Overview
- **Dates:** April 15-19, 2025
- **Weather:** 18-22°C, partly cloudy
- **Budget:** $1,200-1,800 (excl. flights)

## Day 1: Arrival & Shibuya
### Morning
- **10:00** Arrive at Narita/Haneda
- **12:00** Airport Express to Shibuya
- **Activity:** Shibuya Crossing + Hachiko

### Afternoon
- **14:00** Lunch at Genki Sushi
- **16:00** Meiji Shrine walk

### Evening
- **19:00** Dinner in Nonbei Yokocho

JSON (For Agent Processing)

{
  "destination": "Tokyo",
  "duration_days": 5,
  "weather_summary": {...},
  "days": [...],
  "budget_breakdown": {...},
  "packing_list": [...]
}

Development

Setup

# Clone repository
git clone https://github.com/Asif2BD/openclaw.tours.git
cd tour-planner

# Install dependencies
npm install

# Run tests
npm test

# Build
npm run build

Project Structure

tour-planner/
├── src/
│   ├── apis/           # API clients
│   │   ├── nominatim.ts
│   │   ├── weather.ts
│   │   └── wikivoyage.ts
│   ├── planners/       # Planning engines
│   │   ├── itinerary.ts
│   │   └── budget.ts
│   ├── utils/          # Utilities
│   │   ├── cache.ts
│   │   └── formatter.ts
│   └── data/           # Static data
│       └── countries.json
├── tests/
├── docs/
└── package.json

Roadmap

Phase 1: MVP (Complete)

  • Basic itinerary generation
  • Weather integration
  • Wikivoyage guides
  • Markdown output

Phase 2: Enhanced (In Progress)

  • Flight search (Amadeus API)
  • Hotel price estimates
  • Multi-city optimization
  • PDF export

Phase 3: Advanced (Planned)

  • Real-time events
  • Restaurant reservations
  • Collaborative planning
  • Mobile app wrapper

Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines.

Adding a New Destination

  1. Check Wikivoyage coverage
  2. Add to data/destinations.json
  3. Test itinerary generation
  4. Submit PR

License

MIT License — see LICENSE for details.



Built with ❤️ for the OpenClaw community.

相关技能

在本地磁盘以分类纯 Markdown 文件保存需要长期留存的事实,与智能体内置记忆并存。

作者 Iván559 次安装18 星标

以 AI 机器人身份加入视频会议,提供语音、虚拟形象与屏幕共享四种模式。

作者 johnpatternai22 次安装8 星标

把自然语言描述转为结构化 JSON,并由 mcp-diagram-generator MCP 服务生成 Draw.io、Mermaid 或 Excalidraw 图表文件。

作者 nssa.io1.0k 次安装47 星标

诊断生产力系统反复失效的根因,给出最小干预——容量测算、瓶颈定位、可靠的本地记录。

作者 Iván855 次安装69 星标

从 AdMapix API 拉取广告创意、应用、榜单和收入预估等数据,原样返回结构化 JSON。

作者 fly0pants4.3k 次安装296 星标

asif2bd 的更多技能

浏览全部技能

为 OpenClaw 代理减少重复性的 token 消耗:按需加载上下文、Sonnet/Opus 分流、缓存感知的 heartbeat 调度。

作者 asif2bd467 次安装30 星标

为 xCloud 准备 Docker 项目,改文件前需用户确认,并自动修正端口冲突。

作者 asif2bd38 次安装

Publish content directly to WordPress sites via REST API with full Gutenberg block support. Create and publish posts/pages, auto-load and select categories from website, generate SEO-optimized tags, preview articles before publishing, and generate Gutenberg blocks for tables, images, lists, and rich formatting. Use when user wants to publish to WordPress, post to blog, create WordPress article, update WordPress post, or convert markdown to Gutenberg blocks.

作者 asif2bd189 次安装10 星标

Install, authenticate, and use Claude Code CLI as a native coding tool for any OpenClaw agent system.

作者 asif2bd32 次安装

Dramatically reduce per-session token usage by loading skills and context files only when needed — not at session start. Includes the SKILLS catalog pattern,...

作者 asif2bd36 次安装