Back to Marketplace

Run this helper free

Answer 3 questions. Get a result in 2 minutes. Preview free.

Start free →
FREE
Verified
Grow Business

Skill: WeChat Messaging via weixin-agent-cli

Automate WeChat messaging directly from your command line

Businesses struggle to integrate WeChat messaging into their automation workflows without manual intervention or expensive third-party APIs.

Send and receive WeChat messages programmatically via command-line, enabling automated customer communication and chatbot integration.

  • Send messages to WeChat users via CLI commands
  • Poll and receive incoming WeChat messages with context tokens
  • Automatic account detection for single logged-in bot
  • JSON output for seamless integration with scripts
  • Built-in message context caching for replies

👁 4 views · 📦 0 installs

Install in one line

mfkvault install ginurx-weixin-agent-cli

Requires the MFKVault CLI. Prefer MCP?

No reviews yet
🤖 Claude Code Cursor💻 Codex🦞 OpenClaw
FREE

Free to install — no account needed

Copy the command below and paste into your agent.

Instant access • No coding needed • No account needed

What you get in 5 minutes

  • Full skill code ready to install
  • Works with 4 AI agents
  • Lifetime updates included
VerifiedSecureBe the first
Ready to run

Run this helper

Answer a few questions and let this helper do the work.

Advanced: use with your AI agent

Description

# Skill: WeChat Messaging via weixin-agent-cli Use the `weixin-agent-cli` command-line tool to send and receive WeChat (微信) messages. All commands output JSON to stdout. ## Prerequisites - The `weixin-agent-cli` tool must be installed and available in PATH - An account must be logged in (run `weixin-agent-cli login` in an interactive terminal first) ## Key Concepts - **Account ID**: Each logged-in WeChat bot has an account ID (e.g. `[email protected]`). If only one account exists, it's used automatically. - **User ID**: WeChat users are identified by IDs ending in `@im.wechat` (e.g. `[email protected]`). - **Context Token**: Required for sending messages. Automatically cached when you receive a message from a user via `poll`. You must poll at least once before you can send to a user. ## Workflow ### 1. Check Accounts ```bash weixin-agent-cli accounts ``` Returns a JSON array of registered accounts with their status. ### 2. Poll for Messages ```bash weixin-agent-cli poll # With timeout (ms): weixin-agent-cli poll --timeout 15000 # Specific account: weixin-agent-cli poll --account "[email protected]" ``` **Output format:** ```json { "accountId": "[email protected]", "total": 3, "messages": [ { "from": "[email protected]", "to": "[email protected]", "message_id": 12345, "message_type": "user", "message_state": "finish", "timestamp": 1711700000000, "text": "Hello, bot!" } ] } ``` The `messages` array only contains completed user messages (bot echoes and generating states are filtered out). #### Watch Mode (continuous polling) ```bash weixin-agent-cli poll --watch weixin-agent-cli poll --watch --timeout 10000 ``` Outputs NDJSON (one JSON object per line). Empty polls (no user messages) are skipped. Runs until interrupted with Ctrl+C. ```jsonl {"accountId":"[email protected]","total":1,"messages":[{"from":"[email protected]","text":"Hi"}]} {"accountId":"[email protected]","total":1,"messages":[{"from":"[email protected]","text":"Second msg"}]} ``` ### 3. Send a Text Message ```bash weixin-agent-cli send --to "[email protected]" --text "Hello from the bot!" ``` **Important:** You must have received at least one message from the target user (via `poll`) before sending, so the context token is available. ### 4. Send a Media File ```bash # Image weixin-agent-cli send-media --to "[email protected]" --file "/path/to/image.png" # Video with caption weixin-agent-cli send-media --to "[email protected]" --file "/path/to/video.mp4" --text "Check this out" # Document weixin-agent-cli send-media --to "[email protected]" --file "/path/to/report.pdf" ``` File type is detected from the extension. Supported categories: - **Images**: png, jpg, jpeg, gif, webp, bmp - **Video**: mp4, mov, webm, mkv, avi - **Files**: pdf, doc/docx, xls/xlsx, ppt/pptx, txt, csv, zip, tar, gz ### 5. Send Typing Indicator ```bash # Start typing weixin-agent-cli typing --to "[email protected]" # Cancel typing weixin-agent-cli typing --to "[email protected]" --cancel ``` ## Error Handling All errors are written to stderr and the process exits with code 1. Check the JSON output `success` field or the exit code to detect failures. ## Typical Agent Loop **Single-poll approach:** ```bash # Poll for new messages RESULT=$(weixin-agent-cli poll --timeout 15000) # Parse messages from JSON output, process each one # Then reply: weixin-agent-cli send --to "$FROM_USER" --text "$REPLY_TEXT" ``` **Watch mode approach (continuous):** ```bash # Stream messages continuously, process each NDJSON line as it arrives: weixin-agent-cli poll --watch | while IFS= read -r line; do echo "$line" | process_message_and_reply done ``` ## Multi-Account With multiple accounts, always pass `--account <id>` (or `-a <id>`): ```bash weixin-agent-cli poll --account "[email protected]" weixin-agent-cli send --to "[email protected]" --text "Hi" --account "[email protected]" ```

Preview in:

Security Status

Verified

Manually verified by security team

Time saved
How much time did this skill save you?

Related AI Tools

More Grow Business tools you might like

codex-collab

Free

Use when the user asks to invoke, delegate to, or collaborate with Codex on any task. Also use PROACTIVELY when an independent, non-Claude perspective from Codex would add value — second opinions on code, plans, architecture, or design decisions.

Rails Upgrade Analyzer

Free

Analyze Rails application upgrade path. Checks current version, finds latest release, fetches upgrade notes and diffs, then performs selective upgrade preserving local customizations.

Asta MCP — Academic Paper Search

Free

Domain expertise for Ai2 Asta MCP tools (Semantic Scholar corpus). Intent-to-tool routing, safe defaults, workflow patterns, and pitfall warnings for academic paper search, citation traversal, and author discovery.

Hand Drawn Diagrams

Free

Create hand-drawn Excalidraw diagrams, flows, explainers, wireframes, and page mockups. Default to monochrome sketch output; allow restrained color only for page mockups when the user explicitly wants webpage-like fidelity.

Move Code Quality Checker

Free

Analyzes Move language packages against the official Move Book Code Quality Checklist. Use this skill when reviewing Move code, checking Move 2024 Edition compliance, or analyzing Move packages for best practices. Activates automatically when working

Claude Memory Kit

Free

"Persistent memory system for Claude Code. Your agent remembers everything across sessions and projects. Two-layer architecture: hot cache (MEMORY.md) + knowledge wiki. Safety hooks prevent context loss. /close-day captures your day in one command. Z