Automatisation de scénarios de vidéos courtes YouTube

Intermédiaire

Ceci est unContent Creation, Multimodal AIworkflow d'automatisation du domainecontenant 11 nœuds.Utilise principalement des nœuds comme Set, Telegram, Supadata, TelegramTrigger, ChainLlm. Utiliser Gemini AI et Telegram pour créer des scénarios de vidéos courtes YouTube à partir de liens vidéo

Prérequis
  • Token Bot Telegram
  • Clé API Google Gemini
Aperçu du workflow
Visualisation des connexions entre les nœuds, avec support du zoom et du déplacement
Exporter le workflow
Copiez la configuration JSON suivante dans n8n pour importer et utiliser ce workflow
{
  "id": "0b3sNR7VKXCSn2Fq",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "YT script automation",
  "tags": [],
  "nodes": [
    {
      "id": "fc5a9462-5e0c-4425-9e24-bf7794da0974",
      "name": "Envoyer le Résumé",
      "type": "n8n-nodes-base.telegram",
      "position": [
        980,
        400
      ],
      "parameters": {
        "text": "={{ $json.output.title }}\n\n{{ $json.output.script }}",
        "chatId": "={{ $('Input URL').item.json.message.chat.id }}",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "credentials": {
        "telegramApi": {
          "id": "hL07rM7CcHcgYZre",
          "name": "youtube_script_maker_bot"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "be08404f-7005-46dc-bda0-9fa3bcd638f9",
      "name": "URL d'Entrée",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        0,
        400
      ],
      "parameters": {
        "updates": [
          "message"
        ],
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "hL07rM7CcHcgYZre",
          "name": "youtube_script_maker_bot"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "9a74e5e6-e063-4c2d-aeeb-f627a1c8a878",
      "name": "Make Transcrire",
      "type": "n8n-nodes-supadata.supadata",
      "position": [
        160,
        400
      ],
      "parameters": {
        "videoId": "={{ $json.message.text }}",
        "operation": "getTranscript"
      },
      "credentials": {
        "supadataApi": {
          "id": "3CjkrDlWjpILdztV",
          "name": "Supadata account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "1fc965aa-ed57-48b5-8185-1e163a9dd7b2",
      "name": "Analyse",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        800,
        580
      ],
      "parameters": {
        "jsonSchemaExample": "{\n  \"title\": \"ここに動画のタイトルが入ります\",\n  \"script\": \"ここに動画の台本(全文)が入ります\"\n}"
      },
      "typeVersion": 1.2
    },
    {
      "id": "d7699f35-e66d-43ae-b0e7-5182cf89b6f0",
      "name": "Note Adhésive",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        320
      ],
      "parameters": {
        "color": 5,
        "width": 600,
        "height": 340,
        "content": "## Get Video Link and Transcribe Video"
      },
      "typeVersion": 1
    },
    {
      "id": "acd8d2c1-1949-4ac5-a788-69fe154d1fca",
      "name": "Note Adhésive1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        560,
        320
      ],
      "parameters": {
        "color": 5,
        "width": 620,
        "height": 420,
        "content": "## AI PARSING & Send Script"
      },
      "typeVersion": 1
    },
    {
      "id": "6630067d-5175-41f5-be71-833f27c43cb1",
      "name": "Note Adhésive2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        540,
        100
      ],
      "parameters": {
        "color": 7,
        "width": 640,
        "height": 200,
        "content": "## This Template is Free✨\n\n### Have any request, contact me [Here](https://x.com/taiki_16_k)"
      },
      "typeVersion": 1
    },
    {
      "id": "7c9fb068-f93d-4836-be6d-031a1a96cafc",
      "name": "Cartographie de Script",
      "type": "n8n-nodes-base.set",
      "position": [
        320,
        400
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "f523292a-168d-4f06-9d99-5d5969b1b09e",
              "name": "full_script",
              "type": "string",
              "value": "={{ $json.content.map(item => item.text).join('\\n') }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "c5c3e290-df5b-43b7-a2b8-1aaaf88b5a06",
      "name": "Google Gemini Modèle de Chat",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        620,
        580
      ],
      "parameters": {
        "options": {},
        "modelName": "models/gemini-2.5-pro"
      },
      "credentials": {
        "googlePalmApi": {
          "id": "Dc4myFSoHsGJrGZP",
          "name": "Google Gemini(PaLM) Api account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "522ed972-2fb6-4c39-b9d7-bf8c2aaa5399",
      "name": "Note Adhésive3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        100
      ],
      "parameters": {
        "width": 600,
        "height": 200,
        "content": "## Required API Keys:\n- **Supadata KEY**: Get your transcription API key [here](https://supadata.com/)\n\n### Setup Instructions:\n1. Send URL to your bot to start Transcribing"
      },
      "typeVersion": 1
    },
    {
      "id": "5e57ee04-c618-4afb-8bf8-f4ddfe13c04c",
      "name": "Créer le Script",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        620,
        400
      ],
      "parameters": {
        "text": "=#background information\n{{ $json.full_script }}",
        "batching": {},
        "messages": {
          "messageValues": [
            {
              "message": "=You are a professional scriptwriter for YouTube Shorts, specializing in trivia across various genres.\nBased on the background information from the YouTube transcript provided by the user, you will create the ultimate script to captivate viewers. Your expertise lies in crafting scripts that interestingly convey fascinating trivia hidden in science, nature, culture, and daily life. Please use an intelligent yet friendly narrative style.\n\n#Conditions\n\nThe content must be based on accurate information.\n\nStructure the script to introduce a lot of trivia at a good tempo, minimizing transitional words.\n\nSpeak intelligently in a casual tone.\n\nThe script should be approximately 170-200 words.\n\nThe opening sentence must be a shocking fact or a line that strongly stimulates the viewer's curiosity. Get straight to the point.\n\nDo not include narration or timestamps; generate only the pure script text.\n\nCreate the script based on the background information from the provided YouTube transcript.\n\nDo not use bold text.\n\nUse periods to break lines appropriately.\n\n#Output Format\ntitle:\nscript:"
            }
          ]
        },
        "promptType": "define",
        "hasOutputParser": true
      },
      "typeVersion": 1.7
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "b464a592-ac27-4c62-aaaf-11b0b970d895",
  "connections": {
    "1fc965aa-ed57-48b5-8185-1e163a9dd7b2": {
      "ai_outputParser": [
        [
          {
            "node": "5e57ee04-c618-4afb-8bf8-f4ddfe13c04c",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "be08404f-7005-46dc-bda0-9fa3bcd638f9": {
      "main": [
        [
          {
            "node": "9a74e5e6-e063-4c2d-aeeb-f627a1c8a878",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "5e57ee04-c618-4afb-8bf8-f4ddfe13c04c",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "fc5a9462-5e0c-4425-9e24-bf7794da0974": {
      "main": [
        []
      ]
    },
    "5e57ee04-c618-4afb-8bf8-f4ddfe13c04c": {
      "main": [
        [
          {
            "node": "fc5a9462-5e0c-4425-9e24-bf7794da0974",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "9a74e5e6-e063-4c2d-aeeb-f627a1c8a878": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "c5c3e290-df5b-43b7-a2b8-1aaaf88b5a06": {
      "ai_languageModel": [
        [
          {
            "node": "5e57ee04-c618-4afb-8bf8-f4ddfe13c04c",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}
Foire aux questions

Comment utiliser ce workflow ?

Copiez le code de configuration JSON ci-dessus, créez un nouveau workflow dans votre instance n8n et sélectionnez "Importer depuis le JSON", collez la configuration et modifiez les paramètres d'authentification selon vos besoins.

Dans quelles scénarios ce workflow est-il adapté ?

Intermédiaire - Création de contenu, IA Multimodale

Est-ce payant ?

Ce workflow est entièrement gratuit et peut être utilisé directement. Veuillez noter que les services tiers utilisés dans le workflow (comme l'API OpenAI) peuvent nécessiter un paiement de votre part.

Informations sur le workflow
Niveau de difficulté
Intermédiaire
Nombre de nœuds11
Catégorie2
Types de nœuds8
Description de la difficulté

Adapté aux utilisateurs expérimentés, avec des workflows de complexité moyenne contenant 6-15 nœuds

Liens externes
Voir sur n8n.io

Partager ce workflow

Catégories

Catégories: 34