The Ultimate Guide to Connecting Hermes Agent to WeChat, QQ, and Telegram

Stop Juggling Three Chat Apps — Let Your AI Agent Handle It All
If you're anything like me, your daily messaging life looks like this: WeChat for work and family, QQ for communities and gaming groups, and Telegram for crypto, open-source projects, and international friends. Three apps. Three notification streams. Three inboxes you can never quite keep up with. You miss urgent messages buried under memes, forget to follow up on action items, and spend half your day just switching context between platforms.
What if one AI agent could sit on all three platforms simultaneously, read every message, classify it, route it, and even auto-respond when you're asleep? That's exactly what Hermes Agent delivers — and in this guide, I'll walk you through setting it up end-to-end.
What Is Hermes Agent?
Hermes Agent is an open-source AI agent framework developed by Nous Research, the same team behind the Hermes family of language models. Unlike generic chatbot frameworks, Hermes Agent is designed from the ground up for multi-platform messaging orchestration — think of it as your personal AI chief of staff that lives inside every chat app you use.
Key capabilities out of the box:
- Multi-platform adapters — WeChat, QQ, Telegram, Discord, Slack, and more
- Message routing engine — JSON-based rules to triage, filter, and forward messages
- Auto-classification — Urgent tasks, common Q&A, informational updates, and spam
- Autonomous response — Configurable auto-reply with human-in-the-loop fallback
- Local-first — Runs entirely on your hardware, your data never leaves your machine
The best part? It's completely open source. No vendor lock-in, no monthly subscription, no API keys leaking to third parties.
WeChat Integration: The iLink Bot API Approach
Let's be honest — WeChat integration is the elephant in the room. WeChat's official API is notoriously restricted, and the reverse-engineering route (like itchat or WeChatFerry) is a ticking time bomb: accounts get banned, APIs break after updates, and you're constantly playing cat-and-mouse with Tencent.
The Smart Way: iLink Bot API + Enterprise WeChat
The iLink Bot API is the cleanest path to WeChat integration for Hermes Agent. Here's why it wins:
- No reverse engineering — It operates through official Enterprise WeChat (企业微信) channels
- Fully compliant — Uses sanctioned bot APIs, zero risk of account suspension
- Stable — Enterprise WeChat APIs have backward-compatibility guarantees
Setup Steps
- Register an Enterprise WeChat account (free for teams under 200 people)
- Create a self-built application in the Enterprise WeChat admin console
- Note your CorpID, AgentID, and Secret — you'll need these for Hermes
- Configure the Hermes WeChat adapter in your
config.yaml:
adapters:
wechat:
type: ilink
corpid: "wwYOUR_CORP_ID"
agentid: "1000002"
secret: "YOUR_AGENT_SECRET"
token: "YOUR_CALLBACK_TOKEN"
encoding_aes_key: "YOUR_AES_KEY"
- Set up the callback URL — Point your Enterprise WeChat message callback to your Hermes instance
- Test it — Send a message to your Enterprise WeChat bot and watch it appear in Hermes
Pro Tips
- For personal WeChat messages, use the Enterprise WeChat — WeChat interoperability feature. Enterprise WeChat members can message personal WeChat users (and vice versa), so you get full coverage without touching the personal WeChat API.
- Set up message archiving in Enterprise WeChat for compliance — it's built-in and free.
- Use the contact sync feature to keep your Enterprise WeChat contacts in sync with your personal WeChat address book.
QQ Integration: go-cqhttp Protocol
QQ is the backbone of countless Chinese communities — gaming clans, university groups, fan communities. If you're not on QQ, you're missing half the conversation. Here's how to bring Hermes into your QQ world.
The go-cqhttp Approach
go-cqhttp is a QQ protocol implementation based on the MiraiGo framework. It communicates with QQ servers using the official protocol (not reverse-engineering the desktop client), making it more stable than alternatives.
Setup Steps
- Download go-cqhttp from the releases page
- Generate the initial config by running it once — it will create
config.yml - Edit
config.ymlwith your QQ account details:
account:
uin: YOUR_QQ_NUMBER
password: '' # Leave blank for QR code login (recommended)
servers:
- http:
host: 127.0.0.1
port: 5700
post:
- url: http://localhost:8080/qq/callback
- Login via QR code — Run go-cqhttp and scan the QR code with your QQ mobile app
- Configure the Hermes QQ adapter:
adapters:
qq:
type: go-cqhttp
api_url: "http://127.0.0.1:5700"
callback_endpoint: "/qq/callback"
- Restart Hermes and verify messages flow in both directions
Important Caveats
- Use a secondary QQ account — Don't risk your main account. Register a dedicated bot account.
- Device lock — QQ may trigger device verification. Keep your registered phone handy for the first few logins.
- Rate limits — QQ has aggressive rate limiting. Hermes handles this with built-in backoff, but don't try to blast 100 messages in 10 seconds.
- Session persistence — go-cqhttp saves session tokens in
session.token. Back this up — if you lose it, you'll need to re-login. - Protocol updates — go-cqhttp occasionally needs updates when QQ changes its protocol. Pin your version and update deliberately, not automatically.
Telegram Integration: Native Bot API — The Smoothest Experience
If WeChat is the hardest and QQ is the middle child, Telegram is the golden child. The Telegram Bot API is a masterpiece of developer-friendly design — RESTful, well-documented, and virtually zero friction.
Setup Steps
- Create a bot — Message @BotFather on Telegram, send
/newbot, and follow the prompts - Save your Bot Token — You'll get something like
123456789:ABCdefGHIjklMNOpqrsTUVwxyz - Configure the Hermes Telegram adapter:
adapters:
telegram:
type: native-bot-api
token: "123456789:ABCdefGHIjklMNOpqrsTUVwxyz"
allowed_updates:
- message
- edited_message
- callback_query
- That's it. Seriously. No callback URLs, no enterprise registration, no protocol dance. Hermes polls the Bot API and starts receiving messages immediately.
Advanced Techniques
- Inline keyboards — Hermes supports interactive button menus in Telegram. Use them for quick-action triage (e.g., "Mark as Urgent / Reply Later / Dismiss").
- Bot commands — Register commands like
/status,/classify,/pausevia BotFather for a polished UX. - Group privacy mode — By default, bots only see @mentions and replies. Disable privacy mode in BotFather if you want Hermes to see all group messages (recommended for full triage).
- Webhook mode — For lower latency, switch from polling to webhooks. Hermes supports both; webhooks are ideal if your instance has a public URL.
Multi-Platform Unified Management: The Message Routing Engine
This is where Hermes Agent truly shines. Having three bots on three platforms is nice. Having one brain that processes messages from all three — that's transformative.
How the Routing Engine Works
Hermes uses a JSON-based rule system. Every incoming message is evaluated against your rules, top to bottom, first match wins. Here's a practical example:
{
"rules": [
{
"name": "urgent_keywords",
"match": {
"any": ["urgent", "紧急", "ASAP", "老板", "boss", "deadline"]
},
"action": {
"classify": "urgent_todo",
"notify": ["push", "sms"],
"priority": "high"
}
},
{
"name": "faq_patterns",
"match": {
"regex": "怎么注册|如何登录|how to sign up|forgot password"
},
"action": {
"classify": "faq",
"auto_reply": true,
"template": "faq_response"
}
},
{
"name": "info_updates",
"match": {
"source": ["telegram_channel", "qq_group_announce"]
},
"action": {
"classify": "information",
"digest": true,
"notify": ["daily_summary"]
}
},
{
"name": "spam_filter",
"match": {
"regex": "加群|免费领取|click here|promo|广告"
},
"action": {
"classify": "spam",
"suppress": true
}
}
]
}
Auto-Classification Categories
| Category | What It Catches | What Hermes Does |
|---|---|---|
| Urgent Todo | Deadline mentions, boss messages, "ASAP" | Push notification + SMS + flag for immediate action |
| FAQ | Registration, login, pricing questions | Auto-reply with templated response |
| Information | Channel updates, newsletters, announcements | Queue for daily digest summary |
| Spam | Ads, phishing, group invites from strangers | Suppress silently |
The beauty is that rules are platform-agnostic. A message saying "紧急" from WeChat and one saying "urgent" from Telegram both hit the same rule. One brain, all platforms.
Building Smarter Rules
You can chain conditions for precision:
{
"name": "boss_wechat_urgent",
"match": {
"all": [
{"source": "wechat"},
{"sender": "boss_user_id"},
{"any": ["urgent", "今天", "马上"]}
]
},
"action": {
"classify": "urgent_todo",
"notify": ["push", "sms", "phone_call"],
"escalation_timeout_minutes": 15
}
}
This rule says: If a message comes from WeChat, from my boss, containing urgent-sounding words — escalate aggressively. If I don't respond in 15 minutes, call my phone.
24/7 Uptime: Running Hermes on KaiheAiBox AIBOX-A1
Here's the dirty secret of self-hosted AI agents: they're only useful if they're always running. A Hermes agent that goes offline when your laptop sleeps is worse than useless — it creates a false sense of coverage.
Why You Need Dedicated Hardware
Running Hermes on your daily workstation means:
- Reboots kill your agent mid-conversation
- Sleep mode = total blackout
- Resource contention with your actual work
- No isolation — a misconfigured rule could spawn processes that eat your RAM
The Solution: KaiheAiBox AIBOX-A1

The KaiheAiBox AIBOX-A1 (also branded as KAIHE AI Box or Agent Computer) is a purpose-built local AI appliance designed for exactly this use case: running AI agents 24/7/365 without babysitting.
What makes it different from "just another mini PC":
- Pre-configured AI stack — Python, CUDA, Ollama, and common agent frameworks pre-installed. No dependency hell, no "it works on my machine" rituals.
- Out of the box — Plug in power and Ethernet, run the setup wizard, and your Hermes instance is live. First message flows within 15 minutes of unboxing.
- Silent operation — Fanless design with passive cooling. No desk hum, no vibration. It sits quietly in the corner, thinking.
- Low power draw — Sips electricity at ~15W. Running 24/7 costs less than a light bulb per month.
- Local-first privacy — All processing happens on-device. Your WeChat/QQ/Telegram messages never touch a cloud server. Your data stays yours.
Deployment Steps
- Unbox the AIBOX-A1 and connect power + Ethernet
- Access the web dashboard at
http://aibox.local(or the displayed IP) - Install Hermes Agent — One click from the built-in app store, or pull from GitHub
- Upload your
config.yamlwith all three adapters (WeChat, QQ, Telegram) - Upload your routing rules JSON
- Hit Start — Your agent is now live on all platforms simultaneously
That's it. No Docker compose files. No NVIDIA driver conflicts. No "sudo apt-get install" marathons. The KaiheAiBox AIBOX-A1 is built so that you spend your time using your agent, not maintaining it.
Putting It All Together: A Day in the Life
Let me paint the picture of what this looks like in practice:
7:00 AM — Your Hermes agent has been running all night on the AIBOX-A1. It caught a Telegram message at 3 AM about a server outage, classified it as urgent, and sent you a push notification. You saw it when you woke up.
9:00 AM — A WeChat group message asks "how do I reset my password?" Hermes auto-replies with the FAQ template. You didn't lift a finger.
12:00 PM — Three QQ groups are buzzing with lunch plans. Hermes classifies them as informational and queues them for your afternoon digest.
3:00 PM — Your boss messages on WeChat: "今天下班前给我报告" (Give me the report before end of day). Hermes flags it urgent, pushes a notification, and sets a 2-hour escalation timer.
6:00 PM — You check the Hermes dashboard. 47 messages processed. 3 urgent items handled. 12 FAQs auto-answered. 8 spam messages suppressed. You actually responded to just 3 messages manually.
All night — Hermes keeps watching. The AIBOX-A1 hums silently. If anything urgent comes in, you'll know. Everything else can wait until morning.
Final Thoughts
The multi-platform messaging chaos is real, and it's getting worse, not better. Every new app, every new group, every new channel adds to the noise. Hermes Agent gives you a fighting chance — not by replacing human judgment, but by handling the 80% of messages that don't need your immediate attention so you can focus on the 20% that do.
The combination of Hermes Agent + KaiheAiBox AIBOX-A1 is, in my experience, the most practical way to get a 24/7 multi-platform AI agent running. The software is open source and free. The hardware is purpose-built and plug-and-play. Together, they turn the dream of "one AI that manages all my chats" into something you can set up this weekend.
Stop drowning in notifications. Start building your AI operations center.
KaiAIBox | Agentaibox that lets AI work for you 24/7 · Hermes Zone
-#Hermes #WeChatAI #AIAgent #OpenSource #KaiheAiBox