Ctrip Auto-Publisher for Openclaw

A fully automated publishing tool for the Ctrip Content Center that sources images and populates travel notes.

ansike
v1.0.0
Apr 4, 2026
0
705
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install ctrip-publish-skill

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 ctrip-publish-skill 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 Ctrip Auto-Publisher?

The Ctrip Auto-Publisher is a specialized automation tool designed for the Ctrip Content Center. As part of the Openclaw Skills ecosystem, it streamlines the creation of travel guides and food recommendations by automating the entire submission workflow. It handles everything from opening the publisher page to the final click of the publish button, ensuring that your travel content reaches your audience with minimal manual effort.

This skill leverages advanced browser automation via the Chrome DevTools Protocol (CDP) to interact with complex web elements that traditional automation tools might struggle with. By integrating Bing Images search, it can even source high-quality, copyright-free visuals for your posts, making it an end-to-end solution for automated travel marketing and content distribution.

Ctrip Auto-Publisher Use Cases

  • Automatically generating and publishing 3-day travel itineraries to Ctrip.
  • Scaling travel content production by sourcing high-definition images and writing descriptions via AI.
  • Converting existing travel blogs or notes into Ctrip-optimized posts.
  • Managing multiple travel content accounts with automated image uploads and location tagging.
  • Reducing manual data entry for professional travel influencers and agencies.

How Ctrip Auto-Publisher Works

  1. The skill establishes a connection to the browser via the CDP WebSocket protocol.
  2. It navigates to the official Ctrip Content Center publishing URL.
  3. Based on the user's prompt, it performs a search on Bing Images to find and download high-resolution photos (prioritizing 1920x1080 or higher).
  4. Images are temporarily stored in /tmp/openclaw/uploads/ and then uploaded to the Ctrip form using the CDP setFileInputFiles method.
  5. The AI populates the title (ensuring it is under 20 characters) and the main body text (optimized for >60 characters).
  6. It automatically selects the destination, sets the shooting date, and adds relevant hashtags.
  7. Finally, it triggers React synthetic events to update the page state and clicks the publish button, handling any confirmation popups that appear.

Ctrip Auto-Publisher Setup

To use this within the Openclaw Skills framework, ensure you have the necessary dependencies installed:

# Ensure Python 3 and websockets are available
pip install websockets

# Prepare the upload directory
mkdir -p /tmp/openclaw/uploads/

Note: No API key is required, but you must be logged into your Ctrip account in the automated browser session (QR code scan required for first-time login).

Ctrip Auto-Publisher Data Schema & Taxonomy

The skill manages data across the following local and remote structures:

Data Type Location/Format Description
Images /tmp/openclaw/uploads/ High-definition JPG/PNG files sourced from Bing
Metadata JSON Objects Title (max 19-20 chars), Content (min 60 chars)
Selectors CSS/Role Selectors Targeting [role="textbox"], input[type="file"], and .ant-select
Output Ctrip URL Success confirmed by detail?articleId= in the final URL

Ctrip Auto-Publisher Advanced Features

  • Integrated Bing Image Search with auto-filtering for low-resolution content.
  • Chrome DevTools Protocol (CDP) integration for direct file input manipulation, bypassing hidden UI elements.
  • React State Synchronization: Specifically designed to trigger React synthetic events to ensure form data is recognized by the web app.
  • Multi-Image Handling: Supports batch uploads of up to 20 images per post.
  • Automatic Destination Resolution: Retries location selection to ensure the post is correctly categorized geographically.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*