Discord — AI in Your Server
Discord — AI in Your Server — easy-to-understand guide based on official docs
Imagine walking into a busy office where your personal assistant only speaks when spoken to—unless you’re in the break room, where they’re happy to chat freely. That’s exactly how Hermes Agent behaves inside Discord, and once you get the hang of it, it feels just as natural.
The Golden Rule: Mentions Matter
In most server channels, Hermes is polite to a fault. It won’t barge into conversations. You need to @Hermes before your message, like tapping someone on the shoulder. For example:
@Hermes what’s the weather in Tokyo?
If you forget the mention, Hermes stays silent. That’s by design—it keeps the bot from cluttering channels where people are just chatting among themselves.
DMs: Your Private Hotline
Direct messages are different. No mention needed. Every message you send gets a reply, and each DM conversation has its own session. So if you’re brainstorming a project in DMs, Hermes remembers the context without mixing it with anything else.
Free-Response Channels: The Break Room
Want a channel where people can talk to Hermes without tagging it every time? Add that channel to your environment variables:
DISCORD_FREE_RESPONSE_CHANNELS=#bot-help,#research
Now, in those channels, Hermes answers every message inline—no threading, no mentions, just a lightweight chat. Perfect for a help desk or a casual Q&A channel.
Threads: Isolated Conversations
If you start a thread and mention Hermes inside it, it replies right there. Threads have their own session history, separate from the parent channel. So a deep dive in a thread won’t pollute the main channel’s context.
Shared Channels: Everyone Gets Their Own Memory
Here’s the clever part. If Alice and Bob both talk to Hermes in #research, they don’t share a transcript. Each user gets their own session inside that channel. No cross-talk, no confusion. You can disable this if you want a group conversation, but by default, it’s per-user for safety and clarity.
One More Safety Net
By default, if a message mentions other users but not Hermes, the bot stays quiet. That prevents it from jumping into a conversation directed at someone else. If you want Hermes to respond to everything regardless, set:
DISCORD_IGNORE_NO_MENTION=false
This only applies in server channels—DMs are always fair game.
What Happens Behind the Scenes
Every message goes through a full pipeline: authorization, mention checks, session lookup, transcript loading, then the actual agent execution with tools and memory, and finally a reply back to Discord. It’s not a stateless webhook—it’s a real conversational partner with memory and reasoning.
Final Thought
The best way to use Hermes on Discord is to set up one free-response channel for casual questions and rely on mentions everywhere else. That gives you a lively, helpful bot without turning your server into a noisy AI free-for-all.
Practical tip: Start with just one free-response channel. See how it feels. Then expand. You can always tweak the settings later—Hermes is flexible, but a little structure goes a long way.
📖 Official Docs
This article is based on the official Hermes Agent documentation:Official docs › user-guide/messaging/discord