{
  "name": "My workflow 13",
  "nodes": [
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.openai.com/v1/audio/transcriptions",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "openAiApi",
        "sendBody": true,
        "contentType": "multipart-form-data",
        "bodyParameters": {
          "parameters": [
            {
              "name": "timestamp_granularities[]",
              "value": "word"
            },
            {
              "name": "model",
              "value": "whisper-1"
            },
            {
              "name": "response_format",
              "value": "verbose_json"
            },
            {
              "parameterType": "formBinaryData",
              "name": "file",
              "inputDataFieldName": "data-audio"
            }
          ]
        },
        "options": {}
      },
      "id": "c1c3ab96-eb39-4758-bf6a-c7a62e70294d",
      "name": "Audio Transcription",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -60,
        1120
      ],
      "typeVersion": 4.2
    },
    {
      "parameters": {
        "modelName": "models/gemini-2.0-flash",
        "options": {}
      },
      "id": "2b90ef15-84ec-4f44-83a1-1c35b3d661d1",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        340,
        860
      ],
      "typeVersion": 1
    },
    {
      "parameters": {
        "fieldToSplitOut": "output",
        "options": {}
      },
      "id": "71ba79c8-b527-4594-9e44-272f0329a0aa",
      "name": "Split Out1",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        720,
        460
      ],
      "typeVersion": 1
    },
    {
      "parameters": {
        "unit": "minutes"
      },
      "id": "dd188de6-1454-4f21-9e90-e088bc7a7c46",
      "name": "Wait1",
      "type": "n8n-nodes-base.wait",
      "position": [
        560,
        1120
      ],
      "webhookId": "3648a845-4cc5-4d4a-a820-38a4f1906086",
      "typeVersion": 1.1
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "da50dbe5-0d78-4315-a9c4-29a36a34bff5",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.data.status }}",
              "rightValue": "done"
            }
          ]
        },
        "options": {}
      },
      "id": "4c3e79f1-d27a-46bf-8917-7ee85e8f00e4",
      "name": "If1",
      "type": "n8n-nodes-base.if",
      "position": [
        1020,
        1120
      ],
      "typeVersion": 2.2
    },
    {
      "parameters": {
        "modelName": "models/gemini-2.0-flash-001",
        "options": {}
      },
      "id": "2d29225f-46fd-428d-8d66-19f63303b8df",
      "name": "Google Gemini Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1360,
        1380
      ],
      "typeVersion": 1
    },
    {
      "parameters": {
        "jsonSchemaExample": "{\n  \"title\": \"Who is the Most POWERFUL Man GLOBALLY? | PBD Podcast #pbdpodcast #power #exposed\"\n}"
      },
      "id": "8375ac62-113b-4f7a-8500-2a235dea9ca7",
      "name": "Structured Output Parser1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1660,
        1400
      ],
      "typeVersion": 1.2
    },
    {
      "parameters": {
        "jsCode": "// Access the transcription data from the previous node\nconst transcriptData = $input.first().json.word_details; // Adjust this based on your node's output structure\n\n// Check if the data exists and is an array\nif (!transcriptData || !Array.isArray(transcriptData)) {\n  throw new Error(\"Transcription data is not an array or is undefined. Check the previous node's output.\");\n}\n\n// Map the transcript data to match your previous format\nconst formattedTranscript = transcriptData.map((word, index) => {\n  return {\n    text: word.text,   // Adjust 'text' to match your data's property name (e.g., 'word' or 'text')\n    index: index,      // Position in the array\n    start: word.start, // Start time (adjust units if needed, e.g., / 1000 for seconds)\n    end: word.end      // End time (adjust units if needed)\n  };\n});\n\n// Convert the formatted transcript to a JSON string\nconst transcriptJson = JSON.stringify(formattedTranscript);\n\n// Return the result in n8n’s expected format\nreturn [{ json: { transcriptJson: transcriptJson } }];"
      },
      "id": "5ea9866c-9a38-4786-ac74-be5a756437dd",
      "name": "Structure Transcription",
      "type": "n8n-nodes-base.code",
      "position": [
        140,
        680
      ],
      "typeVersion": 2
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "You are given a transcript array where each entry is an object with the following keys:\n- **text**: a string containing the transcript text.\n- **index**: a number.\n- **start**: the starting second.\n- **end**: the ending second.\n\n**Objective:**  \nExtract and merge highlights from the transcript. Identify segments that have high informational value, emotional impact, or key takeaways. Merge adjacent entries if they form a coherent highlight, and remove filler words while preserving meaning.\n\n**Instructions:**\n1. Analyze the transcript and extract coherent highlight segments.\n2. Merge adjacent entries if they form a coherent highlight.\n3. Remove any unnecessary filler words while retaining the essential meaning.\n4. Ensure that the total duration of all highlight segments is no more than 600 seconds.\n5. Ensure that the duration of each highlight is at least 30 seconds and no more than 120 seconds.\n6. Ensure that the segments do not overlap in time.\n\nFor each highlight, output a JSON object with exactly these keys:\n- **transcript**: the text of the highlight segment.\n- **start_index**: the starting word index (using the original value).\n- **end_index**: the ending word index (using the original value).\n\n**CRUCIAL OUTPUT FORMAT REQUIREMENTS:**\n- **Output ONLY a plain JSON array.** The final output must start with `[` and end with `]` and include nothing else.\n- **Do not include any markdown formatting, triple backticks, wrapper objects (such as an \"output\" key), or any additional text.**\n- **Do not output any extra explanation or commentary.** Your entire response must consist solely of the JSON array.\n\nFor example, the expected output format is:\n[\n  {\n    \"transcript\": \"I like this\",\n    \"start_index\": 10,\n    \"end_index\": 13\n  },\n  {\n    \"transcript\": \"It would be\",\n    \"start_index\": 16,\n    \"end_index\": 19\n  }\n]\n\nRemember: Your final response must be exactly the JSON array as specified—nothing else. No markdown fences, no extra keys, no additional text, only the JSON array.",
        "hasOutputParser": true,
        "messages": {
          "messageValues": [
            {
              "type": "HumanMessagePromptTemplate",
              "message": "={{ $node[\"Structure Transcription\"].json[\"transcriptJson\"] }}"
            }
          ]
        }
      },
      "id": "df75a443-f9d1-46a8-b24b-e963db20f2a1",
      "name": "Podcast Best Moments Extraction",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        340,
        680
      ],
      "retryOnFail": true,
      "typeVersion": 1.5,
      "onError": "continueRegularOutput"
    },
    {
      "parameters": {
        "options": {}
      },
      "id": "fea1a8d2-593f-4805-a7af-a237eaec63e1",
      "name": "Loop Over Clips",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1020,
        460
      ],
      "typeVersion": 3
    },
    {
      "parameters": {
        "jsCode": "return $(\"Audio Transcription\").all().map(item => {\n  const words = item.json.words\n  const result = [];\n\n  for (let i = 0; i < words.length; i += 3) {\n    const chunk = words.slice(i, i + 3);\n    result.push({\n      words: chunk.map(word => word.word.charAt(0).toUpperCase() + word.word.slice(1)).join(' '),\n      start: chunk[0].start,\n      end: chunk[chunk.length - 1].end,\n    });\n  }\n\n  return {\n    json: {\n      chunks: result,\n    },\n  };\n});"
      },
      "id": "d5f661de-2771-4528-822a-617fb363cfc0",
      "name": "Structure Transcription 2",
      "type": "n8n-nodes-base.code",
      "position": [
        140,
        1120
      ],
      "typeVersion": 2
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.andynocode.com/api/function/video-generation/clip-video",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpQueryAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n    \"type\": \"clip-video\",\n    \"data\": {\n        \"clip_url\": \"{{ $('If5').item.json['download-url'] }}\",\n\"gameplay_url\": \"{{ $('If6').item.json['download-url'] }}\",\n    \"background_url\": \"{{ $('If5').item.json['download-url'] }}\",\n        \"transcripts\": {{ JSON.stringify($('Structure Transcription 2').item.json.chunks) }}\n    }\n}",
        "options": {}
      },
      "id": "5946f388-7e77-480b-9f0f-06a34a706789",
      "name": "Editing Clips",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        360,
        1120
      ],
      "typeVersion": 4.2,
      "alwaysOutputData": true
    },
    {
      "parameters": {
        "url": "=https://api.andynocode.com/api/function/video-generation/progress/{{ $json.data.id }}",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpQueryAuth",
        "options": {}
      },
      "id": "6e7923fc-c6c7-4a00-95e6-576e9fdf224c",
      "name": "Clip Ready?",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        820,
        1120
      ],
      "typeVersion": 4.2
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "bf605d69-8ae6-4632-bbd0-d7b1cbb4eed5",
              "name": "final-video-url",
              "type": "string",
              "value": "=https://api.andynocode.com{{ $json.data.url }}"
            }
          ]
        },
        "options": {}
      },
      "id": "9d552889-d003-4d05-9643-6f44f67e1a40",
      "name": "Structure Links",
      "type": "n8n-nodes-base.set",
      "position": [
        1260,
        1120
      ],
      "typeVersion": 3.4
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "Analyze the following video transcript and generate a compelling TikTok title (under 60 characters, attention-grabbing) and captions (concise, engaging, highlights key moments/hooks).\nFocus on clarity, emotional appeal, and curiosity. Avoid generic phrases. Title must align with the transcript's core message or most viral moment. Output JSON format only.\n\nExample Output:\n\n```json```\n{\n  \"title\": \"Who is the Most POWERFUL Man GLOBALLY? | PBD Podcast #pbdpodcast #power #exposed\"\n}\n```json```\n   ",
        "hasOutputParser": true,
        "messages": {
          "messageValues": [
            {
              "type": "HumanMessagePromptTemplate",
              "message": "={{ $('Audio Transcription').last().json.text }}"
            }
          ]
        }
      },
      "id": "a14cb30b-3bb2-4783-8be6-1d6704f62d78",
      "name": "Generate Title",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1420,
        1120
      ],
      "typeVersion": 1.5
    },
    {
      "parameters": {
        "url": "={{ $('Structure Links').item.json['final-video-url'] }}",
        "options": {
          "response": {
            "response": {
              "responseFormat": "file",
              "outputPropertyName": "final-video"
            }
          }
        }
      },
      "id": "566ad3ee-b445-44e5-8ca9-42d79dd5ba7d",
      "name": "Download Final Clip",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1800,
        1120
      ],
      "typeVersion": 4.2
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.upload-post.com/api/upload",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "contentType": "multipart-form-data",
        "bodyParameters": {
          "parameters": [
            {
              "name": "title",
              "value": "={{ $json.output.title }}"
            },
            {
              "name": "user",
              "value": "your_username"
            },
            {
              "name": "platform[]",
              "value": "tiktok"
            },
            {
              "parameterType": "formBinaryData",
              "name": "video",
              "inputDataFieldName": "final-video"
            }
          ]
        },
        "options": {}
      },
      "id": "b46df1d7-2c68-4e94-81ab-30e108b4cbc9",
      "name": "Post To TikTok",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2040,
        1120
      ],
      "typeVersion": 4.2
    },
    {
      "parameters": {
        "unit": "minutes"
      },
      "id": "65696485-dba4-4822-aa38-b5607e475f47",
      "name": "Posting Interval",
      "type": "n8n-nodes-base.wait",
      "position": [
        2240,
        1120
      ],
      "webhookId": "9eae2dfb-186e-44f9-918f-a5238b53641c",
      "typeVersion": 1.1
    },
    {
      "parameters": {
        "jsonSchemaExample": "[{\n  \"transcript\": \"I like this\",\n  \"start_index\": 10,\n  \"end_index\": 13\n},{\n  \"transcript\": \"It would be\",\n  \"start_index\": 16,\n  \"end_index\": 19\n}]"
      },
      "id": "a7239a59-c163-4427-bc58-50cc123981c8",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        520,
        880
      ],
      "typeVersion": 1.2
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://lemolex.app.n8n.cloud/webhook/e18f-e237-4f6e-b5a8-fffda04c4d8f",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "podcast_url",
              "value": "={{ $('Send the YouTube Video Links').item.json['YouTube Video URL'] }}"
            },
            {
              "name": "startSeconds",
              "value": "={{ $json.start_index }}"
            },
            {
              "name": "endSeconds",
              "value": "={{ $json.end_index }}"
            }
          ]
        },
        "options": {}
      },
      "id": "147a62f4-d6d1-4f19-b544-dcb10690fd47",
      "name": "Generating Main Clip",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1200,
        460
      ],
      "typeVersion": 4.2
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "17476aa1-49ae-4697-aa41-95f00dee6875",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.status }}",
              "rightValue": "finished"
            }
          ]
        },
        "options": {}
      },
      "id": "d474673a-8464-4101-be07-7dd05f198d0d",
      "name": "If5",
      "type": "n8n-nodes-base.if",
      "position": [
        1580,
        580
      ],
      "typeVersion": 2.2
    },
    {
      "parameters": {
        "amount": 30
      },
      "id": "ff1efea8-3854-40b3-a323-e2cdb6a23a01",
      "name": "Wait4",
      "type": "n8n-nodes-base.wait",
      "position": [
        1600,
        840
      ],
      "webhookId": "d9e3f283-7132-480e-a544-0df0a9a8d937",
      "typeVersion": 1.1
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://lemolex.app.n8n.cloud/webhook/1d9186-e6c6-49f4-9469-21a77ab3fb37",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "background_url",
              "value": "={{ $('Send the YouTube Video Links').item.json['Copyright Free Background Video'] }}"
            },
            {
              "name": "startSeconds",
              "value": "=3"
            },
            {
              "name": "endSeconds",
              "value": "={{ $json.interval }}"
            }
          ]
        },
        "options": {}
      },
      "id": "075f82ee-a576-46ca-90b2-7007af3d3096",
      "name": "Generating Background Clip",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1960,
        200
      ],
      "typeVersion": 4.2
    },
    {
      "parameters": {
        "url": "https://lemolex.app.n8n.cloud/webhook/40a7b1-58ba-4ce6-9e52-55cb0cfebafa",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "job-id",
              "value": "={{ $('Generating Main Clip').item.json.id }}"
            }
          ]
        },
        "options": {}
      },
      "id": "b21b79b2-e7bd-4751-8b4c-2ee1764f24ae",
      "name": "Extracting Main Clip",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1440,
        200
      ],
      "typeVersion": 4.2
    },
    {
      "parameters": {
        "url": "https://lemolex.app.n8n.cloud/webhook/40a697b1-58ba-4ce6-9e52-55cb0cfebafa",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "job-id",
              "value": "={{ $('Generating Background Clip').item.json.id }}"
            }
          ]
        },
        "options": {}
      },
      "id": "af866d6d-2ba4-42bb-a500-a0a45a1fb864",
      "name": "Extracting Background Clip",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2140,
        540
      ],
      "typeVersion": 4.2
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "17476aa1-49ae-4697-aa41-95f00dee6875",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.status }}",
              "rightValue": "finished"
            }
          ]
        },
        "options": {}
      },
      "id": "bc8764ae-a1f0-4b9c-bee8-67468386eef8",
      "name": "If6",
      "type": "n8n-nodes-base.if",
      "position": [
        2380,
        540
      ],
      "typeVersion": 2.2
    },
    {
      "parameters": {
        "amount": 1,
        "unit": "minutes"
      },
      "id": "3ee26f1d-3722-404b-b1c4-d8de9e8299c4",
      "name": "Wait5",
      "type": "n8n-nodes-base.wait",
      "position": [
        2160,
        840
      ],
      "webhookId": "20e97cfa-ebde-4090-a739-a2a7b087bdf5",
      "typeVersion": 1.1
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://lemolex.app.n8n.cloud/webhook/8caa81c9-4322-4b79-8d69-045473776e51",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "podcast_url",
              "value": "={{ $('Send the YouTube Video Links').item.json['YouTube Video URL'] }}"
            },
            {
              "name": "startSeconds",
              "value": "={{ $('Loop Over Clips').first().json.start_index }}"
            },
            {
              "name": "endSeconds",
              "value": "={{ $('Loop Over Clips').first().json.end_index }}"
            }
          ]
        },
        "options": {}
      },
      "id": "b1b2e330-013b-448f-95a3-a4642e8d5284",
      "name": "Extracting Audio from Clips",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2580,
        180
      ],
      "typeVersion": 4.2
    },
    {
      "parameters": {
        "url": "https://lemolex.app.n8n.cloud/webhook/40a697b1-58ba-4ce6-9e52-55cb0cfebafa",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "job-id",
              "value": "={{ $('Extracting Audio from Clips').item.json.id }}"
            }
          ]
        },
        "options": {}
      },
      "id": "a39a6144-f28e-40ae-a872-da319b1e3419",
      "name": "Extracting Audio from Main Clip 2",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2980,
        180
      ],
      "typeVersion": 4.2
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "17476aa1-49ae-4697-aa41-95f00dee6875",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.status }}",
              "rightValue": "finished"
            }
          ]
        },
        "options": {}
      },
      "id": "b1eb2044-5f34-4672-ae71-779933fa8f1f",
      "name": "If7",
      "type": "n8n-nodes-base.if",
      "position": [
        2720,
        920
      ],
      "typeVersion": 2.2
    },
    {
      "parameters": {
        "amount": 1,
        "unit": "minutes"
      },
      "id": "1600f535-aff6-41e7-b6fc-df4160a57253",
      "name": "Wait6",
      "type": "n8n-nodes-base.wait",
      "position": [
        3040,
        520
      ],
      "webhookId": "8f686c54-b275-45be-9590-0f2bfed4c8c3",
      "typeVersion": 1.1
    },
    {
      "parameters": {
        "url": "={{ $('If7').item.json['download-url'] }}",
        "options": {
          "response": {
            "response": {
              "responseFormat": "file",
              "outputPropertyName": "data-audio"
            }
          }
        }
      },
      "id": "eb4087f8-1f61-4348-95fa-a9c84a87eab5",
      "name": "Download Clip Audio",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -260,
        1120
      ],
      "typeVersion": 4.2
    },
    {
      "parameters": {
        "jsCode": "// Get the two numbers from the incoming JSON (from the previous node)\nconst a = $('Loop Over Clips').first().json.end_index;\nconst b = $('Loop Over Clips').first().json.start_index;\n\n// Calculate the interval; if you always want a positive result, use Math.abs:\nconst interval = Math.abs(a - b) + 3;\n\n// Return a new item with your result under whatever key you like\nreturn [\n  { json: { interval } }\n];\n"
      },
      "id": "2f2d71fd-4418-4c30-b092-557f9dd8d63b",
      "name": "Clip Length Calculation",
      "type": "n8n-nodes-base.code",
      "position": [
        1760,
        200
      ],
      "typeVersion": 2
    },
    {
      "parameters": {
        "formTitle": "YouTube Video URL",
        "formFields": {
          "values": [
            {
              "fieldLabel": "URL",
              "requiredField": true
            }
          ]
        },
        "options": {}
      },
      "id": "de4013c2-46b2-4ad0-be18-95d5df3e76b5",
      "name": "Start with a form",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -280,
        280
      ],
      "typeVersion": 2.2,
      "webhookId": "abe50177-0b12-49b6-a2b0-2321fa3814a4"
    },
    {
      "parameters": {
        "options": {}
      },
      "id": "a6c8bb4f-3c43-4062-ae2f-5d7c7ddd57b1",
      "name": "Set Final Transcript",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        -60,
        680
      ]
    },
    {
      "parameters": {},
      "type": "n8n-nodes-youtube-transcript.youtubeTranscriptNode",
      "typeVersion": 1,
      "position": [
        -40,
        280
      ],
      "id": "3f54c2d9-3ded-4dc9-9c50-9f83cc74a3ae",
      "name": "Youtube Transcript"
    }
  ],
  "pinData": {},
  "connections": {
    "If1": {
      "main": [
        [
          {
            "node": "Structure Links",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If5": {
      "main": [
        [
          {
            "node": "Clip Length Calculation",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If6": {
      "main": [
        [
          {
            "node": "Extracting Audio from Clips",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If7": {
      "main": [
        [
          {
            "node": "Download Clip Audio",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait1": {
      "main": [
        [
          {
            "node": "Clip Ready?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait4": {
      "main": [
        [
          {
            "node": "Extracting Main Clip",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait5": {
      "main": [
        [
          {
            "node": "Extracting Background Clip",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait6": {
      "main": [
        [
          {
            "node": "Extracting Audio from Main Clip 2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out1": {
      "main": [
        [
          {
            "node": "Loop Over Clips",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clip Ready?": {
      "main": [
        [
          {
            "node": "If1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Editing Clips": {
      "main": [
        [
          {
            "node": "Wait1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Title": {
      "main": [
        [
          {
            "node": "Download Final Clip",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post To TikTok": {
      "main": [
        [
          {
            "node": "Posting Interval",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Clips": {
      "main": [
        [],
        [
          {
            "node": "Generating Main Clip",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structure Links": {
      "main": [
        [
          {
            "node": "Generate Title",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Posting Interval": {
      "main": [
        [
          {
            "node": "Loop Over Clips",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Audio Transcription": {
      "main": [
        [
          {
            "node": "Structure Transcription 2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Clip Audio": {
      "main": [
        [
          {
            "node": "Audio Transcription",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Final Clip": {
      "main": [
        [
          {
            "node": "Post To TikTok",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extracting Main Clip": {
      "main": [
        [
          {
            "node": "If5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generating Main Clip": {
      "main": [
        [
          {
            "node": "Extracting Main Clip",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clip Length Calculation": {
      "main": [
        [
          {
            "node": "Generating Background Clip",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structure Transcription": {
      "main": [
        [
          {
            "node": "Podcast Best Moments Extraction",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Podcast Best Moments Extraction",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Podcast Best Moments Extraction",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Title",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structure Transcription 2": {
      "main": [
        [
          {
            "node": "Editing Clips",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser1": {
      "ai_outputParser": [
        [
          {
            "node": "Generate Title",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Extracting Background Clip": {
      "main": [
        [
          {
            "node": "If6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generating Background Clip": {
      "main": [
        [
          {
            "node": "Extracting Background Clip",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extracting Audio from Clips": {
      "main": [
        [
          {
            "node": "Extracting Audio from Main Clip 2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Podcast Best Moments Extraction": {
      "main": [
        [
          {
            "node": "Split Out1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extracting Audio from Main Clip 2": {
      "main": [
        [
          {
            "node": "If7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Start with a form": {
      "main": [
        [
          {
            "node": "Youtube Transcript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Youtube Transcript": {
      "main": [
        [
          {
            "node": "Set Final Transcript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Final Transcript": {
      "main": [
        [
          {
            "node": "Structure Transcription",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "ba5c8f2a-eb59-45d6-98e2-0cef0d03b37a",
  "meta": {
    "instanceId": "48f28243c5653c508be1e0a4d4520d3882574c1e5cc09525f1ddda9b0015b590"
  },
  "id": "dU5d6xK9oeWzfV2v",
  "tags": []
}