How to Use Discord with Pokee AI
Pokee AI's Discord integration lets you spin up a Discord bot that auto-replies to your messages with full access to every Pokee skill — Gmail, Slack, Notion, Shopify, and the rest. Instead of opening the Pokee web app, just message your bot. The bot keeps conversation history, supports server channels, and stays online so you can chat from anywhere.
What You Can Do with Discord + Pokee
- Chat-first agent: message your bot from anywhere — phone, desktop, web — and Pokee replies inline
- Full skill access: the bot can use every connected integration (Gmail, Slack, Calendar, Shopify, Notion, etc.) without leaving Discord
- Server bots: drop the bot into a community or team server and let it answer questions, summarise channels, or run scheduled tasks
- Persistent memory: conversation history is preserved across restarts so the bot remembers context per channel
- Owner gating: by default only you (the registered owner) can interact — add trusted Discord user IDs to extend access
Getting Started
Step 1: Create a Discord application and bot
- Go to the Discord Developer Portal and click New Application
- Name your app, then open the Bot tab and click Add Bot
- Under Privileged Gateway Intents, enable Message Content Intent (required for the bot to read messages)
- Click Reset Token and copy the token — it looks like
MTIz...and you'll only see it once - In the OAuth2 → URL Generator tab, tick
botandapplications.commands, then under Bot Permissions tickSend Messages,Read Message History, andUse Slash Commands. Copy the generated URL.
Step 2: Ask Pokee to set up the bot
In a Pokee chat, just say:
"Set up a Discord bot for me"
Paste the token when Pokee asks. Pokee will:
- Save the token securely
- Deploy the bot script
- Start a watchdog so the bot stays online
- Confirm with
Bot connected: <your_bot_username>
That's it — your bot is live.
Step 3: Invite the bot and test it
- Open the OAuth2 URL you copied earlier and pick a server to invite the bot to (you need Manage Server on that server)
- In Discord, send the bot a DM or mention it in a channel:
@your_bot Hi - Pokee replies right back, with full access to all your connected skills.
Example Commands
Chat-driven workflows
"Summarise the last 10 emails in my Gmail and send me the digest"
"What's on my calendar tomorrow? Move my 3pm to Friday"
"Post the Q3 metrics from Google Sheets to #leadership in Slack"
Server channels
Mention the bot (@your_bot what did I miss?) in any channel to summarise the thread, draft a reply, or run a skill on the channel's behalf.
Tip: Discord bots only see messages in channels they have access to. Make sure the bot's role has View Channel and Read Message History in the channels you want it active in.
Recurring tasks
"Every weekday at 9am, post a brief of overnight GitHub activity in #engineering"
"When a new HubSpot deal closes, ping me in DM with the details"
Combining Discord with Other Integrations
| Workflow | Integrations Used |
|---|---|
| Community moderator assistant | Discord + Notion + Google Docs |
| Release announcements | Discord + GitHub + Vercel |
| Server standups | Discord + Jira/ClickUp |
| Approval pings | Discord + Slack + Linear |
| Order alerts | Discord + Shopify |
| Game-night planner | Discord + Google Calendar + Maps |
Tips for Best Results
- Give the bot its own role with only the permissions it needs — easier to audit and revoke
- Owner gate by default — only you can DM the bot until you add other Discord user IDs to the
.ownerfile - Use channel-specific access to keep the bot quiet in channels where it isn't needed
- Combine with scheduled tasks for recurring digests and reminders
- Keep the token secret — anyone with it can impersonate the bot. Reset via the Developer Portal if it leaks
Frequently Asked Questions
Do I need to keep the Pokee tab open?
No. The bot runs as a background process inside your Pokee sandbox with a built-in supervisor that auto-restarts it if it crashes.
Will the bot reply in every channel?
Only channels it's been added to and where it has View Channel + Read Message History. By default the bot only responds when mentioned or DM'd, so it won't answer every message in busy channels.
Can other people DM my bot?
Only owners can DM by default. To grant access, add trusted Discord user IDs (one per line) to the bot's .owner file.
What happens to my conversation history?
History is stored on disk inside your sandbox under discord-bot/history/, keyed by channel, and survives restarts. If your sandbox pod is restarted (rare — usually only on deploys), ask Pokee to set the bot up again.
Is the Discord integration secure?
Yes. Tokens are stored with chmod 600 permissions inside your isolated Pokee sandbox. The bot connects to Discord's official Gateway over WSS — no inbound port is opened, no public webhook needed.
What if the token is invalid?
Pokee will show a FATAL: Token invalid error in the bot log. Reset the token in the Discord Developer Portal under Bot → Reset Token, and ask Pokee to retry the setup.