Automated Discord Chatbot for chat Interaction in channel using Gemini 2.0 Flash — n8n Workflow

Medium complexity🔗 Webhook6 nodes🏷️ Miscellaneous👁 1,010 viewsby JPres

Overview

A Discord bot that responds to mentions by sending messages to n8n workflows and returning the responses. Connects Discord conversations with custom automations, APIs, and AI services through n8n.

Full guide on: https://github.com/JimPresting/AI-Discord-Bot/blob/main/README.md

Discord Bot Summary

Overview The Discord bot listens for mentions, forwards questions to an n8n workflow, processes responses, and replies in Discord. This workflow is intended for all Discord users who want to offer A

Nodes used

CodeAI AgentSimple MemoryGoogle Gemini Chat Model

Workflow Preview

memorymodel
W
Webhook
Simple Memory
Google Gemini Chat Model
R
Respond to Webhook
correctNaming
Discord AI Response Agent
6 nodes5 edges

How it Works

  1. 1

    Trigger

    The workflow starts with a webhook trigger.

  2. 2

    Process

    Data flows through 6 nodes, connecting agent, code, lmchatgooglegemini.

  3. 3

    Output

    The workflow completes its automation and delivers the result to the configured destination.

Node Details (6)

CO

Code

code

#1
AI

AI Agent

n8n-nodes-langchain.agent

#2
SI

Simple Memory

n8n-nodes-langchain.memoryBufferWindow

#3
GO

Google Gemini Chat Model

n8n-nodes-langchain.lmChatGoogleGemini

#4

How to Import This Workflow

  1. 1Click Download JSON button on the right to save the workflow file.
  2. 2Open your n8n instance. Go to Workflows → New → Import from file.
  3. 3Select the downloaded automated-discord-chatbot-for-chat-interaction-in-channel-using-gemini-20-flash file and click Import.
  4. 4Set up credentials for each service node (API keys, OAuth, etc.).
  5. 5Click Test Workflow to verify everything works, then activate it.

Or paste directly in n8n → Import from JSON:

{ "name": "Automated Discord Chatbot for chat Interaction in channel using Gemini 2.0 Flash", "nodes": [...], ...}

Integrations

agentcodelmchatgooglegeminimemorybufferwindowrespondtowebhookwebhook

Get This Workflow

Download and import in one click

Download JSONView on n8n.io
Nodes6
Complexitymedium
Triggerwebhook
Views1,010

Created by

JPres

JPres

@stardawnai

Tags

agentcodelmchatgooglegeminimemorybufferwindowrespondtowebhookwebhook

New to n8n?

n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.

Get n8n Free →

Related Miscellaneous Workflows