Fenbeitong Train Booking Assistant (fb-train-skill) for Openclaw

An AI-powered travel assistant that integrates with Fenbeitong OpenAPI to search, book, and manage train tickets in real-time.

gaogao605
v1.0.0
Mar 30, 2026
0
247
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install train-assistant

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install train-assistant using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Fenbeitong Train Booking Assistant (fb-train-skill)?

The Fenbeitong Train Booking Assistant, known as fb-train-skill, is a robust automation tool designed for the Openclaw Skills ecosystem. It enables AI agents to interface directly with the Fenbeitong corporate travel platform, providing a seamless workflow for searching domestic train schedules, checking seat availability, and executing ticket bookings.

By leveraging the Fenbeitong OpenAPI, this skill ensures that travel data—including pricing, remaining seats, and train numbers—is retrieved accurately and displayed in a structured format. It is an essential component for developers looking to build corporate travel bots that require high reliability and strict data integrity for high-speed rail and traditional train services in China.

Fenbeitong Train Booking Assistant (fb-train-skill) Use Cases

  • Finding the fastest high-speed rail options between major cities for business trips.
  • Checking real-time seat availability and ticket prices for specific travel dates.
  • Creating train ticket orders automatically using passenger identification and contact details.
  • Managing corporate travel lifecycles by checking order status or cancelling bookings via AI commands.

How Fenbeitong Train Booking Assistant (fb-train-skill) Works

  1. The AI agent detects a travel-related intent such as search or booking and triggers the Openclaw Skills logic.
  2. The skill calls the search_train_list function in the fb_train_api.py script to fetch live data from Fenbeitong.
  3. Available trains are displayed in a clean, tabular format for the user to select their preferred itinerary.
  4. Detailed seat information, including prices for Business, First, and Second class, is retrieved for the selected train.
  5. Upon user confirmation, the skill collects passenger information and interfaces with the Fenbeitong order creation API.
  6. A secure payment link and order details are provided to the user to finalize the transaction on the official platform.

Fenbeitong Train Booking Assistant (fb-train-skill) Setup

To integrate this into your library of Openclaw Skills, ensure you have the required environment configured.

# Ensure Python 3 is installed as the primary runtime
python3 --version

# Configure your Fenbeitong App-ID (688c927d2cf90c6f0595571d) in your environment settings
# Ensure scripts/fb_train_api.py is in the executable path of your AI agent

Fenbeitong Train Booking Assistant (fb-train-skill) Data Schema & Taxonomy

The skill utilizes a structured data taxonomy aligned with Fenbeitong standards to ensure interoperability within the Openclaw Skills framework:

Object Key Attributes Value Mapping
Seat Type seat_type 9: Business, 1: First Class, 2: Second Class, 3: Soft Sleeper
Order Status order_status 1: Pending Payment, 4: Issued, 5: Cancelled, 7: Refunded
Station Data from_station, to_station Standardized city/station names
API Response code, msg, data Standard JSON response format (0 for success)

Fenbeitong Train Booking Assistant (fb-train-skill) Advanced Features

  • Real-time inventory synchronization with the Fenbeitong OpenAPI backbone.
  • Automated redirect logic for secure checkout and payment processing.
  • Support for multiple passenger types and seat categories in a single booking flow.
  • Strict enforcement of data integrity to prevent the generation of hallucinated travel information.
  • Comprehensive order lifecycle management from initial search to cancellation.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Bins python3
Github Stars: 0
forks: 0

Featured*