Analyse vidéo

Intermédiaire

Ceci est unAI, Marketingworkflow d'automatisation du domainecontenant 15 nœuds.Utilise principalement des nœuds comme Set, GoogleDrive, HttpRequest, ScheduleTrigger, ChainLlm, combinant la technologie d'intelligence artificielle pour une automatisation intelligente. Génération automatisée d'insights vidéo basée sur l'IA à partir de Google Drive

Prérequis
  • Informations d'identification Google Drive API
  • Peut nécessiter les informations d'identification d'authentification de l'API cible
  • 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": "En63BLYn2fE6YxKh",
  "meta": {
    "instanceId": "57c71fe69aec521b7d0bd3751d2e0aaa08f8884418e122571610a23c9eb8a65c",
    "templateCredsSetupCompleted": true
  },
  "name": "Video_analysis",
  "tags": [],
  "nodes": [
    {
      "id": "5cf5eee1-1a5a-481b-b0a7-e6bc8e7a072a",
      "name": "Télécharger la vidéo depuis Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -80,
        -100
      ],
      "parameters": {
        "fileId": {
          "__rl": true,
          "mode": "list",
          "value": ""
        },
        "options": {},
        "operation": "download",
        "authentication": "oAuth2"
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "pIW55BNPyp4T9msu",
          "name": "Google Drive account 2"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "b46a5743-2ec9-48c8-9884-1cda4d021ec5",
      "name": "Vérifier l'état du fichier",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        360,
        -100
      ],
      "parameters": {
        "url": "https://generativelanguage.googleapis.com/v1beta/files/your_file_id",
        "options": {},
        "authentication": "predefinedCredentialType"
      },
      "typeVersion": 1
    },
    {
      "id": "957978bf-d401-4f5e-b15e-64c2a7d806e2",
      "name": "Analyser la vidéo",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        540,
        -100
      ],
      "parameters": {
        "url": "https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-pro:generateContent",
        "options": {},
        "requestMethod": "POST",
        "jsonParameters": true,
        "bodyParametersJson": "{\n  \"contents\": [\n    {\n      \"role\": \"user\",\n      \"parts\": [\n        {\n          \"fileData\": {\n            \"fileUri\": \"files/your_file_id\"\n          }\n        },\n        {\n          \"text\": \"Please analyze the video and provide a summary.\"\n        }\n      ]\n    }\n  ]\n}"
      },
      "typeVersion": 1
    },
    {
      "id": "78834072-6f1a-43e5-8d53-6f65b8ef31a3",
      "name": "Formater le résultat d'analyse",
      "type": "n8n-nodes-base.set",
      "position": [
        720,
        -100
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "acd2575c-2145-43d2-930a-0c95fdbf0035",
      "name": "Déclencheur planifié",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -260,
        -100
      ],
      "parameters": {
        "rule": {
          "interval": [
            {}
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "6f710275-eb3b-4d11-98d3-9191176960ef",
      "name": "Note adhésive - Assistance",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        940,
        -260
      ],
      "parameters": {
        "color": 4,
        "width": 340,
        "height": 620,
        "content": "=======================================\n            WORKFLOW ASSISTANCE\n=======================================\nFor any questions or support, please contact:\n    Yaron@nofluff.online\n\nExplore more tips and tutorials here:\n   - YouTube: https://www.youtube.com/@YaronBeen/videos\n   - LinkedIn: https://www.linkedin.com/in/yaronbeen/\n=======================================\n\nAuthor:\nYaron Been\n![Yaron Been](https://1.gravatar.com/avatar/a4e4dcaa1f76ff5266bbf80e8df86d22efda890474c68f7796e72fd82e3f2375?size=512&d=initials)"
      },
      "typeVersion": 1
    },
    {
      "id": "a322cc61-d934-489d-8984-7b7fbf19ed67",
      "name": "Chaîne LLM de base",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        60,
        -100
      ],
      "parameters": {
        "text": "Hi, could you please prepare the video below:\n",
        "promptType": "define"
      },
      "typeVersion": 1.5
    },
    {
      "id": "ea265edc-b687-4aae-ad2d-3f27be704afc",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        20,
        200
      ],
      "parameters": {
        "options": {}
      },
      "credentials": {
        "googlePalmApi": {
          "id": "cHiuNFEYYehlLyFW",
          "name": "Google Gemini(PaLM) Api account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "01975cf6-f26e-4d14-a595-59cce454b9a2",
      "name": "Note adhésive",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -300,
        -360
      ],
      "parameters": {
        "width": 560,
        "content": "This workflow automates the download, status check, and AI-based analysis of a video file from Google Drive using Gemini API."
      },
      "typeVersion": 1
    },
    {
      "id": "a5c33cfe-9dc1-4741-87b0-f564e8d8dc9d",
      "name": "Note adhésive1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -280,
        80
      ],
      "parameters": {
        "width": 150,
        "height": 80,
        "content": "Set execution interval (e.g., daily)"
      },
      "typeVersion": 1
    },
    {
      "id": "dbf28a97-1dac-4d20-af65-180c59dfa690",
      "name": "Note adhésive2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -100,
        80
      ],
      "parameters": {
        "width": 150,
        "height": 80,
        "content": "Pulls video using Google Drive node"
      },
      "typeVersion": 1
    },
    {
      "id": "81977563-018b-4b9b-b440-71f84abea87e",
      "name": "Note adhésive3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        120,
        60
      ],
      "parameters": {
        "width": 150,
        "height": 80,
        "content": "Prepares and passes input to Gemini"
      },
      "typeVersion": 1
    },
    {
      "id": "18a0147d-f9d1-4332-90a5-60346cbec9c2",
      "name": "Note adhésive4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        320,
        60
      ],
      "parameters": {
        "width": 150,
        "height": 80,
        "content": "Validates video is uploaded to Gemini endpoint"
      },
      "typeVersion": 1
    },
    {
      "id": "be07e477-aee6-4546-8930-907b1b41780a",
      "name": "Note adhésive5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        520,
        60
      ],
      "parameters": {
        "width": 150,
        "height": 80,
        "content": "Uses Gemini API to analyze video content"
      },
      "typeVersion": 1
    },
    {
      "id": "b082a61d-3f5b-4395-a095-d9177cdce954",
      "name": "Note adhésive6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        720,
        60
      ],
      "parameters": {
        "width": 150,
        "height": 80,
        "content": "Structures the summary output\n\n"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "948c65d2-fbc8-4204-860a-cda81b0b8eb2",
  "connections": {
    "957978bf-d401-4f5e-b15e-64c2a7d806e2": {
      "main": [
        [
          {
            "node": "78834072-6f1a-43e5-8d53-6f65b8ef31a3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "a322cc61-d934-489d-8984-7b7fbf19ed67": {
      "main": [
        [
          {
            "node": "b46a5743-2ec9-48c8-9884-1cda4d021ec5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "acd2575c-2145-43d2-930a-0c95fdbf0035": {
      "main": [
        [
          {
            "node": "5cf5eee1-1a5a-481b-b0a7-e6bc8e7a072a",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "b46a5743-2ec9-48c8-9884-1cda4d021ec5": {
      "main": [
        [
          {
            "node": "957978bf-d401-4f5e-b15e-64c2a7d806e2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ea265edc-b687-4aae-ad2d-3f27be704afc": {
      "ai_languageModel": [
        [
          {
            "node": "a322cc61-d934-489d-8984-7b7fbf19ed67",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "5cf5eee1-1a5a-481b-b0a7-e6bc8e7a072a": {
      "main": [
        [
          {
            "node": "a322cc61-d934-489d-8984-7b7fbf19ed67",
            "type": "main",
            "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 - Intelligence Artificielle, Marketing

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œuds15
Catégorie2
Types de nœuds7
Description de la difficulté

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

Auteur
Yaron Been

Yaron Been

@yaron-nofluff

Building AI Agents and Automations | Growth Marketer | Entrepreneur | Book Author & Podcast Host If you need any help with Automations, feel free to reach out via linkedin: https://www.linkedin.com/in/yaronbeen/ And check out my Youtube channel: https://www.youtube.com/@YaronBeen/videos

Liens externes
Voir sur n8n.io

Partager ce workflow

Catégories

Catégories: 34