ai-clipping
AI Clipping & Highlights
This skill automatically extracts the most engaging parts of a video based on the WayinVideo API.
Execution Workflow
Step 0: Check API Key
Check if the WAYIN_API_KEY is available in the environment or user context. If it is missing, ask the user to provide it or create one at https://wayin.ai/wayinvideo/api-dashboard.
Step 1: Identify Video Source
Determine if the input is a web URL (e.g., YouTube link) or a local file path.
[!IMPORTANT] The WayinVideo API supports the following platforms for direct URL processing: YouTube, Vimeo, Dailymotion, Kick, Twitch, TikTok, Facebook, Instagram, Zoom, Rumble, Google Drive. If the platform is NOT supported, you must treat it as a local file (download it first if possible, then upload).
Step 2: Upload (Local Files or Unsupported URLs Only)
If the input is a local file or from an unsupported platform, you MUST upload it first to get an identity token:
python3 <ABS_PATH_TO_SKILL>/scripts/upload_video.py --file-path <file_path>
(If the input is a web URL from a supported platform, skip this step.)