← All N8N workflows
AI & researchAgentChat TriggerDiscord ToolExecute Workflow TriggerOpenAI Chat Model

Discord Agent

Configured with Agent, Chat Trigger, Discord Tool, Execute Workflow Trigger, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
TriggerWhen Executed byAnother WorkflowExecute Workflow TriggerAI & modelsAI AgentAgentAI & modelsOpenAI Chat ModelOpenAI Chat ModelTriggerWhen chat messagereceivedChat TriggerData storeWindow Buffer MemoryMemory Buffer WindowMessagingDiscordDiscord ToolMessagingDiscord1Discord ToolMessagingDiscord2Discord Tool

Node categories in this workflow

  • Trigger
  • AI & models
  • Data store
  • Messaging

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
When Executed by Another WorkflowTriggerExecute Workflow TriggerSee node parameters
AI AgentAI & modelsAgentSee node parameters
OpenAI Chat ModelAI & modelsOpenAI Chat ModelSee node parameters
When chat message receivedTriggerChat TriggerSee node parameters
Window Buffer MemoryData storeMemory Buffer WindowSee node parameters
DiscordMessagingDiscord Toolmessage
Discord1MessagingDiscord ToolgetAll
Discord2MessagingDiscord Toolmessage

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • discordBotApi
  • openAiApi

Workflow notes

N8N Discord Workflow Setup Guide

N8N Discord Workflow Setup Guide

Prerequisites

  • N8N account
  • Discord bot
  • OpenAI API key
  • Discord server access

1. Discord Bot Creation

Steps

  • Open Discord Developer Portal
  • Create new application
  • Generate bot token
  • Add bot to server
  • Set permissions:
    • Send Messages
    • Read Message History
    • View Channels

Required Info

  • Guild (Server) ID
  • Channel IDs:
    • AI Tools Channel
    • Free Guides Channel

2. Credential Configuration

Discord Bot Credentials

  • Go to N8N Credentials section
  • Create 'Discord Bot API' credential
  • Enter bot token
  • Name credential (e.g., 'Motion Assistant')

OpenAI Credentials

  • Create 'OpenAI API' credential
  • Enter API key
  • Name credential (e.g., 'OpenAI Account')

3. Workflow Setup

AI Agent Configuration

  • Customize system message
  • Define character limits
  • Specify output format

Trigger Types

  1. Workflow Execution Trigger
  2. Direct Chat Message Trigger
Workflow Operation Modes

Workflow Operation Modes

Mode 1: Workflow Trigger

  • Execute from another workflow
  • Input: Task/message string
  • Use cases:
    • Automated messaging
    • Scheduled updates
    • External event triggers

Mode 2: Chat Trigger

  • Webhook-based activation
  • Process flow:
    1. Receive message
    2. AI Agent processing
    3. Generate response
    4. Maintain context

Customization Points

  • Modify AI system message
  • Adjust character limits
  • Configure channel interactions
  • Select OpenAI model

Potential Enhancements

  • Error handling
  • Advanced conversation memory
  • Additional channel tools
  • Message filtering

Troubleshooting

  • Verify bot permissions
  • Check API credentials
  • Validate character limits
  • Confirm channel IDs
Discord Agent

Discord Agent

Purpose and structure

This folder contains the Discord Agent workflow. Its executable nodes use agent, chatTrigger, discordTool, executeWorkflowTrigger, lmChatOpenAi, memoryBufferWindow. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

When Executed by Another Workflow, When chat message received

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Discordtool/1242_Discordtool_Stickynote_Automation_Triggered.json MIT; preserve source notices.

Canvas section labels

These name areas of the original canvas; they do not include explanatory instructions.

  • Discord Management Tools
  • Main Discord Manager Agent
  • Trigger Automation

More in AI & research