AI Discord ボット - メンションおよびダイレクトメッセージに対する文脈認識対応

上級

これはSupport, AI, IT Ops分野の自動化ワークフローで、18個のノードを含みます。主にIf, Set, Discord, Webhook, DiscordToolなどのノードを使用、AI技術を活用したスマート自動化を実現。 コンテキスト認識型Discordボット:GPT-4oを使ったmentionやDMへの返信

前提条件
  • Discord Bot Token または Webhook
  • HTTP Webhookエンドポイント(n8nが自動生成)
  • OpenAI API Key
  • ターゲットAPIの認証情報が必要な場合あり
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "id": "h7STFu0NJCVsvlbc",
  "meta": {
    "instanceId": "ff93c7924b638fb6ca7815d8ed0b9e89bc1a4b863863649bb0ed513cdccf1946"
  },
  "name": "AI Discord Bot Respond to Mentions and DMs with Context Awareness",
  "tags": [],
  "nodes": [
    {
      "id": "b69efca3-f0b1-4b8d-8812-9bbc60d2c9c7",
      "name": "AIエージェント",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        520,
        500
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "c2461069-028e-4a6f-9670-c75e84f30d26",
      "name": "OpenAI チャットモデル",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        280,
        860
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "87dfab19-9acc-48af-b786-1c20106f8e23",
      "name": "シンプルメモリ",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        480,
        880
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "74407b9a-d9ae-434e-9eee-17b68b487c2e",
      "name": "エージェント用マッピングデータ",
      "type": "n8n-nodes-base.set",
      "position": [
        180,
        500
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "a2a7e4e9-084c-4bdf-80e0-5f909a53fe2d",
      "name": "ボットはDMまたは公開チャンネルで返信",
      "type": "n8n-nodes-base.if",
      "position": [
        900,
        500
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "d84d2f02-93b8-4459-82de-bff394ee7455",
      "name": "DMで返信",
      "type": "n8n-nodes-base.discord",
      "position": [
        1240,
        360
      ],
      "webhookId": "9ad5e961-607d-47ed-a461-2f89a90255e6",
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "ff8b9e70-35d1-44de-aba0-e624b468b95f",
      "name": "公開チャンネルで返信",
      "type": "n8n-nodes-base.discord",
      "position": [
        1240,
        640
      ],
      "webhookId": "9ad5e961-607d-47ed-a461-2f89a90255e6",
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "1abd9619-bd4c-493c-a90f-7db16b3cc72d",
      "name": "DM受信",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -80,
        260
      ],
      "webhookId": "7ee4637e-8a29-4084-9c44-fc017eb79db8",
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "40fdef9c-e568-4e75-a93e-e20cc9601835",
      "name": "公開メンション",
      "type": "n8n-nodes-discord-trigger.discordTrigger",
      "position": [
        -80,
        720
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "e1d15d1b-99cd-4b1d-8006-47af3b355143",
      "name": "付箋1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        440,
        140
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b3b58996-44f5-466e-aeaf-9a163e376e38",
      "name": "付箋3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -40,
        -100
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "583e5a8d-d7f5-4bc6-8d3c-8b47c3d96799",
      "name": "付箋9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -180,
        500
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "3f320db7-1109-4089-8bc9-3c26efe8cd46",
      "name": "付箋2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -180,
        40
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "7bb34978-a5db-4d2d-9853-f8dbbe584c8a",
      "name": "付箋5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        200,
        760
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "777c1988-3d18-454f-8310-3d647d0ff6ff",
      "name": "最後の公開メッセージを読み取り",
      "type": "n8n-nodes-base.discordTool",
      "position": [
        840,
        900
      ],
      "webhookId": "8dc45278-105e-440d-a71e-08d680a56a6b",
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "10859678-99e8-4ac8-aa05-aeddb25bc816",
      "name": "最後の非公開メッセージを読み取り",
      "type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
      "position": [
        1020,
        900
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "5d4bb3fb-b1be-4fcd-a5f3-fbe7cc4aa38f",
      "name": "付箋",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        760,
        740
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b09f12af-1a4f-45ba-9073-d38dc5e93ad1",
      "name": "付箋4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1120,
        200
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "b15c5cde-bce6-4fa2-8803-0f7dfe8cbb71",
  "connections": {
    "Think": {
      "ai_tool": [
        [
          {
            "node": "b69efca3-f0b1-4b8d-8812-9bbc60d2c9c7",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "b69efca3-f0b1-4b8d-8812-9bbc60d2c9c7": {
      "main": [
        [
          {
            "node": "a2a7e4e9-084c-4bdf-80e0-5f909a53fe2d",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1abd9619-bd4c-493c-a90f-7db16b3cc72d": {
      "main": [
        [
          {
            "node": "74407b9a-d9ae-434e-9eee-17b68b487c2e",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "87dfab19-9acc-48af-b786-1c20106f8e23": {
      "ai_memory": [
        [
          {
            "node": "b69efca3-f0b1-4b8d-8812-9bbc60d2c9c7",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "40fdef9c-e568-4e75-a93e-e20cc9601835": {
      "main": [
        [
          {
            "node": "74407b9a-d9ae-434e-9eee-17b68b487c2e",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "c2461069-028e-4a6f-9670-c75e84f30d26": {
      "ai_languageModel": [
        [
          {
            "node": "b69efca3-f0b1-4b8d-8812-9bbc60d2c9c7",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "777c1988-3d18-454f-8310-3d647d0ff6ff": {
      "ai_tool": [
        [
          {
            "node": "b69efca3-f0b1-4b8d-8812-9bbc60d2c9c7",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "74407b9a-d9ae-434e-9eee-17b68b487c2e": {
      "main": [
        [
          {
            "node": "b69efca3-f0b1-4b8d-8812-9bbc60d2c9c7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "10859678-99e8-4ac8-aa05-aeddb25bc816": {
      "ai_tool": [
        [
          {
            "node": "b69efca3-f0b1-4b8d-8812-9bbc60d2c9c7",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "a2a7e4e9-084c-4bdf-80e0-5f909a53fe2d": {
      "main": [
        [
          {
            "node": "d84d2f02-93b8-4459-82de-bff394ee7455",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "ff8b9e70-35d1-44de-aba0-e624b468b95f",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

このワークフローの使い方は?

上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。

このワークフローはどんな場面に適していますか?

上級 - サポート, 人工知能, IT運用

有料ですか?

このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。

ワークフロー情報
難易度
上級
ノード数18
カテゴリー3
ノードタイプ11
難易度説明

上級者向け、16ノード以上の複雑なワークフロー

作成者
Niten Musa

Niten Musa

@nitenmusa

Just like every business has its own processes, every business will have its own AI agents — I sell and teach that transition From France 🇫🇷 — Discipline, Humility, Benevolence

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34