{
  "name": "Home Renovation ( 2 Peompts  )",
  "nodes": [
    {
      "parameters": {},
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -208,
        0
      ],
      "id": "6ea4488e-5fb7-47f9-8923-aba4c3c3f10f",
      "name": "Sticky Note"
    },
    {
      "parameters": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        -112,
        -160
      ],
      "id": "cbd3bd87-c43d-4233-bdfa-06edb6d79a28",
      "name": "When clicking ‘Execute workflow’"
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "1JatCrhArl-l1OO_hbEQXc25Cp98x6_LDqoDpxgUfl2A",
          "mode": "list",
          "cachedResultName": "home renovation",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1JatCrhArl-l1OO_hbEQXc25Cp98x6_LDqoDpxgUfl2A/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Feuille 1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1JatCrhArl-l1OO_hbEQXc25Cp98x6_LDqoDpxgUfl2A/edit#gid=0"
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "status",
              "lookupValue": "Pending"
            }
          ]
        },
        "options": {
          "returnFirstMatch": true
        }
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        -4272,
        -624
      ],
      "id": "ecf5db3e-5786-4d7d-89ae-683e17d7e588",
      "name": "Get row(s) in sheet3",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "3htZGgGdPTbu8wPc",
          "name": "Google Sheets account 3"
        }
      }
    },
    {
      "parameters": {
        "amount": 1,
        "unit": "minutes"
      },
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        -3728,
        -624
      ],
      "id": "81c8a571-62b9-4278-979c-3c98911ee2b7",
      "name": "Wait",
      "webhookId": "1ab306de-e853-4ae0-b27b-3e55ff79bf90"
    },
    {
      "parameters": {
        "url": "https://api.kie.ai/api/v1/veo/record-info",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBearerAuth",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "taskId",
              "value": "={{ $json.data.taskId }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        -1088,
        -752
      ],
      "id": "bc6c08b6-b775-4fb8-92f6-985b3606e33f",
      "name": "Get Video",
      "credentials": {
        "httpHeaderAuth": {
          "id": "CDeFK2WIvRVLfaQC",
          "name": "Header Auth account"
        },
        "httpBearerAuth": {
          "id": "9fx2R9QmIy1BAB7j",
          "name": "Bearer Auth account"
        }
      }
    },
    {
      "parameters": {
        "amount": 40
      },
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        -1360,
        -752
      ],
      "id": "74ffdfbe-def4-4f79-97bb-fb1f9e6cea26",
      "name": "Wait1",
      "webhookId": "cd8c3265-3cd2-47a5-95e1-5adfe922aca1"
    },
    {
      "parameters": {
        "rules": {
          "values": [
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "leftValue": "={{ $json.data.successFlag }}",
                    "rightValue": 1,
                    "operator": {
                      "type": "number",
                      "operation": "equals"
                    },
                    "id": "6dba6d5c-e7fe-4b8b-9b04-41ca6dc51501"
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "success"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "id": "c979df3e-cac9-4bbf-a037-f28d7444bb3a",
                    "leftValue": "={{ $json.data.successFlag }}",
                    "rightValue": 0,
                    "operator": {
                      "type": "number",
                      "operation": "equals"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "Generating"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "id": "3b99fbbb-9bec-43f5-851b-47df2c984123",
                    "leftValue": "={{ $json.data.successFlag }}",
                    "rightValue": 2,
                    "operator": {
                      "type": "number",
                      "operation": "equals"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "Failed"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "id": "c52b6e99-1055-4838-8c46-9ddd624b59ed",
                    "leftValue": "={{ $json.data.successFlag }}",
                    "rightValue": 3,
                    "operator": {
                      "type": "number",
                      "operation": "equals"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "Generation Failed"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.switch",
      "typeVersion": 3.4,
      "position": [
        -864,
        -784
      ],
      "id": "1e54b80b-2346-42d5-955c-a83007b4d171",
      "name": "Switch"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.kie.ai/api/v1/jobs/createTask",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBearerAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"model\": \"nano-banana-pro\",\n  \"callBackUrl\": \"https://your-domain.com/api/callback\",\n  \"input\": {\n    \"prompt\": \"A wide-angle ultra-photorealistic abandoned {{ $json['Room Type'] }} . Low-angle camera near the floor looking up at the walls and ceiling, eye-level around 2ft, 24mm lens look. Long-term abandonment with cracked walls peeling paint water stains mold patches broken plaster and exposed concrete. Dusty floor with debris rubble fallen ceiling fragments and scattered old materials. Rusted fixtures damaged electrical outlets hanging wires and broken switches. Empty space with no modern furniture, no people, no animals. Large windows partially broken allowing soft natural daylight to enter creating striking light rays and shadows. Cinematic architectural realism high detail neutral moody color grading sharp focus interior decay photography. Vertical composition optimized for mobile Reels immersive dramatic perspective.\",\n    \"aspect_ratio\": \"9:16\",\n    \"resolution\": \"1K\",\n    \"output_format\": \"png\"\n  }\n}",
        "options": {
          "batching": {
            "batch": {
              "batchSize": 1
            }
          }
        }
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        -3952,
        -624
      ],
      "id": "5b25c5a8-a053-445a-8929-c68915d9429b",
      "name": "Generate IMG 1",
      "credentials": {
        "httpHeaderAuth": {
          "id": "CDeFK2WIvRVLfaQC",
          "name": "Header Auth account"
        },
        "httpBearerAuth": {
          "id": "9fx2R9QmIy1BAB7j",
          "name": "Bearer Auth account"
        }
      }
    },
    {
      "parameters": {
        "url": "=https://api.kie.ai/api/v1/jobs/recordInfo?taskId={{ $('Generate IMG 1').item.json.data.taskId }}",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBearerAuth",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        -3520,
        -624
      ],
      "id": "93eb4f51-e79c-4897-b3b3-f034f91c31d5",
      "name": "Get IMG URL 1",
      "credentials": {
        "httpHeaderAuth": {
          "id": "CDeFK2WIvRVLfaQC",
          "name": "Header Auth account"
        },
        "httpBearerAuth": {
          "id": "9fx2R9QmIy1BAB7j",
          "name": "Bearer Auth account"
        }
      }
    },
    {
      "parameters": {
        "amount": 1,
        "unit": "minutes"
      },
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        -3712,
        -272
      ],
      "id": "65d9f165-f2c6-49d3-8587-3ee84c4e49c9",
      "name": "Wait2",
      "webhookId": "1ab306de-e853-4ae0-b27b-3e55ff79bf90"
    },
    {
      "parameters": {
        "content": "## First IMG",
        "height": 336,
        "width": 1280
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -4016,
        -752
      ],
      "id": "31d1a96b-bc98-4bd2-a9c0-54b11a8c5e58",
      "name": "Sticky Note1"
    },
    {
      "parameters": {
        "content": "## mid stage renovation\n",
        "height": 336,
        "width": 1280
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -4016,
        -384
      ],
      "id": "c850f75b-ffd9-47b7-9d08-4486c870d951",
      "name": "Sticky Note2"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.kie.ai/api/v1/veo/generate",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBearerAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"prompt\": \"Timelapse of this {{ $('Get row(s) in sheet3').item.json['Room Type'] }} renovation. Multiple workers cleaning up debris, removing damaged materials, fixing walls and floors, washing surfaces, and preparing for painting. Show fast-motion construction actively transforming the abandoned, decayed room into a fully renovated, clean, empty space as in the final frame. Realistic construction site progression, natural daylight, photorealistic style, high detail, smooth cinematic transitions.\",\n  \"imageUrls\": [\n   \"{{ $('Update row in sheet').item.json['Second Frame'].trim() }}\",\n    \"{{ $('Update row in sheet').item.json['Third Frame'].trim() }}\"\n  ],\n  \"model\": \"veo3_fast\",\n  \"aspect_ratio\": \"9:16\",\n  \"seeds\": 12345,\n  \"generationType\": \"REFERENCE_2_VIDEO\",\n  \"audio\": false\n}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        -1648,
        -304
      ],
      "id": "10fbc83f-e316-43a9-8967-5d0807d515b6",
      "name": "Generate Video1",
      "credentials": {
        "httpHeaderAuth": {
          "id": "CDeFK2WIvRVLfaQC",
          "name": "Header Auth account"
        },
        "httpBearerAuth": {
          "id": "9fx2R9QmIy1BAB7j",
          "name": "Bearer Auth account"
        }
      }
    },
    {
      "parameters": {
        "url": "https://api.kie.ai/api/v1/veo/record-info",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBearerAuth",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "taskId",
              "value": "={{ $('Generate Video1').item.json.data.taskId }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        -1104,
        -304
      ],
      "id": "44b42771-6c84-46b7-a220-06bb7ff4f20c",
      "name": "Get Video1",
      "credentials": {
        "httpHeaderAuth": {
          "id": "CDeFK2WIvRVLfaQC",
          "name": "Header Auth account"
        },
        "httpBearerAuth": {
          "id": "9fx2R9QmIy1BAB7j",
          "name": "Bearer Auth account"
        }
      }
    },
    {
      "parameters": {
        "amount": 40
      },
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        -1376,
        -304
      ],
      "id": "776613ba-9795-44a5-8c31-46d767f723c0",
      "name": "Wait3",
      "webhookId": "cd8c3265-3cd2-47a5-95e1-5adfe922aca1"
    },
    {
      "parameters": {
        "rules": {
          "values": [
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "leftValue": "={{ $json.data.successFlag }}",
                    "rightValue": 1,
                    "operator": {
                      "type": "number",
                      "operation": "equals"
                    },
                    "id": "6dba6d5c-e7fe-4b8b-9b04-41ca6dc51501"
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "success"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "id": "c979df3e-cac9-4bbf-a037-f28d7444bb3a",
                    "leftValue": "={{ $json.data.successFlag }}",
                    "rightValue": 0,
                    "operator": {
                      "type": "number",
                      "operation": "equals"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "Generating"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "id": "3b99fbbb-9bec-43f5-851b-47df2c984123",
                    "leftValue": "={{ $json.data.successFlag }}",
                    "rightValue": 2,
                    "operator": {
                      "type": "number",
                      "operation": "equals"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "Failed"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "id": "c52b6e99-1055-4838-8c46-9ddd624b59ed",
                    "leftValue": "={{ $json.data.successFlag }}",
                    "rightValue": 3,
                    "operator": {
                      "type": "number",
                      "operation": "equals"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "Generation Failed"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.switch",
      "typeVersion": 3.4,
      "position": [
        -816,
        -336
      ],
      "id": "1c27e5a7-fa99-4550-a9e4-02868a5a9360",
      "name": "Switch1"
    },
    {
      "parameters": {
        "amount": 1,
        "unit": "minutes"
      },
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        -3712,
        128
      ],
      "id": "49ef843d-6834-4c0f-87ae-4dc49d1f5c7d",
      "name": "Wait4",
      "webhookId": "1ab306de-e853-4ae0-b27b-3e55ff79bf90"
    },
    {
      "parameters": {
        "content": "## After renovation\n",
        "height": 336,
        "width": 1280
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -4016,
        16
      ],
      "id": "81faa4ef-07b7-45ec-beba-83901a053b29",
      "name": "Sticky Note3"
    },
    {
      "parameters": {
        "url": "=https://api.kie.ai/api/v1/jobs/recordInfo?taskId={{ $('Generate IMG 2').item.json.data.taskId }}",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBearerAuth",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        -3504,
        -272
      ],
      "id": "24c67960-d65f-4ea9-bad8-77dd9e01f37c",
      "name": "Get IMG URL 2",
      "credentials": {
        "httpHeaderAuth": {
          "id": "CDeFK2WIvRVLfaQC",
          "name": "Header Auth account"
        },
        "httpBearerAuth": {
          "id": "9fx2R9QmIy1BAB7j",
          "name": "Bearer Auth account"
        }
      }
    },
    {
      "parameters": {
        "url": "=https://api.kie.ai/api/v1/jobs/recordInfo?taskId={{ $('Generate IMG 3').item.json.data.taskId }}",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBearerAuth",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        -3504,
        128
      ],
      "id": "ed1695f1-1526-4b4e-bd9f-9b39dbc8f6e8",
      "name": "Get IMG URL 3",
      "credentials": {
        "httpHeaderAuth": {
          "id": "CDeFK2WIvRVLfaQC",
          "name": "Header Auth account"
        },
        "httpBearerAuth": {
          "id": "9fx2R9QmIy1BAB7j",
          "name": "Bearer Auth account"
        }
      }
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.kie.ai/api/v1/jobs/createTask",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBearerAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"model\": \"nano-banana-pro\",\n  \"callBackUrl\": \"https://your-domain.com/api/callback\",\n  \"input\": {\n    \"prompt\": \"Use the attached image as reference. Transform this {{ $('Get row(s) in sheet3').item.json['Room Type'] }}  into a fully furnished space. Add modern, stylish furniture, rugs, lighting fixtures, and decor while keeping the room layout the same. Maintain natural daylight, realistic shadows, photorealistic style, high detail, cozy and inviting atmosphere\",\n    \"aspect_ratio\": \"9:16\",\n    \"resolution\": \"1K\",\n    \"output_format\": \"png\",\n    \"image_input\": [\n    \"{{ JSON.parse($('Get IMG URL 2').item.json.data.resultJson).resultUrls[0] }}\"\n  ]\n  }\n}",
        "options": {
          "batching": {
            "batch": {
              "batchSize": 1
            }
          }
        }
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        -3936,
        128
      ],
      "id": "5123e5e5-3486-4790-942e-a9aa9ab83bdb",
      "name": "Generate IMG 3",
      "credentials": {
        "httpHeaderAuth": {
          "id": "CDeFK2WIvRVLfaQC",
          "name": "Header Auth account"
        },
        "httpBearerAuth": {
          "id": "9fx2R9QmIy1BAB7j",
          "name": "Bearer Auth account"
        }
      }
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.kie.ai/api/v1/jobs/createTask",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBearerAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"model\": \"nano-banana-pro\",\n  \"callBackUrl\": \"https://your-domain.com/api/callback\",\n  \"input\": {\n    \"prompt\": \"Use the attached image as reference. Transform this {{ $('Get row(s) in sheet3').item.json['Room Type'] }} into a clean, empty space. Remove all garbage, debris, and furniture. Show fully renovated walls and floors, freshly painted surfaces, neat and spotless. Maintain natural daylight and realistic lighting, photorealistic style, high detail.\",\n    \"aspect_ratio\": \"9:16\",\n    \"resolution\": \"1K\",\n    \"output_format\": \"png\",\n    \"image_input\": [\n    \"{{ JSON.parse($json.data.resultJson).resultUrls[0] }}\"\n  ]\n  }\n}",
        "options": {
          "batching": {
            "batch": {
              "batchSize": 1
            }
          }
        }
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        -3936,
        -272
      ],
      "id": "8ccf3ab1-9fe8-4d4b-b3ff-295d45f9d690",
      "name": "Generate IMG 2",
      "credentials": {
        "httpHeaderAuth": {
          "id": "CDeFK2WIvRVLfaQC",
          "name": "Header Auth account"
        },
        "httpBearerAuth": {
          "id": "9fx2R9QmIy1BAB7j",
          "name": "Bearer Auth account"
        }
      }
    },
    {
      "parameters": {
        "rules": {
          "values": [
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "leftValue": "={{ $json.data.state }}",
                    "rightValue": "success",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    },
                    "id": "6dba6d5c-e7fe-4b8b-9b04-41ca6dc51501"
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "success"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "id": "c979df3e-cac9-4bbf-a037-f28d7444bb3a",
                    "leftValue": "={{ $json.data.state }}",
                    "rightValue": "waiting",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "waiting"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "id": "3b99fbbb-9bec-43f5-851b-47df2c984123",
                    "leftValue": "={{ $json.data.state }}",
                    "rightValue": "generating",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "generating"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "id": "c52b6e99-1055-4838-8c46-9ddd624b59ed",
                    "leftValue": "={{ $json.data.state }}",
                    "rightValue": "fail",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "fail"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.switch",
      "typeVersion": 3.4,
      "position": [
        -3184,
        -656
      ],
      "id": "50640493-7fa1-4953-99a2-aa96309fd823",
      "name": "Switch2"
    },
    {
      "parameters": {
        "rules": {
          "values": [
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "leftValue": "={{ $json.data.state }}",
                    "rightValue": "success",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    },
                    "id": "6dba6d5c-e7fe-4b8b-9b04-41ca6dc51501"
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "success"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "id": "c979df3e-cac9-4bbf-a037-f28d7444bb3a",
                    "leftValue": "={{ $json.data.state }}",
                    "rightValue": "waiting",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "waiting"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "id": "3b99fbbb-9bec-43f5-851b-47df2c984123",
                    "leftValue": "={{ $json.data.state }}",
                    "rightValue": "generating",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "generating"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "id": "c52b6e99-1055-4838-8c46-9ddd624b59ed",
                    "leftValue": "={{ $json.data.state }}",
                    "rightValue": "fail",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "fail"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.switch",
      "typeVersion": 3.4,
      "position": [
        -3184,
        -304
      ],
      "id": "d3ef58fa-ddf6-4dc2-9958-e4710ebece3c",
      "name": "Switch3"
    },
    {
      "parameters": {
        "rules": {
          "values": [
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "leftValue": "={{ $json.data.state }}",
                    "rightValue": "success",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    },
                    "id": "6dba6d5c-e7fe-4b8b-9b04-41ca6dc51501"
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "success"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "id": "c979df3e-cac9-4bbf-a037-f28d7444bb3a",
                    "leftValue": "={{ $json.data.state }}",
                    "rightValue": "waiting",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "waiting"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "id": "3b99fbbb-9bec-43f5-851b-47df2c984123",
                    "leftValue": "={{ $json.data.state }}",
                    "rightValue": "generating",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "generating"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "id": "c52b6e99-1055-4838-8c46-9ddd624b59ed",
                    "leftValue": "={{ $json.data.state }}",
                    "rightValue": "fail",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "fail"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.switch",
      "typeVersion": 3.4,
      "position": [
        -3184,
        96
      ],
      "id": "0dbe69d9-aca0-409e-ba30-a1fc368ae9ae",
      "name": "Switch4"
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "17Bpqwif04rTLCNmEAfwsh_ARXNuWKUy2Js87pC-QxuI",
          "mode": "list",
          "cachedResultName": "home renovation",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/17Bpqwif04rTLCNmEAfwsh_ARXNuWKUy2Js87pC-QxuI/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Sheet1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/17Bpqwif04rTLCNmEAfwsh_ARXNuWKUy2Js87pC-QxuI/edit#gid=0"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "row_number": "={{ $('Get row(s) in sheet3').item.json.row_number }}"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "Room Type",
              "displayName": "Room Type",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "First Frame",
              "displayName": "First Frame",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Second Frame",
              "displayName": "Second Frame",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Third Frame",
              "displayName": "Third Frame",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Video_Fram_1",
              "displayName": "Video_Fram_1",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Video_Fram_2",
              "displayName": "Video_Fram_2",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Status",
              "displayName": "Status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        -2944,
        -576
      ],
      "id": "05593b4b-ea9d-492b-a6a5-013df85c0f19",
      "name": "Update status",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "3htZGgGdPTbu8wPc",
          "name": "Google Sheets account 3"
        }
      }
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "17Bpqwif04rTLCNmEAfwsh_ARXNuWKUy2Js87pC-QxuI",
          "mode": "list",
          "cachedResultName": "home renovation",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/17Bpqwif04rTLCNmEAfwsh_ARXNuWKUy2Js87pC-QxuI/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Sheet1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/17Bpqwif04rTLCNmEAfwsh_ARXNuWKUy2Js87pC-QxuI/edit#gid=0"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "row_number": "={{ $('Get row(s) in sheet3').item.json.row_number }}",
            "Second Frame": "Failed"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "Room Type",
              "displayName": "Room Type",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "First Frame",
              "displayName": "First Frame",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Second Frame",
              "displayName": "Second Frame",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Third Frame",
              "displayName": "Third Frame",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Video_Fram_1",
              "displayName": "Video_Fram_1",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Video_Fram_2",
              "displayName": "Video_Fram_2",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Status",
              "displayName": "Status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        -2944,
        -224
      ],
      "id": "f4624e08-31bb-4d9f-ac64-e92e467c9810",
      "name": "Update IMG 2",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "3htZGgGdPTbu8wPc",
          "name": "Google Sheets account 3"
        }
      }
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "1JpLSXeF1-5dnZHfCNktEFn_Uwbq6gYefSrm5HQ3yUJE",
          "mode": "list",
          "cachedResultName": "renovation",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1JpLSXeF1-5dnZHfCNktEFn_Uwbq6gYefSrm5HQ3yUJE/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Sheet1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1JpLSXeF1-5dnZHfCNktEFn_Uwbq6gYefSrm5HQ3yUJE/edit#gid=0"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "row_number": "={{ $('Get row(s) in sheet3').item.json.row_number }}",
            "Third Frame": "Failed"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "Room Type",
              "displayName": "Room Type",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "First Frame",
              "displayName": "First Frame",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Second Frame",
              "displayName": "Second Frame",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Third Frame",
              "displayName": "Third Frame",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Video_Fram_1",
              "displayName": "Video_Fram_1",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Video_Fram_2",
              "displayName": "Video_Fram_2",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Status",
              "displayName": "Status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        -2960,
        176
      ],
      "id": "fe227c94-dafc-474e-9e40-ddaf5cf9cd66",
      "name": "Update IMG 3",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "3htZGgGdPTbu8wPc",
          "name": "Google Sheets account 3"
        }
      }
    },
    {
      "parameters": {
        "content": "# Video Generation\n",
        "height": 80,
        "width": 1408,
        "color": 7
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -1728,
        -976
      ],
      "id": "1a961f6b-02fe-4cdf-9c3f-2a22819edf76",
      "name": "Sticky Note4"
    },
    {
      "parameters": {
        "content": "# Store Data",
        "height": 80,
        "width": 512,
        "color": 7
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -2560,
        -976
      ],
      "id": "5cff3ccc-141a-4709-a5d4-f9ca94ee2814",
      "name": "Sticky Note5"
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "17Bpqwif04rTLCNmEAfwsh_ARXNuWKUy2Js87pC-QxuI",
          "mode": "list",
          "cachedResultName": "home renovation",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/17Bpqwif04rTLCNmEAfwsh_ARXNuWKUy2Js87pC-QxuI/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Sheet1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/17Bpqwif04rTLCNmEAfwsh_ARXNuWKUy2Js87pC-QxuI/edit#gid=0"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "row_number": "={{ $('Get row(s) in sheet3').item.json.row_number }}",
            "Video_Fram_1": "={{ $('Get Video').item.json.data.paramJson }}\n\n\n{{JSON.parse($('Get Video').item.json.data.paramJson ).imageUrls[0]}"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "Room Type",
              "displayName": "Room Type",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "First Frame",
              "displayName": "First Frame",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Second Frame",
              "displayName": "Second Frame",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Third Frame",
              "displayName": "Third Frame",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Video_Fram_1",
              "displayName": "Video_Fram_1",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Video_Fram_2",
              "displayName": "Video_Fram_2",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Status",
              "displayName": "Status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        -560,
        -704
      ],
      "id": "2964964a-d2b7-452e-baa9-1188afaf4ecf",
      "name": "Update status1",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "3htZGgGdPTbu8wPc",
          "name": "Google Sheets account 3"
        }
      }
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "17Bpqwif04rTLCNmEAfwsh_ARXNuWKUy2Js87pC-QxuI",
          "mode": "list",
          "cachedResultName": "home renovation",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/17Bpqwif04rTLCNmEAfwsh_ARXNuWKUy2Js87pC-QxuI/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Sheet1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/17Bpqwif04rTLCNmEAfwsh_ARXNuWKUy2Js87pC-QxuI/edit#gid=0"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "row_number": "={{ $('Get row(s) in sheet3').item.json.row_number }}",
            "Video_Fram_2": "failed"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "Room Type",
              "displayName": "Room Type",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "First Frame",
              "displayName": "First Frame",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Second Frame",
              "displayName": "Second Frame",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Third Frame",
              "displayName": "Third Frame",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Video_Fram_1",
              "displayName": "Video_Fram_1",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Video_Fram_2",
              "displayName": "Video_Fram_2",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Status",
              "displayName": "Status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        -544,
        -256
      ],
      "id": "2aa8a369-778f-4785-9a92-1b46c25bb7f7",
      "name": "Update status2",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "3htZGgGdPTbu8wPc",
          "name": "Google Sheets account 3"
        }
      }
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "17Bpqwif04rTLCNmEAfwsh_ARXNuWKUy2Js87pC-QxuI",
          "mode": "list",
          "cachedResultName": "home renovation",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/17Bpqwif04rTLCNmEAfwsh_ARXNuWKUy2Js87pC-QxuI/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Sheet1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/17Bpqwif04rTLCNmEAfwsh_ARXNuWKUy2Js87pC-QxuI/edit#gid=0"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "row_number": "={{ $('Get row(s) in sheet3').item.json.row_number }}",
            "Video_Fram_1": "={{ $('Get Video').item.json.data.response.resultUrls[0] }}",
            "Video_Fram_2": "={{ $('Get Video1').item.json.data.response.resultUrls[0] }}",
            "Status": "video generated"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "Room Type",
              "displayName": "Room Type",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "First Frame",
              "displayName": "First Frame",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Second Frame",
              "displayName": "Second Frame",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Third Frame",
              "displayName": "Third Frame",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Video_Fram_1",
              "displayName": "Video_Fram_1",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Video_Fram_2",
              "displayName": "Video_Fram_2",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Status",
              "displayName": "Status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        -64,
        -352
      ],
      "id": "37c02528-5599-4672-99ca-1731df7abd9e",
      "name": "Update row in sheet2",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "3htZGgGdPTbu8wPc",
          "name": "Google Sheets account 3"
        }
      }
    },
    {
      "parameters": {
        "content": "## First Video",
        "height": 336,
        "width": 1392,
        "color": 5
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -1712,
        -832
      ],
      "id": "a3817047-c51b-4742-bad5-93d7d009c105",
      "name": "Sticky Note6"
    },
    {
      "parameters": {
        "content": "## Second Video",
        "height": 336,
        "width": 1392,
        "color": 5
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -1712,
        -432
      ],
      "id": "ab35d2ae-961a-4bf4-9da4-966d7ed23929",
      "name": "Sticky Note7"
    },
    {
      "parameters": {
        "content": "# update data",
        "height": 80,
        "width": 448,
        "color": 7
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -240,
        -976
      ],
      "id": "ec69f552-2181-4c96-b07d-067839428b28",
      "name": "Sticky Note9"
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "1JatCrhArl-l1OO_hbEQXc25Cp98x6_LDqoDpxgUfl2A",
          "mode": "list",
          "cachedResultName": "home renovation",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1JatCrhArl-l1OO_hbEQXc25Cp98x6_LDqoDpxgUfl2A/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Feuille 1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1JatCrhArl-l1OO_hbEQXc25Cp98x6_LDqoDpxgUfl2A/edit#gid=0"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "row_number": "={{ $('Get row(s) in sheet3').item.json.row_number }}",
            "Third Frame": "=\n\n{{JSON.parse($('Get IMG URL 3').item.json.data.resultJson ).resultUrls[0]}}",
            "Second Frame": "=\n\n\n\n\n\n{{JSON.parse( $('Get IMG URL 1').item.json.data.resultJson).resultUrls[0]}}",
            "First Frame": "={{JSON.parse( $('Get IMG URL 3').item.json.data.resultJson).resultUrls[0]}}"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "Room Type",
              "displayName": "Room Type",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "First Frame",
              "displayName": "First Frame",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Second Frame",
              "displayName": "Second Frame",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Third Frame",
              "displayName": "Third Frame",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Video_fram_1",
              "displayName": "Video_fram_1",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": " Video_Fram_2",
              "displayName": " Video_Fram_2",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "status",
              "displayName": "status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        -2288,
        -496
      ],
      "id": "ab91a721-e485-4b0e-9828-c89d485dd956",
      "name": "Update row in sheet",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "3htZGgGdPTbu8wPc",
          "name": "Google Sheets account 3"
        }
      }
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.kie.ai/api/v1/veo/generate",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBearerAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"prompt\": \"Timelapse of this {{ $('Get row(s) in sheet3').item.json['Room Type'] }} renovation. Multiple workers cleaning up debris, removing damaged materials, fixing walls and floors, washing surfaces, and preparing for painting. Show fast-motion construction actively transforming the abandoned, decayed room into a fully renovated, clean, empty space as in the final frame. Realistic construction site progression, natural daylight, photorealistic style, high detail, smooth cinematic transitions.\",\n  \"imageUrls\": [\n    \"{{ $json['First Frame'].trim() }}\",\n    \"{{ $json['Second Frame'].trim() }}\"\n  ],\n  \"model\": \"veo3_fast\",\n  \"aspect_ratio\": \"9:16\",\n  \"seeds\": 12345,\n  \"generationType\": \"REFERENCE_2_VIDEO\",\n  \"audio\": false\n}\n\n\n\n",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        -1648,
        -752
      ],
      "id": "e698a525-a2a4-4094-b303-ec120e3d670a",
      "name": "Generate Video",
      "credentials": {
        "httpHeaderAuth": {
          "id": "CDeFK2WIvRVLfaQC",
          "name": "Header Auth account"
        },
        "httpBearerAuth": {
          "id": "9fx2R9QmIy1BAB7j",
          "name": "Bearer Auth account"
        }
      }
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "hours",
              "hoursInterval": 5
            }
          ]
        }
      },
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.3,
      "position": [
        -4544,
        -624
      ],
      "id": "1174a298-629f-4fc9-8146-4fecac4b820a",
      "name": "Schedule Trigger"
    },
    {
      "parameters": {
        "content": "# Image Generation\n",
        "height": 80,
        "width": 1616,
        "color": 7
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -4336,
        -976
      ],
      "id": "dd0cddd9-a93f-4400-8ec0-68adc1a35ee8",
      "name": "Sticky Note8"
    }
  ],
  "pinData": {},
  "connections": {
    "Get row(s) in sheet3": {
      "main": [
        [
          {
            "node": "Generate IMG 1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "Get IMG URL 1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Video": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait1": {
      "main": [
        [
          {
            "node": "Get Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "Generate Video1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update status1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate IMG 1": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get IMG URL 1": {
      "main": [
        [
          {
            "node": "Switch2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait2": {
      "main": [
        [
          {
            "node": "Get IMG URL 2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Video1": {
      "main": [
        [
          {
            "node": "Wait3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Video1": {
      "main": [
        [
          {
            "node": "Switch1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait3": {
      "main": [
        [
          {
            "node": "Get Video1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch1": {
      "main": [
        [
          {
            "node": "Update row in sheet2",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait3",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait3",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update status2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait4": {
      "main": [
        [
          {
            "node": "Get IMG URL 3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get IMG URL 2": {
      "main": [
        [
          {
            "node": "Switch3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get IMG URL 3": {
      "main": [
        [
          {
            "node": "Switch4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate IMG 3": {
      "main": [
        [
          {
            "node": "Wait4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate IMG 2": {
      "main": [
        [
          {
            "node": "Wait2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch2": {
      "main": [
        [
          {
            "node": "Generate IMG 2",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch3": {
      "main": [
        [
          {
            "node": "Generate IMG 3",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait2",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait2",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update IMG 2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch4": {
      "main": [
        [
          {
            "node": "Update row in sheet",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait4",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait4",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update IMG 3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update row in sheet": {
      "main": [
        [
          {
            "node": "Generate Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Video": {
      "main": [
        [
          {
            "node": "Wait1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get row(s) in sheet3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "c80b4289-9ede-4463-b846-d1104d255ccd",
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "88d56ba5afff95b66078eea7b1e27554328edf5ab84e9e11c875ee8a25821090"
  },
  "id": "41aDqGE2gPYZieRA",
  "tags": []
}