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

An automated assistant for searching, booking, and managing Fenbeitong train tickets in real-time via OpenAPI integration.

gaogao605
v1.0.0
Mar 30, 2026
0
223
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install trains

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 trains 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 fb-train-skill is a professional-grade automation tool designed to interface directly with the Fenbeitong travel platform. This skill enables AI agents to perform real-time queries for train tickets, display detailed schedules, and execute the full booking lifecycle—from seat selection to payment redirection. By utilizing this component of Openclaw Skills, users can bypass manual search interfaces and manage their corporate or personal travel through simple conversational commands.

Built for reliability, the skill strictly adheres to the Fenbeitong OpenAPI V2, ensuring that all train numbers, pricing, and availability data are accurate and up-to-date. It serves as a bridge between the agent and the railway ticketing system, providing a structured way to handle complex travel logistics efficiently.

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

  • Searching for high-speed rail (G/D) or regular train tickets between cities on specific dates.
  • Comparing different seat classes such as Business, First Class, and Second Class for price and availability.
  • Automating the creation of train orders for business travelers including passenger identification management.
  • Checking the real-time status of existing orders to confirm issuance or pending payments.
  • Canceling bookings and handling refunds through a streamlined automated process.

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

  1. The user initiates a request by providing departure station, arrival station, and a travel date.
  2. The skill triggers the search_train_list function within the fb_train_api.py script to fetch live data from the Fenbeitong servers.
  3. Results are returned in a formatted table, allowing the user to select a specific train index for further details.
  4. Upon selection, the skill calls the get_train_detail endpoint to retrieve specific seat types and remaining ticket counts.
  5. Once the user selects a seat and provides passenger details (Name, ID, Phone), the skill creates an order and generates a unique order ID.
  6. Finally, the skill provides a direct redirect link to the Fenbeitong payment gateway to finalize the transaction.

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

To utilize this skill, ensure your environment meets the following requirements:

  • Python 3.x must be installed on the host system.
  • Configure your environment with the core X-App-Id: 688c927d2cf90c6f0595571d.
# Ensure the core API script is accessible
chmod +x scripts/fb_train_api.py

# The skill will internally invoke Python functions to reach the OpenAPI
# base URL: https://openapiv2.fenbeitong.com

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

The skill organizes railway data through structured JSON responses and specific enumerations. Below are the primary metadata schemas:

Data Type Field Name Possible Values
Seat Type seat_type 9: Business, 1: First, 2: Second, 3: Soft Sleeper, 4: Hard Sleeper
Order Status order_status 1: Pending, 2: Paid, 4: Issued, 5: Canceled, 7: Refunded
Request Format Content-Type application/json
Date Format travel_date yyyy-MM-dd

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

  • Real-time Seat Monitoring: Fetches live inventory levels directly from the railway carrier via Fenbeitong.
  • Secure Payment Gateway: Generates short-lived redirect URLs for safe financial transactions.
  • Order Management: Supports full CRUD operations on travel bookings including automated cancellation logic.
  • Data Integrity Guard: Implements strict constraints to prevent the fabrication of train info, ensuring only valid API data is presented.
  • Multi-Seat Support: Handles various ticket types including no-seat and sleeper options within a single workflow.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Bins python3
Github Stars: 0
forks: 0

Featured*