Discord bots in n8n process each message in isolation — no memory of previous conversations, no user context across sessions. retainr adds persistent memory so your Discord bot remembers every user across all servers and all time. Install the community node in 30 seconds.
Each Discord message triggers a new n8n execution. When that execution ends, all context is discarded. The next message — even from the same user in the same thread — starts from scratch. retainr bridges the gap: persist context after each response, retrieve it before the next.
Settings → Community Nodes → Install → n8n-nodes-retainr. Create a Discord bot in the Discord Developer Portal, add it to your server, and add the bot token to n8n as a Discord credential.
Add a retainr Search Memory node after the Discord Trigger. Namespace: discord:{user_id} for per-user memory or discord:server:{guild_id} for shared server memory. Query: the incoming message content.
Add a retainr Store Memory node after your AI step. Namespace: same as above. Content: the user message and bot response. The Discord bot now remembers every user permanently across all sessions.
1,000 memory operations per month. Free forever. No credit card required.
Start free