ビデオ分析

中級

これはAI, Marketing分野の自動化ワークフローで、15個のノードを含みます。主にSet, GoogleDrive, HttpRequest, ScheduleTrigger, ChainLlmなどのノードを使用、AI技術を活用したスマート自動化を実現。 Google DriveからAI駆動の動画洞察を自動生成

前提条件
  • Google Drive API認証情報
  • ターゲットAPIの認証情報が必要な場合あり
  • Google Gemini API Key
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "id": "En63BLYn2fE6YxKh",
  "meta": {
    "instanceId": "57c71fe69aec521b7d0bd3751d2e0aaa08f8884418e122571610a23c9eb8a65c",
    "templateCredsSetupCompleted": true
  },
  "name": "Video_analysis",
  "tags": [],
  "nodes": [
    {
      "id": "5cf5eee1-1a5a-481b-b0a7-e6bc8e7a072a",
      "name": "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": "ファイルステータスを確認",
      "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": "ビデオを分析",
      "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": "分析結果をフォーマット",
      "type": "n8n-nodes-base.set",
      "position": [
        720,
        -100
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "acd2575c-2145-43d2-930a-0c95fdbf0035",
      "name": "スケジュールトリガー",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -260,
        -100
      ],
      "parameters": {
        "rule": {
          "interval": [
            {}
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "6f710275-eb3b-4d11-98d3-9191176960ef",
      "name": "付箋 - アシスタンス",
      "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": "基本LLMチェーン",
      "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 チャットモデル",
      "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": "付箋",
      "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": "付箋1",
      "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": "付箋2",
      "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": "付箋3",
      "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": "付箋4",
      "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": "付箋5",
      "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": "付箋6",
      "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
          }
        ]
      ]
    }
  }
}
よくある質問

このワークフローの使い方は?

上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。

このワークフローはどんな場面に適していますか?

中級 - 人工知能, マーケティング

有料ですか?

このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。

ワークフロー情報
難易度
中級
ノード数15
カテゴリー2
ノードタイプ7
難易度説明

経験者向け、6-15ノードの中程度の複雑さのワークフロー

作成者
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

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34