YouTube Discord ボット
中級
これはBuilding Blocks, AI, Marketing分野の自動化ワークフローで、6個のノードを含みます。主にCode, Webhook, Agent, RespondToWebhook, LmChatGoogleGeminiなどのノードを使用、AI技術を活用したスマート自動化を実現。 Gemini 2.0 Flash を使用した自動 Discord チャンネルチャットインタラクションボット
前提条件
- •HTTP Webhookエンドポイント(n8nが自動生成)
- •Google Gemini API Key
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"id": "OqfQNcgTqUK7UvZG",
"meta": {
"instanceId": "5ce52989094be90be3b3bdd9ed9cee1d7ce1fcecaa598afaec4a50646d32e291",
"templateCredsSetupCompleted": true
},
"name": "Youtube Discord Bot",
"tags": [
{
"id": "5eZb3e5PJspoJjVN",
"name": "Discord",
"createdAt": "2025-02-22T09:31:58.972Z",
"updatedAt": "2025-02-22T09:31:58.972Z"
}
],
"nodes": [
{
"id": "39832819-a14b-445c-bf5c-0bd93613b1ca",
"name": "Webhook トリガー",
"type": "n8n-nodes-base.webhook",
"position": [
80,
440
],
"webhookId": "b0631bec-9ccc-4eb8-b143-d73609b213c7",
"parameters": {
"path": "b0631bec-9ccc-4eb8-b143-d73609b213c7",
"options": {},
"httpMethod": "POST",
"responseMode": "responseNode"
},
"typeVersion": 2
},
{
"id": "5e70b649-5678-4718-98a7-302a4c784155",
"name": "シンプルメモリ",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
460,
680
],
"parameters": {
"sessionKey": "={{ $json.body.userId }}",
"sessionIdType": "customKey",
"contextWindowLength": 50
},
"typeVersion": 1.3
},
{
"id": "7cc849c3-3ed8-4fe2-a378-a213736a9aef",
"name": "Google Gemini チャットモデル",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
180,
700
],
"parameters": {
"options": {},
"modelName": "models/gemini-2.0-flash"
},
"credentials": {
"googlePalmApi": {
"id": "clmB8ZYJMHaHmnsu",
"name": "Stardawn#1"
}
},
"typeVersion": 1
},
{
"id": "4b664f21-6f1c-4894-9196-beecbd865d3e",
"name": "Respond to Webhook トリガー",
"type": "n8n-nodes-base.respondToWebhook",
"position": [
880,
440
],
"parameters": {
"options": {},
"respondWith": "allIncomingItems"
},
"typeVersion": 1.1
},
{
"id": "c7c779d3-e324-4a3f-a5a1-5218ec61d856",
"name": "correctNaming",
"type": "n8n-nodes-base.code",
"position": [
680,
440
],
"parameters": {
"jsCode": "// Hole alle Items\nconst items = $input.all();\n\n// Nehme das erste Item (falls mehrere vorhanden sind)\nconst item = items[0];\n\n// Extrahiere den output\nconst antwort = item.json.output;\n\n// Formatiere die Antwort im richtigen Format für den Discord-Bot\nreturn {\n json: {\n answer: antwort\n }\n};"
},
"typeVersion": 2
},
{
"id": "9ff7ad77-88ce-467e-91b1-4fc2d13636fd",
"name": "Discord AI Response Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
300,
440
],
"parameters": {
"text": "=Username: {{ $json.body.userName }}\n\nQuestion/Prompt: {{ $json.body.question }}",
"options": {
"systemMessage": "You are a helpful assistant. You answer in the language you receive the question in. Interactions might be all over the place. If there is any questions regarding the Youtube Videos of the channel: Presting Podcasts, you have the transcript of the podcast videos as additional knowledge.\nAlways begin your answer with a @insertusername to mark the guy who asked the question. "
},
"promptType": "define"
},
"typeVersion": 1.8
}
],
"active": true,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "429e2ccd-5a58-4287-9ad8-314efbbecb8f",
"connections": {
"Webhook": {
"main": [
[
{
"node": "9ff7ad77-88ce-467e-91b1-4fc2d13636fd",
"type": "main",
"index": 0
}
]
]
},
"Simple Memory": {
"ai_memory": [
[
{
"node": "9ff7ad77-88ce-467e-91b1-4fc2d13636fd",
"type": "ai_memory",
"index": 0
}
]
]
},
"c7c779d3-e324-4a3f-a5a1-5218ec61d856": {
"main": [
[
{
"node": "Respond to Webhook",
"type": "main",
"index": 0
}
]
]
},
"Google Gemini Chat Model": {
"ai_languageModel": [
[
{
"node": "9ff7ad77-88ce-467e-91b1-4fc2d13636fd",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"9ff7ad77-88ce-467e-91b1-4fc2d13636fd": {
"main": [
[
{
"node": "c7c779d3-e324-4a3f-a5a1-5218ec61d856",
"type": "main",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
中級 - ビルディングブロック, 人工知能, マーケティング
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
YouTube オートメーション
YouTube ビデオの自動スケジュール設定と AI メタデータ生成 🎬
If
Set
Code
+
If
Set
Code
33 ノードJPres
人工知能
[テンプレート] AIペットショップ v8
AIペットショップアシスタント - GPT-4o、Googleカレンダー、WhatsApp/Instagram/Facebookを統合
If
N8n
Set
+
If
N8n
Set
244 ノードAmanda Benks
営業
テクノロジーレーダー
SQLデータベース、RAG、ルーティングエージェントを使用したAI駆動の技術雷達コンサルタント
If
Code
Cron
+
If
Code
Cron
53 ノードSean Lon
エンジニアリング
InstaTest
Instagramダイレクトメッセージ/受信トレイAIエージェント - ManychatとOpenAIの統合
Set
Webhook
Agent
+
Set
Webhook
Agent
11 ノードAlex Hi no code
人工知能
アダプティブ RAG
適応型RAG戦略:クエリ分類と検索(GeminiとQdrant)
Set
Switch
Summarize
+
Set
Switch
Summarize
39 ノードdmr
エンジニアリング
RAG 2.0 - アンサーアーキテクチャ
適応型RAG(Google GeminiとQdrant):文脈認識型クエリ応答
Set
Switch
Summarize
+
Set
Switch
Summarize
40 ノードNisa
ビルディングブロック