Skip to main content

๐Ÿ’ฌ QQ Integration

๐Ÿ‘ค Who it's for: Users who want an AI assistant in QQ
โฑ๏ธ Read time: ~5 minutes
๐Ÿ’ก In one line: Make YingClaw your intelligent QQ assistant โ€” always responsive, speaks only when needed.

Connect YingClaw to QQ and turn it into an always-available AI assistant for both private and group chats.


Overviewโ€‹

YingClaw connects to QQ via the QQ Open Platform's WebSocket connection, supporting text, images, and @ mentions.

ScenarioDescription
๐Ÿค– Private AssistantOne-on-one conversations, ask anything anytime
๐Ÿ‘ฅ Group ResponseResponds when @ mentioned in group chats
๐Ÿ“ข NotificationsScheduled task results pushed to QQ

Setupโ€‹

1. Get QQ Open Platform Credentialsโ€‹

Go to QQ Open Platform and register an app to get:

  • App ID: Your application's unique identifier
  • App Secret: Your application's secret key

2. Configure in YingClawโ€‹

Log into the YingClaw Web Console, go to "Channels", enable QQ, and fill in:

ParameterDescription
app_idApp ID from QQ Open Platform
app_secretApp Secret from QQ Open Platform
allowed_usersUser allowlist, * means all users

3. Start the Channelโ€‹

After saving, YingClaw automatically connects to QQ WebSocket and starts receiving messages.


Message Interactionโ€‹

Private Chatโ€‹

Users send messages directly to the Bot. YingClaw responds in real time, supporting:

  • ๐Ÿ’ฌ Natural language conversation
  • ๐Ÿ“„ File reading, writing, and editing
  • ๐Ÿ” Information lookup and web search
  • โฐ Task scheduling and reminders

Group Chatโ€‹

In group chats, YingClaw is best configured to respond only when @ mentioned to avoid disrupting conversations.

User Allowlistโ€‹

Control which QQ users can trigger the Bot:

channels:
qq:
allowed_users:
- "123456789" # Only specific QQ accounts
# - "*" # Allow all users

Notesโ€‹

  • Use a dedicated QQ account for the Bot
  • In groups, configure @-mention-only responses to protect the chat experience
  • Regularly review message logs for unusual activity

Next Stepsโ€‹