Overview
Discord communities need attention 24/7 but your mods don't work around the clock. An AI community assistant bridges the gap โ handling common questions, welcoming new members, and surfacing relevant resources instantly.
What You'll Build
A Discord bot powered by OpenClaw that:
- Answers questions in your
#generalor#supportchannels - Directs users to the right resources (docs, channels, links)
- Maintains a helpful, on-brand tone
- Never sleeps, never gets frustrated
Prerequisites
- An AgentClaw account
- A Discord Bot Token (from Discord Developer Portal)
- An Anthropic or OpenAI API key
Setup Steps
1. Create Your Instance
Sign up at agentclaw.app and create a new agent. Name it after your community or bot (e.g., myproject-assistant).
2. Add Your Discord Bot Token
In the instance dashboard, go to Tools โ Environment Variables and add:
DISCORD_BOT_TOKEN=your_bot_token_here
3. Configure the AI Model
Go to Integrations โ AI Model and add your API key. For community use, Claude Sonnet provides excellent conversation quality.
4. Write a Community-Aware System Prompt
SYSTEM_PROMPT="You are the official assistant for [Community Name].
You help members with: [list your main use cases].
Always be friendly and direct people to #resources for detailed docs.
Never share personal information or make promises the team hasn't made."
5. Start Your Instance
Hit Start and your bot comes online in under a minute. Invite it to your Discord server with the standard OAuth2 flow.
Advanced: Restrict to Specific Channels
Use OpenClaw's channel filtering to only respond in designated channels โ keep your general chat clean while providing support where it matters.
Tips
- Set channel allowlists so the bot doesn't respond everywhere
- Use the Logs tab to catch misunderstandings and refine your system prompt
- Restart to update prompts โ changes to env vars require an instance restart