This document describes how to integrate Hermes Agent with personal WeChat and QQ, so you can interact with Hermes Agent directly using natural language in group or one-on-one chats.
Integration steps by platform
Log on to the terminal password-free: Log on to the Simple Application Server console, find the target server card, and click Remote Connection. In the Connect with One-click on Workbench area, click Log on Now.
Run the integration command: In the terminal, run the following command and select WeChat.
hermes gateway setupWhen prompted to continue, enter
yand press Enter.Log on to WeChat via QR code: The terminal displays a URL. Copy the URL and open it in your browser. Scan the QR code on the page with your WeChat app and authorize the logon on your phone.


Select
Doneto complete the configuration.Start the gateway and test the connection: In the terminal, run
hermes gateway. To start a conversation, send a message to the linked WeChat account.
Log on to the terminal password-free: Log on to the Simple Application Server console, find the target server card, and click Remote Connection. In the Connect with One-click on Workbench area, click Log on Now.
Create a QQ bot.
Go to the official Tencent QQ Open Platform website. At the bottom of the page, in the dedicated portal for Longxia, click Go to Use.
In the Mobile Login section, scan the QR code to log on to your QQ account.
Click Create Bot to generate a new QQ bot. Save the bot's AppID and AppSecret.
ImportantStore this key information securely. The AppSecret (bot secret) for a QQ bot is not stored in plaintext. If this is the first time you are viewing the AppSecret or if you have forgotten it, you must regenerate it.
Run the integration command: In the terminal, run the following command and select QQ bot.
hermes gateway setupEnter the
Bot IDandSecretwhen prompted.Configure the access policy: When prompted, specify who can access the bot. You can press Enter to use the default public access mode.



Start the gateway and test the connection: In the terminal, run
hermes gateway. In QQ, add the bot to a group chat. To talk to the bot in the group, mention it using @bot. In a one-on-one chat, a mention is not required.