{
  "name": "Build an employee training video knowledge base using the WayinVideo summaries API",
  "nodes": [
    {
      "id": "290281b9-00dd-4198-a7a4-2e03eef10e42",
      "name": "Main Sticky — Overview + Setup",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -704,
        1696
      ],
      "parameters": {
        "width": 400,
        "height": 748,
        "content": "## 📋 Training Video Knowledge Base Builder\n\n### How it works\nThis workflow turns any YouTube training video into a structured knowledge base entry — automatically. A team member fills out a simple for"
      }
    },
    {
      "id": "360a746b-0761-4198-8ebe-06d6529e1eb8",
      "name": "Section — User Input",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        1776
      ],
      "parameters": {
        "width": 260,
        "height": 120,
        "content": "## 📥 Section 1 — User Input\nTeam member submits the training video URL and department name via a simple web form. This triggers the entire workflow automatically."
      }
    },
    {
      "id": "3b49b359-1923-46f6-969c-34e0ba950bfd",
      "name": "Section — AI Video Processing",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        32,
        1776
      ],
      "parameters": {
        "width": 500,
        "height": 120,
        "content": "## 🤖 Section 2 — AI Video Processing\nVideo URL is sent to WayinVideo API to generate a summary. Workflow waits 30 seconds, then polls the API for the completed result."
      }
    },
    {
      "id": "afc36f1f-1067-40c6-977f-0ceed876a853",
      "name": "Section — Retry Check",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        640,
        1760
      ],
      "parameters": {
        "width": 272,
        "height": 136,
        "content": "## 🔁 Section 3 — Retry Check\nChecks if highlights are ready. If yes, saves to Sheet. If not, loops back and retries automatically."
      }
    },
    {
      "id": "059addef-d67c-4f4b-a0aa-5a0a44734fba",
      "name": "Warning — Infinite Retry Risk",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        2144
      ],
      "parameters": {
        "width": 608,
        "height": 172,
        "content": "## ⚠️ WARNING — Infinite Retry Risk\nThis node retries indefinitely if WayinVideo never returns highlights. For unsupported or very long videos, the loop may consume many executions. Add a counter or m"
      }
    },
    {
      "id": "59352db7-342b-4686-8189-8b7b6323fb3d",
      "name": "Section — Save to Google Sheet",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        976,
        1760
      ],
      "parameters": {
        "width": 280,
        "height": 120,
        "content": "## 💾 Section 4 — Save to Knowledge Base\nAppends a new row with video title, summary, highlights, tags, topic/department, and original URL into the shared Google Sheets knowledge base."
      }
    },
    {
      "id": "70b966f7-798c-4096-b5ef-34e359a95b87",
      "name": "2. WayinVideo — Submit Summary Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        32,
        1920
      ]
    },
    {
      "id": "a273ae03-b799-4af1-a8d8-c2857e0c3d25",
      "name": "3. Wait — 30 Seconds",
      "type": "n8n-nodes-base.wait",
      "position": [
        272,
        1920
      ]
    },
    {
      "id": "9a959a26-4272-4cb5-bdf3-1f9855c089a3",
      "name": "4. WayinVideo — Fetch Summary Result",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        512,
        1920
      ]
    },
    {
      "id": "b513daa0-212e-4ea4-830f-16c8cdd81748",
      "name": "5. Check — Highlights Ready?",
      "type": "n8n-nodes-base.if",
      "position": [
        720,
        1920
      ]
    },
    {
      "id": "fbcc3551-2649-465f-8a5d-701dc665b371",
      "name": "6. Save — Append Row to Google Sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        992,
        1904
      ]
    },
    {
      "id": "078817c7-9d1c-4aa1-89ba-ec2394a9abb0",
      "name": "1. Form — Video URL + Topic1",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -240,
        1920
      ]
    }
  ],
  "connections": {
    "3. Wait — 30 Seconds": {
      "main": [
        [
          {
            "node": "4. WayinVideo — Fetch Summary Result",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1. Form — Video URL + Topic1": {
      "main": [
        [
          {
            "node": "2. WayinVideo — Submit Summary Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "5. Check — Highlights Ready?": {
      "main": [
        [
          {
            "node": "6. Save — Append Row to Google Sheet",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "3. Wait — 30 Seconds",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "4. WayinVideo — Fetch Summary Result": {
      "main": [
        [
          {
            "node": "5. Check — Highlights Ready?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "2. WayinVideo — Submit Summary Request": {
      "main": [
        [
          {
            "node": "3. Wait — 30 Seconds",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}