ParishSynthMind

Wechat AI Support Assistant — AI skill for Claude Code

AI community

AI customer support for a WeChat Official Account: signed and AES-encrypted callbacks, Chinese and English answers with Claude or Gemini, the 5-second rule, customer-service messages, handover.

How to install Wechat AI Support Assistant

This entry records only its repository, not the path inside it, so there is no exact command to give. Open ParishSynthMind/wechat-ai-support-assistant and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Wechat AI Support Assistant does

AI customer support for a WeChat Official Account: signed and AES-encrypted callbacks, Chinese and English answers with Claude or Gemini, the 5-second rule, customer-service messages, handover. Tested against a mock; live test pending.

Alternatives in AI

  • Wechat Acp — Bridge WeChat chat messages to any ACP-compatible AI agent (Claude, Codex, Copilot, Qwen, Gemini, OpenCode and 488 ★
  • Nativeprompt — Rewrite your prompt into the native dialect of the model you're actually running (Claude Code / Codex) — by ea 113 ★
  • Wx Bot — 把微信接入你的 AI Agent(Grok / Muse / Claude 等)· Connect WeChat to your personal AI agent via official iLink 107 ★

README

WeChat AI Support Assistant

[![tests](https://github.com/ParishSynthMind/wechat-ai-support-assistant/actions/workflows/tests.yml/badge.svg)](https://github.com/ParishSynthMind/wechat-ai-support-assistant/actions/workflows/tests.yml)

A customer-support assistant for a **WeChat Official Account**. Followers write in Chinese or English; the assistant answers in their language from the business's own knowledge base, using Claude or Gemini. It handles the parts of WeChat that trip people up:

  • The 5-second rule. WeChat waits 5 seconds for a reply, then gives up and sends the message again (three tries in all). The assistant answers inside the HTTP reply when the answer is ready in time (a "passive" reply). If not, it tells WeChat "success" in time and sends the answer a moment later through the Customer Service message API.
  • Retries never mean double answers. Each message is claimed once by its MsgId (or sender + time for events). A retry that arrives while the answer is still being worked on waits for it; one that arrives afterwards gets the same stored answer. One model call per message, one answer per message.
  • The 48-hour window and the 5-message budget. Customer-service messages only work within 48 hours of the follower's last message, and only 5 per message they send. Both are counted before sending, so nothing is wasted on a send WeChat would refuse.
  • access_token done properly. Tokens last 2 hours and fetching them is rationed (200 a day on a test account), so one token is cached in SQLite and shared by every worker process, refreshed 5 minutes early by one worker at a time (a file lock), and renewed once if WeChat says 40001, 40014 or 42001.
  • Signed and encrypted callbacks. The URL signature is checked on every request, old timestamps are refused, and WeChat's AES "safe mode" (and "compatible mode") encryption is supported both ways. The encryption is cross-checked against wechatpy, an inde