Weixin Send Media for Openclaw

A specialized skill for Openclaw agents to programmatically deliver local files, images, and documents into Weixin chat conversations.

starlxa
v1.0.2
Mar 26, 2026
0
901
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install weixin-sender

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 weixin-sender 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 Weixin Send Media?

The Weixin Send Media skill enables AI agents to bridge the gap between local file generation and active communication. By leveraging this Openclaw Skills extension, agents can automatically push assets like screenshots, reports, and spreadsheets directly to a specified Weixin target without manual user intervention.

This skill is specifically designed for environments where the active channel is openclaw-weixin, ensuring that generated exports or project files are delivered efficiently using absolute local paths and structured delivery folders for better organization.

Weixin Send Media Use Cases

  • Distributing generated PDF reports or invoices to clients via Weixin.
  • Sharing automated screenshots or JPG/PNG exports of data visualizations.
  • Sending project-related DOCX, XLSX, or PPTX files as immediate follow-ups to task completion.
  • Delivering local attachments or code snippets as physical files for archival or review within the chat.

How Weixin Send Media Works

  1. The AI agent identifies a request to share a file or media within a Weixin context.
  2. If the file is a user-facing export, the agent copies it to a timestamped directory under deliveries/YYYY-MM-DD/HHMMSS/.
  3. The agent retrieves the necessary trusted inbound metadata, specifically the account_id and chat_id.
  4. The skill executes a command via the Openclaw CLI to push the media to the target channel.
  5. The agent verifies delivery by confirming with the user that the file was received.

Weixin Send Media Setup

To utilize this skill, ensure the Openclaw CLI is installed and configured for your environment. No additional plugins are required beyond the core Openclaw Skills framework.

Verify your local workspace permissions to allow the agent to write to the delivery directory:

mkdir -p deliveries/$(date +%Y-%m-%d)

Ensure you have the account_id and target chat_id available from your inbound session metadata.

Weixin Send Media Data Schema & Taxonomy

The skill follows a strict file organization and metadata schema to ensure reliability:

Attribute Description Requirement
account_id The unique identifier for the bot or sender account. Required (from metadata)
chat_id The destination user or group ID (target). Required (from metadata)
media_path The absolute local path to the file being sent. Required (Absolute Path)
delivery_dir Root directory for shared files: deliveries/YYYY-MM-DD/HHMMSS/ Recommended

Files are categorized by date and time to prevent filename collisions and maintain a clean audit trail.

Weixin Send Media Advanced Features

  • Multi-format support: Handles PDF, PNG, JPG, DOCX, XLSX, and PPTX seamlessly.
  • Automated Delivery Archiving: Automatically moves shareable copies to structured delivery folders while keeping originals in the project directory.
  • CLI Integration: Uses the robust openclaw message send command for high reliability in headless or automated environments.
  • Metadata Binding: Deep integration with Openclaw inbound metadata to ensure messages reach the correct recipient without hardcoding IDs.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*