Workflow: Youtube Discord Bot
Integrations: code, noOp, respondToWebhook, webhook

{"id": "OqfQNcgTqUK7UvZG", "meta": {"instanceId": "workflow-55890cca", "versionId": "1.0.0", "createdAt": "2025-09-29T07:07:43.454552", "updatedAt": "2025-09-29T07:07:43.454569", "owner": "n8n-user", "license": "MIT", "category": "automation", "status": "active", "priority": "high", "environment": "production"}, "name": "Youtube Discord Bot", "tags": ["automation", "n8n", "production-ready", "excellent", "optimized"], "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, "notes": "This webhook node performs automated tasks as part of the workflow."}, {"id": "5e70b649-5678-4718-98a7-302a4c784155", "name": "Simple Memory", "type": "n8n-nodes-base.noOp", "position": [460, 680], "parameters": {"sessionKey": "YOUR_CREDENTIAL_HERE", "sessionIdType": "customKey", "contextWindowLength": 50}, "typeVersion": 1.3, "notes": "This memoryBufferWindow node performs automated tasks as part of the workflow."}, {"id": "7cc849c3-3ed8-4fe2-a378-a213736a9aef", "name": "Google Gemini Chat Model", "type": "n8n-nodes-base.noOp", "position": [180, 700], "parameters": {"options": {}, "modelName": "models/gemini-2.0-flash"}, "credentials": {"googlePalmApi": {"id": "clmB8ZYJMHaHmnsu", "name": "Stardawn#1"}}, "typeVersion": 1, "notes": "This lmChatGoogleGemini node performs automated tasks as part of the workflow."}, {"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, "notes": "This respondToWebhook node performs automated tasks as part of the workflow."}, {"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\u00fcr den Discord-Bot\nreturn {\n  json: {\n    answer: antwort\n  }\n};"}, "typeVersion": 2, "notes": "This code node performs automated tasks as part of the workflow."}, {"id": "9ff7ad77-88ce-467e-91b1-4fc2d13636fd", "name": "Discord AI Response Agent", "type": "n8n-nodes-base.noOp", "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, "notes": "This agent node performs automated tasks as part of the workflow."}], "active": true, "pinData": {}, "settings": {"executionOrder": "v1", "saveManualExecutions": true, "callerPolicy": "workflowsFromSameOwner", "errorWorkflow": null, "timezone": "UTC", "executionTimeout": 3600, "maxExecutions": 1000, "retryOnFail": true, "retryCount": 3, "retryDelay": 1000}, "versionId": "429e2ccd-5a58-4287-9ad8-314efbbecb8f", "connections": {"39832819-a14b-445c-bf5c-0bd93613b1ca": {"main": [[{"node": "error-handler-39832819-a14b-445c-bf5c-0bd93613b1ca", "type": "main", "index": 0}], [{"node": "error-handler-39832819-a14b-445c-bf5c-0bd93613b1ca-900dbe91", "type": "main", "index": 0}], [{"node": "error-handler-39832819-a14b-445c-bf5c-0bd93613b1ca-594f075e", "type": "main", "index": 0}], [{"node": "error-handler-39832819-a14b-445c-bf5c-0bd93613b1ca-e2d19c28", "type": "main", "index": 0}], [{"node": "error-handler-39832819-a14b-445c-bf5c-0bd93613b1ca-593aa77c", "type": "main", "index": 0}], [{"node": "error-handler-39832819-a14b-445c-bf5c-0bd93613b1ca-5d08ae18", "type": "main", "index": 0}], [{"node": "error-handler-39832819-a14b-445c-bf5c-0bd93613b1ca-30c73d9c", "type": "main", "index": 0}], [{"node": "error-handler-39832819-a14b-445c-bf5c-0bd93613b1ca-6fc855e2", "type": "main", "index": 0}], [{"node": "error-handler-39832819-a14b-445c-bf5c-0bd93613b1ca-1bc29178", "type": "main", "index": 0}]]}, "4b664f21-6f1c-4894-9196-beecbd865d3e": {"main": [[{"node": "error-handler-4b664f21-6f1c-4894-9196-beecbd865d3e", "type": "main", "index": 0}], [{"node": "error-handler-4b664f21-6f1c-4894-9196-beecbd865d3e-18da2a8e", "type": "main", "index": 0}], [{"node": "error-handler-4b664f21-6f1c-4894-9196-beecbd865d3e-af94a718", "type": "main", "index": 0}], [{"node": "error-handler-4b664f21-6f1c-4894-9196-beecbd865d3e-23a95b09", "type": "main", "index": 0}], [{"node": "error-handler-4b664f21-6f1c-4894-9196-beecbd865d3e-6d9f3e99", "type": "main", "index": 0}], [{"node": "error-handler-4b664f21-6f1c-4894-9196-beecbd865d3e-04c9ebcc", "type": "main", "index": 0}], [{"node": "error-handler-4b664f21-6f1c-4894-9196-beecbd865d3e-0501af08", "type": "main", "index": 0}], [{"node": "error-handler-4b664f21-6f1c-4894-9196-beecbd865d3e-e0e2417b", "type": "main", "index": 0}], [{"node": "error-handler-4b664f21-6f1c-4894-9196-beecbd865d3e-d4174aaf", "type": "main", "index": 0}]]}, "7cc849c3-3ed8-4fe2-a378-a213736a9aef": {"main": [[{"node": "error-handler-7cc849c3-3ed8-4fe2-a378-a213736a9aef-55f2a1ab", "type": "main", "index": 0}]]}}, "description": "Automated workflow: Youtube Discord Bot. This workflow processes data and performs automated tasks.", "notes": "Excellent quality workflow: Youtube Discord Bot. This workflow has been optimized for production use with comprehensive error handling, security, and documentation."}