{
  "name": " Grok Imagine Video Chatbot 🤖📺: Generate & Modify Videos via Natural Language",
  "nodes": [
    {
      "id": "ba54eff9-e92e-4bbb-9487-73fd13f384db",
      "name": "Run text to video",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        -3280,
        624
      ]
    },
    {
      "id": "bb88a4fc-215d-4d28-8b46-bdd6db97f76c",
      "name": "Run Text-to-Video1",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        -2720,
        304
      ]
    },
    {
      "id": "5716d4c0-cf48-44e7-aa41-a8f668d7a185",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -4496,
        304
      ]
    },
    {
      "id": "083b54f7-8d3b-440e-809a-d0a64cd848f3",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -3488,
        624
      ]
    },
    {
      "id": "02cbdab9-f32d-4e04-b0cb-d4bf9bd8d98c",
      "name": "Get status",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1600,
        -112
      ]
    },
    {
      "id": "5723a7de-52bd-40b8-9692-ea188f4312c5",
      "name": "Completed?",
      "type": "n8n-nodes-base.if",
      "position": [
        -1424,
        -112
      ]
    },
    {
      "id": "da9b4f37-ed5c-4e94-8242-c34751ca668f",
      "name": "Switch1",
      "type": "n8n-nodes-base.switch",
      "position": [
        -2432,
        288
      ]
    },
    {
      "id": "59fdba38-33c8-451a-ac9d-a4d986c3ee8a",
      "name": "Get status1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1600,
        304
      ]
    },
    {
      "id": "4cd40c66-748b-485b-9f6d-f4bbf1610c11",
      "name": "Completed?1",
      "type": "n8n-nodes-base.if",
      "position": [
        -1424,
        304
      ]
    },
    {
      "id": "0cc3bc9c-5150-458f-acd9-58b04d09820b",
      "name": "Run image to video",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        -2960,
        624
      ]
    },
    {
      "id": "70025752-cbec-4bee-bb1d-0b5e328e7c1b",
      "name": "Get status2",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1584,
        752
      ]
    },
    {
      "id": "cb6c1872-736f-4d46-a062-cfb6289a1284",
      "name": "Completed?2",
      "type": "n8n-nodes-base.if",
      "position": [
        -1408,
        752
      ]
    },
    {
      "id": "111488a8-5ac7-41a0-b231-cdac9cb48b6f",
      "name": "Run video to video",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        -3120,
        624
      ]
    },
    {
      "id": "bc2cbbe5-f7e3-43f4-a777-2695069f8217",
      "name": "Grok 4.1 Fast",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        -3808,
        624
      ]
    },
    {
      "id": "86d25d12-6abb-4eef-a9e3-3eee1132fee2",
      "name": "Binary?",
      "type": "n8n-nodes-base.if",
      "position": [
        -4224,
        304
      ]
    },
    {
      "id": "ebd63c05-9d9b-4571-a269-fbc6de3155aa",
      "name": "Set Image Url",
      "type": "n8n-nodes-base.set",
      "position": [
        -3696,
        48
      ]
    },
    {
      "id": "08403634-766b-4c09-afc5-3688306cd64f",
      "name": "Grok Imagine Video Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -3456,
        336
      ]
    },
    {
      "id": "988cada7-4d7d-40a0-80b9-962d6729fc2b",
      "name": "Edit Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -2016,
        304
      ]
    },
    {
      "id": "b3459925-be5a-4d4c-bcc8-a0a87696a789",
      "name": "Text to Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -2016,
        -112
      ]
    },
    {
      "id": "03a95ffe-64eb-4659-a3a9-9279a575c2c3",
      "name": "Image to Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -2000,
        752
      ]
    },
    {
      "id": "b9970019-b726-48db-9a17-ffa43ca17764",
      "name": "Get final text to video url",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1184,
        -128
      ]
    },
    {
      "id": "4ad2492e-2f54-4d37-a665-82952dc8de69",
      "name": "Get final edit video url",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1184,
        288
      ]
    },
    {
      "id": "247b8f1d-ace8-46f9-a123-47dccf31821a",
      "name": "Get final image to video url",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1168,
        736
      ]
    },
    {
      "id": "e8b47893-fb52-4fad-bfac-39abdabef9b0",
      "name": "Wait 10 sec.",
      "type": "n8n-nodes-base.wait",
      "position": [
        -1792,
        -112
      ]
    },
    {
      "id": "7ca3ea8f-a049-4f91-ae53-8be5477f0a64",
      "name": "Wait 10 sec.1",
      "type": "n8n-nodes-base.wait",
      "position": [
        -1792,
        304
      ]
    },
    {
      "id": "154293e4-4c71-4ee6-a845-22d4ba9d9406",
      "name": "Wait 10 sec.2",
      "type": "n8n-nodes-base.wait",
      "position": [
        -1776,
        752
      ]
    },
    {
      "id": "2b98a620-b597-4874-90ed-be3f0f707a09",
      "name": "Upload image",
      "type": "n8n-nodes-base.ftp",
      "position": [
        -3904,
        48
      ]
    },
    {
      "id": "f1b91c51-161e-46a1-bdb3-69f064f9b847",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -4048,
        -80
      ],
      "parameters": {
        "width": 544,
        "height": 304,
        "content": "## STEP 1 - Upload image to server\n"
      }
    },
    {
      "id": "89612284-994e-4e55-b60c-0b0093a2cbd2",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3600,
        256
      ],
      "parameters": {
        "width": 544,
        "height": 304,
        "content": "## STEP 2- Orchestrator Agents\n"
      }
    },
    {
      "id": "5c5f0b68-abfd-4b41-be0c-d5b4f0461b62",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2080,
        -208
      ],
      "parameters": {
        "width": 1184,
        "height": 352,
        "content": "## STEP 3 - Grok Imagine Video (Text to video)\n"
      }
    },
    {
      "id": "8f620051-fe95-4956-a56a-4d1d003952eb",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2080,
        192
      ],
      "parameters": {
        "width": 1184,
        "height": 384,
        "content": "## STEP 4 - Grok Imagine Video (Edit video)\n"
      }
    },
    {
      "id": "a2e7a082-1b07-4218-8ab1-26331501a4ba",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2080,
        624
      ],
      "parameters": {
        "width": 1184,
        "height": 384,
        "content": "## STEP 5 - Grok Imagine Video (Image to Video)\n\n"
      }
    },
    {
      "id": "05553deb-079c-4619-95e2-60c96c1e207e",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -4496,
        -656
      ],
      "parameters": {
        "width": 1184,
        "height": 480,
        "content": "## Grok Imagine Video Chatbot: Generate & Modify Videos via Natural Language\nThe **Video Grok Agent** is an AI-powered video generation and editing workflow that uses **Grok 4.1 Fast** (via OpenRouter"
      }
    },
    {
      "id": "12fb719a-dd5f-4213-a8a5-786df66c42c4",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3280,
        -912
      ],
      "parameters": {
        "width": 736,
        "height": 736,
        "content": "## MY NEW YOUTUBE CHANNEL\n👉 [Subscribe to my new **YouTube channel**](https://youtube.com/@n3witalia). Here I’ll share videos and Shorts with practical tutorials and **FREE templates for n8n**.\n\n[![im"
      }
    }
  ],
  "connections": {
    "Binary?": {
      "main": [
        [
          {
            "node": "Upload image",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Grok Imagine Video Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch1": {
      "main": [
        [
          {
            "node": "Text to Video",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Edit Video",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Image to Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Completed?": {
      "main": [
        [
          {
            "node": "Get final text to video url",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 10 sec.",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Video": {
      "main": [
        [
          {
            "node": "Wait 10 sec.1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get status": {
      "main": [
        [
          {
            "node": "Completed?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Completed?1": {
      "main": [
        [
          {
            "node": "Get final edit video url",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 10 sec.1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Completed?2": {
      "main": [
        [
          {
            "node": "Get final image to video url",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 10 sec.2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get status1": {
      "main": [
        [
          {
            "node": "Completed?1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get status2": {
      "main": [
        [
          {
            "node": "Completed?2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload image": {
      "main": [
        [
          {
            "node": "Set Image Url",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 10 sec.": {
      "main": [
        [
          {
            "node": "Get status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Grok 4.1 Fast": {
      "ai_languageModel": [
        [
          {
            "node": "Grok Imagine Video Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Set Image Url": {
      "main": [
        [
          {
            "node": "Grok Imagine Video Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "Grok Imagine Video Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Text to Video": {
      "main": [
        [
          {
            "node": "Wait 10 sec.",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 10 sec.1": {
      "main": [
        [
          {
            "node": "Get status1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 10 sec.2": {
      "main": [
        [
          {
            "node": "Get status2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Image to Video": {
      "main": [
        [
          {
            "node": "Wait 10 sec.2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Run text to video": {
      "ai_tool": [
        [
          {
            "node": "Grok Imagine Video Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Run Text-to-Video1": {
      "main": [
        [
          {
            "node": "Switch1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Run image to video": {
      "ai_tool": [
        [
          {
            "node": "Grok Imagine Video Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Run video to video": {
      "ai_tool": [
        [
          {
            "node": "Grok Imagine Video Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Grok Imagine Video Agent": {
      "main": [
        []
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "Binary?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}