{
  "name": "Create an AI-powered Discord assistant with GPT-4o for multi-channel messaging",
  "nodes": [
    {
      "id": "b0f78e4d-e6f9-496c-a9d1-f2ec17612770",
      "name": "When Executed by Another Workflow",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        80,
        60
      ]
    },
    {
      "id": "3e185fb3-0b5f-4ba6-b382-c332cefa727e",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        380,
        120
      ]
    },
    {
      "id": "1aa1b4df-71af-4b85-9a6e-b371a2349598",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        380,
        280
      ]
    },
    {
      "id": "d6f59c6e-3bc0-4e85-8b89-b1a480db5317",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        80,
        240
      ]
    },
    {
      "id": "f0aa9420-0207-4f6b-a659-ef89104e4925",
      "name": "Window Buffer Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        540,
        280
      ]
    },
    {
      "id": "6b77b8f1-8fd2-4b0b-8993-3567d03b8b9b",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        780,
        320
      ],
      "parameters": {
        "width": 460,
        "height": 260,
        "content": "## Discord Management Tools"
      }
    },
    {
      "id": "8947bfd3-88ed-48e5-a07f-c012cc3202c6",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        340,
        40
      ],
      "parameters": {
        "width": 360,
        "height": 380,
        "content": "## Main Discord Manager Agent"
      }
    },
    {
      "id": "7fb0e4b2-5e66-4b3a-a976-926a4427f3c5",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": 260,
        "height": 400,
        "content": "## Trigger Automation "
      }
    },
    {
      "id": "d100828e-6877-427d-ab8c-8486970b17e6",
      "name": "Discord",
      "type": "n8n-nodes-base.discordTool",
      "position": [
        960,
        420
      ]
    },
    {
      "id": "d6dc1210-4049-4fa6-9896-67e8353db922",
      "name": "Discord1",
      "type": "n8n-nodes-base.discordTool",
      "position": [
        1080,
        420
      ]
    },
    {
      "id": "1908e48f-51a7-4d42-a543-622a28c22136",
      "name": "Discord2",
      "type": "n8n-nodes-base.discordTool",
      "position": [
        820,
        420
      ]
    },
    {
      "id": "557189d6-d5f3-4059-b349-9c3a9b642083",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1000,
        -1300
      ],
      "parameters": {
        "width": 1340,
        "height": 1220,
        "content": "# N8N Discord Workflow Setup Guide\n\n## Prerequisites\n- N8N account\n- Discord bot\n- OpenAI API key\n- Discord server access\n\n## 1. Discord Bot Creation\n### Steps\n- Open Discord Developer Portal\n- Create"
      }
    },
    {
      "id": "9b554c72-cb38-43d8-abcf-1bf48ee4fcec",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        420,
        -1200
      ],
      "parameters": {
        "width": 1200,
        "height": 880,
        "content": "## Workflow Operation Modes\n### Mode 1: Workflow Trigger\n- Execute from another workflow\n- Input: Task/message string\n- Use cases:\n  - Automated messaging\n  - Scheduled updates\n  - External event trig"
      }
    }
  ],
  "connections": {
    "Discord": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Discord1": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Discord2": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Window Buffer Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}