Traductor y generador de resúmenes de videos de YouTube → Publicación automática en Slack
Este es unautomatización que contiene 10 nodos.Utiliza principalmente nodos como Code, Slack, HttpRequest, OpenAi, RssFeedReadTrigger. Traducción automática de resúmenes de videos de YouTube a japonés y publicación en Slack con GPT-4o-mini
- •Bot Token de Slack o URL de Webhook
- •Pueden requerirse credenciales de autenticación para la API de destino
- •Clave de API de OpenAI
Nodos utilizados (10)
Categoría
{
"id": "k0Kebprms2GkvaiL",
"meta": {
"instanceId": "ad59d09d8e026d0e92690243618d86d51b0293b236148394ca356eae1d1ea59b",
"templateCredsSetupCompleted": true
},
"name": "YouTube Video Translator & Summarizer → Slack Auto-Post",
"tags": [],
"nodes": [
{
"id": "12d7d3b4-f93a-4ba5-9aa4-eab50c190415",
"name": "Enviar Resumen a Slack (#youtube-summary)",
"type": "n8n-nodes-base.slack",
"position": [
1376,
-80
],
"webhookId": "4512a04c-2298-482d-b27a-6b88486b8650",
"parameters": {
"text": "=🎥 *New YouTube Video Summary*\n\n🕒 Posted: {{ $('YouTube RSS Trigger (Channel 1)').item.json.pubDate }}\n🧩 Title: {{ $('YouTube RSS Trigger (Channel 1)').item.json.title }}\n🔗 Link: {{ $('YouTube RSS Trigger (Channel 1)').item.json.link }}\n📝 Summary: {{$json[\"message\"][\"content\"]}}\n",
"select": "channel",
"channelId": {
"__rl": true,
"mode": "list",
"value": "C09LVUG4S5U",
"cachedResultName": "youtube-summary"
},
"otherOptions": {},
"authentication": "oAuth2"
},
"credentials": {
"slackOAuth2Api": {
"id": "8nlSlZuLK1ZboZkW",
"name": "Slack account"
}
},
"typeVersion": 2.3
},
{
"id": "80facbb9-3728-4c99-b9fd-8fbf9df3cd7d",
"name": "YouTube RSS Trigger (Canal 1)",
"type": "n8n-nodes-base.rssFeedReadTrigger",
"position": [
208,
-80
],
"parameters": {
"feedUrl": "https://www.youtube.com/feeds/videos.xml?channel_id=",
"pollTimes": {
"item": [
{
"mode": "everyX",
"value": 1
}
]
}
},
"typeVersion": 1
},
{
"id": "3908d543-a4e3-4c6e-a9cc-32b87b291c23",
"name": "Obtener Transcripción de YouTube vía RapidAPI",
"type": "n8n-nodes-base.httpRequest",
"position": [
512,
-80
],
"parameters": {
"url": "=https://youtube-transcript3.p.rapidapi.com/api/transcript?videoId={{$json[\"id\"].replace(\"yt:video:\", \"\")}}\n",
"options": {},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "x-rapidapi-key",
"value": "YOUR_RAPIDAPI_KEY_HERE"
},
{
"name": "x-rapidapi-host",
"value": "youtube-transcript3.p.rapidapi.com"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "b2534af6-112b-4545-80c9-e5396c7a901d",
"name": "Combinar Texto de Transcripción (Código)",
"type": "n8n-nodes-base.code",
"position": [
800,
-80
],
"parameters": {
"jsCode": "const rss = $item(0, 0).$node[\"YouTube RSS Trigger (Channel 1)\"].json;\nconst transcript = $json.transcript || [];\n\nreturn {\n json: {\n title: rss.title,\n link: rss.link,\n full_text: transcript.map(t => t.text).join(' '),\n },\n};"
},
"typeVersion": 2
},
{
"id": "6cbfe83d-a942-4ea9-adfd-7b1789ae97bf",
"name": "Generar Resumen en Japonés (OpenAI)",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
1040,
-80
],
"parameters": {
"modelId": {
"__rl": true,
"mode": "id",
"value": "gpt-4o-mini"
},
"options": {},
"messages": {
"values": [
{
"content": "=Summarize the following YouTube video transcript into **3 concise sentences in Japanese.**\n{{$json[\"full_text\"]}}\n"
}
]
}
},
"credentials": {
"openAiApi": {
"id": "xWUO0jq5mcmikNzw",
"name": "検証開発用1_OpenAI"
}
},
"typeVersion": 1.8
},
{
"id": "33628cdc-54fd-41a3-b4b9-06d65c205307",
"name": "Sticky: HTTP Info",
"type": "n8n-nodes-base.stickyNote",
"position": [
416,
-272
],
"parameters": {
"color": 5,
"width": 288,
"height": 400,
"content": "## Fetch Video Transcript\nUses the “youtube-transcript3” API (via RapidAPI) to retrieve subtitles\nfor the detected video. Works for both English and Japanese videos."
},
"typeVersion": 1
},
{
"id": "a589d990-f3bd-45b2-bfcf-d9be27ed54b2",
"name": "Sticky: Code Info",
"type": "n8n-nodes-base.stickyNote",
"position": [
720,
-272
],
"parameters": {
"color": 2,
"width": 272,
"height": 400,
"content": "## Merge Transcript Text\nThis Code node combines all the transcript segments\ninto a single clean block of text for easier processing."
},
"typeVersion": 1
},
{
"id": "5915165b-7d27-416b-b6e0-c17fa779d765",
"name": "Sticky: OpenAI Info",
"type": "n8n-nodes-base.stickyNote",
"position": [
1008,
-272
],
"parameters": {
"color": 4,
"width": 272,
"height": 400,
"content": "## Generate a 3-Line Summary (Japanese)\nYouTube Video Caption Summarizer to Slack"
},
"typeVersion": 1
},
{
"id": "ca6e6333-600a-42fb-894c-6e46f40ba485",
"name": "Sticky: Slack Info",
"type": "n8n-nodes-base.stickyNote",
"position": [
1296,
-272
],
"parameters": {
"color": 3,
"width": 256,
"height": 400,
"content": "## YouTube Video Caption Summarizer to Slack\nAutomatically posts the video title, link, and Japanese summary\nto the #youtube-summary Slack channel."
},
"typeVersion": 1
},
{
"id": "e88bb15f-d17d-431e-9475-bdb1a20b2228",
"name": "Sticky: HTTP Info1",
"type": "n8n-nodes-base.stickyNote",
"position": [
96,
-272
],
"parameters": {
"color": 6,
"width": 304,
"height": 400,
"content": "## Detect New YouTube Uploads\nThis node monitors the specified YouTube channel’s RSS feed.\nWhen a new video is uploaded, it automatically triggers the workflow."
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "6a06db3a-a283-4c0c-95ff-2231a94cedc9",
"connections": {
"b2534af6-112b-4545-80c9-e5396c7a901d": {
"main": [
[
{
"node": "6cbfe83d-a942-4ea9-adfd-7b1789ae97bf",
"type": "main",
"index": 0
}
]
]
},
"80facbb9-3728-4c99-b9fd-8fbf9df3cd7d": {
"main": [
[
{
"node": "3908d543-a4e3-4c6e-a9cc-32b87b291c23",
"type": "main",
"index": 0
}
]
]
},
"6cbfe83d-a942-4ea9-adfd-7b1789ae97bf": {
"main": [
[
{
"node": "12d7d3b4-f93a-4ba5-9aa4-eab50c190415",
"type": "main",
"index": 0
}
]
]
},
"3908d543-a4e3-4c6e-a9cc-32b87b291c23": {
"main": [
[
{
"node": "b2534af6-112b-4545-80c9-e5396c7a901d",
"type": "main",
"index": 0
}
]
]
}
}
}¿Cómo usar este flujo de trabajo?
Copie el código de configuración JSON de arriba, cree un nuevo flujo de trabajo en su instancia de n8n y seleccione "Importar desde JSON", pegue la configuración y luego modifique la configuración de credenciales según sea necesario.
¿En qué escenarios es adecuado este flujo de trabajo?
Intermedio
¿Es de pago?
Este flujo de trabajo es completamente gratuito, puede importarlo y usarlo directamente. Sin embargo, tenga en cuenta que los servicios de terceros utilizados en el flujo de trabajo (como la API de OpenAI) pueden requerir un pago por su cuenta.
Flujos de trabajo relacionados recomendados
Supira Inc.
@supiraCompartir este flujo de trabajo