Hermes Agent HelperHermes Agent Helper

QQ Bot Setup Guide: Connect Hermes Agent to QQ Official Bot

Hermes Agent Helperon a month ago

Overview

QQ Bot is an official bot platform provided by Tencent. Hermes Agent supports conversational interactions with users through QQ Official Bot. Compared to WeChat, QQ Bot uses official APIs, making it secure, stable, and ban-free.

Estimated setup time: 5-10 minutes

Required information:

  • QQ Bot Secret

Advantages of QQ Bot

Compared to WeChat

FeatureQQ BotWeChat
Rich text messages✅ Supported❌ Not supported
Ban risk✅ None (official API)⚠️ Risky
Online status✅ Clearly visible❌ Not obvious
Setup complexityLow-MediumLow

Compared to Feishu

FeatureQQ BotFeishu
Message translation❌ Not supported✅ Supported
Emoji reactions❌ Not supported✅ Supported
Interactive cards❌ Not supported✅ Supported
Group chat bot❌ Not supported✅ Supported

Step 1: Create a QQ Bot

1.1 Access QQ Bot Open Platform

  1. Open QQ Bot Open Platform
  2. Log in with your QQ account
  3. Complete developer verification if required

1.2 Create a Bot

  1. In the console, click "Create Bot"
  2. Fill in the bot information:
    • Bot Name: Enter an identifiable name, e.g., "Hermes AI Assistant"
    • Bot Description: Brief description of the bot's purpose
    • Bot Avatar: Upload an avatar (optional)
  3. Complete creation

1.3 Get Bot Secret

After creation, go to the bot details page:

  1. Find the "Secret" or "Bot Secret" section
  2. Copy the bot secret

Save this secret securely - you'll need it for configuration.


Step 2: Configure Hermes Gateway

2.1 Open Hermes Service Manager

Log in to your Hermes Service Manager web interface.

2.2 Configure QQ Bot

  1. Switch to the "Environment" or "Config" tab
  2. Find the QQ bot configuration fields
  3. Enter your bot secret
  4. Save configuration

The gateway will restart automatically.


Step 3: Pairing Verification

3.1 First Message Triggers Verification

When you send your first message to the QQ bot, Hermes will trigger a security verification process.

3.2 Execute Pairing Command

The bot will reply with a message containing a pairing command, similar to:

hermes pairing approve qqbot xxxxx

You need to execute this command on your Hermes server to complete pairing:

  1. Log in to Hermes Service Manager
  2. Switch to the "Terminal" tab
  3. Enter and execute the complete command from the bot's reply

3.3 Verification Complete

Once the command executes successfully, you can chat with your QQ bot normally!


FAQ

Q: Why do I need to execute a pairing command?

A: This is Hermes Agent's security mechanism to verify the legitimacy of message sources. Only paired users can chat with the bot, preventing unauthorized access.

Q: What if the pairing command fails?

A: Please check:

  1. Was the command copied completely (including all parameters)?
  2. Are you executing it on the correct terminal (Hermes server)?
  3. Is the Hermes service running normally?

Q: Can I use QQ bot in group chats?

A: Currently, QQ bot does not support group chat functionality. It can only be used in private chats. If you need group chat features, consider using Feishu platform.

Q: What if there's no reply after sending a message?

A: Please check:

  1. Has pairing verification been completed?
  2. Is Hermes Gateway running normally?
  3. Is the LLM API configured correctly?

Next Steps

After configuration, you can:

  1. Start chatting: Find your bot in QQ and send messages to start chatting
  2. Install skills: Use hermes skill install to install various useful skills
  3. Switch models: Switch between different AI models as needed

If you have any questions, please contact our technical support.