Discord Agent
Configured with Agent, Chat Trigger, Discord Tool, Execute Workflow Trigger, and additional nodes. Review the connections and setup before adapting this template.
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.
| Node | Category | Type | Operation |
|---|---|---|---|
| When Executed by Another Workflow | Trigger | Execute Workflow Trigger | See node parameters |
| AI Agent | AI & models | Agent | See node parameters |
| OpenAI Chat Model | AI & models | OpenAI Chat Model | See node parameters |
| When chat message received | Trigger | Chat Trigger | See node parameters |
| Window Buffer Memory | Data store | Memory Buffer Window | See node parameters |
| Discord | Messaging | Discord Tool | message |
| Discord1 | Messaging | Discord Tool | getAll |
| Discord2 | Messaging | Discord Tool | message |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8n’s credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- 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
discordBotApiopenAiApi
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
- Workflow Execution Trigger
- 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:
- Receive message
- AI Agent processing
- Generate response
- 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