Academy → Using HermesOfficial documentation · clear explanation

WeCom Callback (Self-Built App)

WeCom Callback (Self-Built App)

Beginner10 minutes3 questions2026-08-09
The idea in one minute

Start with meaning, then move to detail.

This lesson explains WeCom Callback (Self-Built App) as part of getting started with Hermes correctly. You will learn what it does, when it matters, and the smallest safe test that proves it works.

If you are new

If you are new, do not memorize names. Focus on three questions: what problem does this solve, what access does it need, and how can you verify the result?

For hands-on use

For practice, inspect the first example, identify its effects, run it on test data, and compare the result with the source claim.

For specialists

For advanced readers, inspect How It Works, Prerequisites, Setup, then verify failure modes and version compatibility.

What do you need first?

No prior experience is required; follow the steps on a safe test setup first.

What will you know?

A clear outcome before you read.

  • Understand WeCom Callback (Self-Built App) without assumed prior knowledge.
  • Separate the source description from what still needs testing in your environment.
  • Read the first command and identify its inputs and outputs before copying it.
Lesson terms

Short definitions before the details.

Gateway
The process that connects Hermes to channels such as Telegram or Discord and routes messages.
Topic map

What does the source say, and in what order?

  1. 01
    How It Works

    Start here to understand the core idea or structure.

  2. 02
    Prerequisites

    Read this after the foundation, then connect it to the previous step.

  3. 03
    Setup

    Read this after the foundation, then connect it to the previous step.

  4. 04
    1. Create a Self-Built App in WeCom

    Read this after the foundation, then connect it to the previous step.

  5. 05
    2. Configure Environment Variables

    Read this after the foundation, then connect it to the previous step.

  6. 06
    3. Start the Gateway

    Read this after the foundation, then connect it to the previous step.

  7. 07
    Configuration Reference

    Read this after the foundation, then connect it to the previous step.

  8. 08
    Multi-App Routing

    Read this after the foundation, then connect it to the previous step.

  9. 09
    Access Control

    Read this after the foundation, then connect it to the previous step.

  10. 10
    Endpoints

    Finish here to verify the result and special cases.

Examples from the official page

Copy only after you understand the effect.

WECOM_CALLBACK_CORP_ID=your-corp-id WECOM_CALLBACK_CORP_SECRET=your-corp-secret WECOM_CALLBACK_AGENT_ID=1000002 WECOM_CALLBACK_TOKEN=your-callback-token WECOM_CALLBACK_ENCODING_AES_KEY=your-43-char-aes-key # Optional # WECOM_CALLBACK_HOST= # optional pin; unset = dual-stack (all interfaces, IPv4+IPv6) WECOM_CALLBACK_PORT=8645 WECOM_CALLBACK_ALLOWED_USERS=user1,user2
hermes gateway
platforms: wecom_callback: enabled: true extra: host: "0.0.0.0" port: 8645 apps: - name: "dept-a" corp_id: "ww_corp_a" corp_secret: "secret-a" agent_id: "1000002" token: "token-a" encoding_aes_key: "key-a-43-chars..." - name: "dept-b" corp_id: "ww_corp_b" corp_secret: "secret-b" agent_id: "1000003" token: "token-b" encoding_aes_key: "key-b-43-chars..."
Try it now

Read the first command and identify its inputs and outputs before copying it.

Match every command to your installed Hermes version, review the files and accounts it can reach, and use non-sensitive data for the first test. If this explanation differs from the source, the official source wins.

Knowledge check

Three decisions before completion.

1. What is the source of truth when “WeCom Callback (Self-Built App)” changes?
2. What is the best way to apply this lesson?
3. What should happen before a step can modify files or an external account?