{
  "name": "Send the best Klap clip of every video to X, Threads and Skool, and report each post",
  "nodes": [
    {
      "parameters": {
        "content": "## Send the best Klap clip of every video to X, Threads and Skool\n\nKlap posts a clip to YouTube, TikTok, Instagram, Facebook and LinkedIn itself (Clip: Schedule). This workflow takes the same clip to three more networks through Status 200 Uploads: X, Threads and Skool. Then it reads each post that came back with an id until its network is done, for up to 10 minutes. A post that needs more than about 20 seconds is reported as still_publishing. From X and Threads it is then not read at all. Try it first with check_only on: every check runs and nothing is posted.\n\n### How it works\n1. **Klap Trigger** (New Clip) starts the workflow when Klap has finished a video, with the best clip of that project.\n2. **Write the caption** asks Klap for a caption. **Export the clip** renders the clip to an MP4, once: the same file goes to all three networks.\n3. **Your settings** holds the caption, the Skool title and check_only.\n4. **Import the clip** copies the MP4 from Klap's video_url to Status 200 Uploads and waits until it is ready.\n5. The three **Publish** nodes post it, or only check it. Each post request carries an automatic Idempotency-Key, so a request the node sends again by itself is not posted twice. A new run of the workflow posts again.\n6. A post that comes back with an id is read every 30 seconds until its network is done, for up to 10 minutes. Every other answer (a check, a queued post, an error) ends in **Checks and schedules**. While a post is being read, that node runs after the reading.\n\n### Setup\n1. Add two community nodes: `n8n-nodes-klap` (it needs n8n 2.12.0 or later) and `@status200uploads/n8n-nodes-status200uploads`.\n2. Create a **Klap OAuth2 API** credential (Connect my account) and choose it in the three Klap nodes.\n3. In your Status 200 Uploads dashboard, connect X, Threads and Skool, and create an API key on the API page. Posting to X needs the X add-on, posting to Skool the Beginner plan or higher.\n4. Create a **Status 200 Uploads API** credential with that key and choose it in the five Status 200 Uploads nodes: Import the clip, the three Publish nodes and Read the post. In each Publish node choose your account. In **Publish to Skool** also choose the group and fill in Skool Options (note 4).\n5. Run the workflow once by hand with check_only true: the trigger then gives the best clip of your most recent project, and the run exports it (one export of your Klap plan). Read the result, set check_only to false and publish (activate) the workflow. Keep check_only true for every later run by hand: a run by hand takes that same clip again and exports it again, and with check_only false it posts it again. The published workflow keeps the setting it was published with: set check_only back to false before you publish the workflow again.\n\nNot run by us: Status 200 Uploads has no Klap account. This workflow was written from the published code of both nodes (n8n-nodes-klap 0.2.0 and the Status 200 Uploads node 0.1.3) and has never been run from start to end.",
        "height": 1380,
        "width": 520
      },
      "id": "1dd62f7f-f81e-44d0-a196-afd9a1adc102",
      "name": "Overview",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -640,
        -480
      ]
    },
    {
      "parameters": {
        "content": "## 1. A new clip, its caption, its MP4\nEvery 5 minutes the trigger looks at your 10 most recent ready projects. Those that are not on its list start one run together, each with its best clip. The first time you publish the workflow it puts those 10 on the list and does not fire for them. It keeps the list: switched off and on again, or after n8n was stopped, it fires at once for the projects that finished in between, 10 at most. A project that is not among the 10 most recent ready ones when the trigger looks is skipped. If you delete newer projects in Klap, an older one can move into the 10: the trigger then sends its best clip as if it were new.\n\nOnly the Best N Clips per Project is 1 here. Raise it to send more clips of each video: X and Threads then get every clip, Skool the first one (note 4). Each clip is one export, and an export counts toward the export allowance of your Klap plan, also in a check-only run. When a run carries several clips, all of them are exported before the first one is imported.\n\nRendering takes about as long as the clip, and the node waits up to 10 minutes for each export (Timeout (Minutes), 60 at most). If an MP4 is not ready by then, or another step before the Publish nodes fails, the run stops for every clip in it and the trigger does not offer those clips again. Exports already made in that run are not used, and an export that was started stays counted: Export: Get reads it later, with the clip ID and the export ID that the error names. Retry on the failed execution starts at the step that failed: at Export the clip that is a second export.",
        "height": 760,
        "width": 680,
        "color": 7
      },
      "id": "01bf2cf4-a0b5-477b-a604-a25aeb161021",
      "name": "Note: Klap",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -60,
        -580
      ]
    },
    {
      "parameters": {
        "content": "## 2. Your settings\ncheck_only true runs every check and posts nothing. caption is Klap's caption (the clip's name when Klap gives none). skool_title is the clip's name. Type your own text over either one.",
        "height": 760,
        "width": 240,
        "color": 7
      },
      "id": "e9f8bf07-79a1-4908-a168-722106a799ca",
      "name": "Note: settings",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        640,
        -580
      ]
    },
    {
      "parameters": {
        "content": "## 3. Import the clip\nThe MP4 at Klap's video_url is copied to your Status 200 Uploads media library, where it is kept for 7 days, also in a check-only run. The node waits up to 10 minutes until it is ready.",
        "height": 760,
        "width": 240,
        "color": 7
      },
      "id": "3c03d91f-ff21-4ed4-aa8a-8331727df9b6",
      "name": "Note: import",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        900,
        -580
      ]
    },
    {
      "parameters": {
        "content": "## 4. Publish\nOne node per network, the same file for all three. X gets the first 280 characters of the caption, Threads the first 500, Skool the whole caption with the clip's name as its title. The cut counts letters. X counts Chinese, Japanese and Korean characters and most emoji as 2: for such captions change 280 to 140 in Publish to X.\n\nA Publish node that ends with an error (a refusal, or no answer) does not stop the other networks: its row in Checks and schedules starts with error, and the run then ends at **A network ended with an error**, so n8n lists it as failed. Do not run the workflow again for that clip: a new run posts to the other networks again. Look on the network itself, not only in your Status 200 Uploads History: a post may still have gone out, and History can show it as failed, or not at all. Then send the missing post by hand. When a connection broke, the words of the row are n8n's own and can say to retry or to turn on Retry On Fail: do not, the rule is the same.\n\nSkool takes one post per hour from an account: a Skool post less than an hour after the last one ends with an error. Publish to Skool sends only the first clip of a run (its setting Execute Once). One run can carry the clips of several videos, also with 1 clip per project: two videos ready within the same 5 minutes, or the videos that finished while the workflow was off. Skool then gets the first clip only. The others are not sent to Skool later, and no row lists them.\n\nIn Publish to Skool, under Skool Options: Group Slug is the name of the group in its web address (without it the link of the post has no group in it), and a group with categories needs a Label ID (Account: Get Posting Options lists them). The check does not test the category.\n\nA network you do not use: delete its Publish node and its answer node. If n8n then draws a wire from Import the clip to Collect the answers, delete that wire too. Delete, do not deactivate: a deactivated Publish node passes the clip on, and its row reads nothing was sent.",
        "height": 1720,
        "width": 560,
        "color": 7
      },
      "id": "7ee71cb9-ac0f-4208-a8d1-905fe572d7de",
      "name": "Note: publish",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        1160,
        -1320
      ]
    },
    {
      "parameters": {
        "content": "## 5. Read the posts\nA post that came back with an id is read at once, and then again every 30 seconds until its network is done, for up to 10 minutes (20 waits). Done is not the same as live: Report gives the network, the status, the link and the problem, if any. A status of success says the post exists. Open its link once to see that the clip is in it.\n\nChecks and schedules holds every row without an id to read: a check, a post queued for the next day, an error, and still_publishing. A network that needs more than about 20 seconds answers still_publishing. From X and Threads that answer has no id. From Skool it can come without one. A post without an id is not read here: look on the network itself. A still_publishing row does not make the run fail, and neither does a post that Report shows as failed, as timeout or as not done after the last read: n8n lists such a run as successful, so read Report and Checks and schedules.\n\nInside one execution the workflow can wait up to 10 minutes for each export, 10 for the import and 10 for the posts: an n8n with a shorter execution time limit stops it part-way. If a run stops after a Publish node ran (a read fails, or n8n ends the run), the posts may be out. Do not start a new run for that clip: use Retry on that execution if n8n offers it, or look on the networks.\n\nLeave Checks and schedules below Read the post: n8n runs the upper branch first, and the stop behind it must come after the reading. This needs Execution Logic v1 (Workflow settings), which every workflow made since n8n 1.0 has.",
        "height": 1080,
        "width": 1180,
        "color": 7
      },
      "id": "69f3da1b-f82e-4424-a7ef-ad45187bec6e",
      "name": "Note: result",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        1740,
        -620
      ]
    },
    {
      "parameters": {
        "pollTimes": {
          "item": [
            {
              "mode": "everyX",
              "value": 5,
              "unit": "minutes"
            }
          ]
        },
        "event": "newClip",
        "options": {
          "clipsPerProject": 1
        }
      },
      "id": "27ffccf6-6fd6-47bd-a1a4-6ba8ad0d861f",
      "name": "Klap Trigger",
      "type": "n8n-nodes-klap.klapTrigger",
      "typeVersion": 1,
      "position": [
        0,
        20
      ]
    },
    {
      "parameters": {
        "resource": "clip",
        "operation": "writeCaption",
        "clipId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $json.id }}"
        },
        "additionalFields": {
          "instructions": "Keep the whole caption under 250 characters, hashtags included."
        }
      },
      "id": "37309ff2-1108-423f-a6c9-69482c727a2d",
      "name": "Write the caption",
      "type": "n8n-nodes-klap.klap",
      "typeVersion": 1,
      "position": [
        220,
        20
      ]
    },
    {
      "parameters": {
        "resource": "clip",
        "operation": "export",
        "clipId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $json.clip_id }}"
        }
      },
      "id": "234ddb99-3a95-4ed8-a862-2097473cca06",
      "name": "Export the clip",
      "type": "n8n-nodes-klap.klap",
      "typeVersion": 1,
      "position": [
        440,
        20
      ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "7f982425-3339-40c4-a669-681f42f0862e",
              "name": "video_url",
              "value": "={{ $json.video_url }}",
              "type": "string"
            },
            {
              "id": "5cfc9eca-6c34-41f3-a264-d6102adab339",
              "name": "caption",
              "value": "={{ $('Write the caption').item.json.caption || $('Klap Trigger').item.json.name || 'New clip' }}",
              "type": "string"
            },
            {
              "id": "f4a13e89-01d8-4b24-a705-fc979f6dbc82",
              "name": "skool_title",
              "value": "={{ $('Klap Trigger').item.json.name || 'New clip' }}",
              "type": "string"
            },
            {
              "id": "0a0ead4f-64e0-4738-a09a-7645b3205156",
              "name": "check_only",
              "value": true,
              "type": "boolean"
            }
          ]
        },
        "options": {}
      },
      "id": "fc9f4118-4a4f-47d1-a1e4-951283e5e8e3",
      "name": "Your settings",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        700,
        20
      ]
    },
    {
      "parameters": {
        "resource": "media",
        "operation": "importFromUrl",
        "url": "={{ $json.video_url }}",
        "options": {
          "maxWait": 600
        },
        "requestOptions": {
          "batching": {
            "batch": {
              "batchSize": 1,
              "batchInterval": 25000
            }
          }
        }
      },
      "id": "26b9bf44-8836-4fd5-adb5-a692df7f188b",
      "name": "Import the clip",
      "type": "@status200uploads/n8n-nodes-status200uploads.status200Uploads",
      "typeVersion": 1,
      "position": [
        960,
        20
      ]
    },
    {
      "parameters": {
        "resource": "post",
        "operation": "create",
        "account": {
          "__rl": true,
          "mode": "list",
          "value": ""
        },
        "platform": "x",
        "text": "={{ $('Your settings').item.json.caption.slice(0, 280) }}",
        "media": "fileIds",
        "fileIds": "={{ $json.file_id }}",
        "options": {
          "dryRun": "={{ $('Your settings').item.json.check_only }}"
        },
        "requestOptions": {
          "batching": {
            "batch": {
              "batchSize": 1,
              "batchInterval": 25000
            }
          }
        }
      },
      "id": "c56c1e04-2185-4d2f-af8c-6cb631853f79",
      "name": "Publish to X",
      "type": "@status200uploads/n8n-nodes-status200uploads.status200Uploads",
      "typeVersion": 1,
      "position": [
        1240,
        -180
      ],
      "onError": "continueRegularOutput"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "38f498e0-a1df-43fb-ac69-afa2dceaf605",
              "name": "network",
              "value": "x",
              "type": "string"
            },
            {
              "id": "f96694fb-5009-4a62-ad92-c28181bb8a00",
              "name": "node_error",
              "value": "={{ Boolean($input.item.error) }}",
              "type": "boolean"
            },
            {
              "id": "6b6ccb21-0150-43d2-a2b1-b60b9c3d1a1c",
              "name": "problem",
              "value": "={{ ($input.item.error && $input.item.error.message) || '' }}",
              "type": "string"
            }
          ]
        },
        "includeOtherFields": true,
        "options": {}
      },
      "id": "8d953a16-877c-4701-a941-c4641e08f927",
      "name": "X answer",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        1480,
        -180
      ]
    },
    {
      "parameters": {
        "resource": "post",
        "operation": "create",
        "account": {
          "__rl": true,
          "mode": "list",
          "value": ""
        },
        "platform": "threads",
        "text": "={{ $('Your settings').item.json.caption.slice(0, 500) }}",
        "media": "fileIds",
        "fileIds": "={{ $json.file_id }}",
        "options": {
          "dryRun": "={{ $('Your settings').item.json.check_only }}"
        },
        "requestOptions": {
          "batching": {
            "batch": {
              "batchSize": 1,
              "batchInterval": 25000
            }
          }
        }
      },
      "id": "4e90180d-24b2-426e-a02d-938721f44c40",
      "name": "Publish to Threads",
      "type": "@status200uploads/n8n-nodes-status200uploads.status200Uploads",
      "typeVersion": 1,
      "position": [
        1240,
        20
      ],
      "onError": "continueRegularOutput"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "5a5bfea3-4789-4b40-a55f-8e9d8577387a",
              "name": "network",
              "value": "threads",
              "type": "string"
            },
            {
              "id": "052c2d2a-66e0-419b-ab05-edf82f7c96d9",
              "name": "node_error",
              "value": "={{ Boolean($input.item.error) }}",
              "type": "boolean"
            },
            {
              "id": "a7ddb23a-a633-4b81-a167-db54f16b9ae3",
              "name": "problem",
              "value": "={{ ($input.item.error && $input.item.error.message) || '' }}",
              "type": "string"
            }
          ]
        },
        "includeOtherFields": true,
        "options": {}
      },
      "id": "3b570839-fd17-41f6-af94-f76fd8b1502c",
      "name": "Threads answer",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        1480,
        20
      ]
    },
    {
      "parameters": {
        "resource": "post",
        "operation": "create",
        "account": {
          "__rl": true,
          "mode": "list",
          "value": ""
        },
        "platform": "skool",
        "text": "={{ $('Your settings').item.json.caption }}",
        "media": "fileIds",
        "fileIds": "={{ $json.file_id }}",
        "skoolTitle": "={{ $('Your settings').item.json.skool_title }}",
        "skoolOptions": {
          "groupSlug": "",
          "label": ""
        },
        "options": {
          "dryRun": "={{ $('Your settings').item.json.check_only }}"
        }
      },
      "id": "b0e46014-71ee-4447-a327-77de446556f1",
      "name": "Publish to Skool",
      "type": "@status200uploads/n8n-nodes-status200uploads.status200Uploads",
      "typeVersion": 1,
      "position": [
        1240,
        220
      ],
      "onError": "continueRegularOutput",
      "executeOnce": true
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "60128720-adc8-4b9b-a463-0c7a7b6bc0ad",
              "name": "network",
              "value": "skool",
              "type": "string"
            },
            {
              "id": "5a1f063b-361f-4e42-abcf-b2d938280388",
              "name": "node_error",
              "value": "={{ Boolean($input.item.error) }}",
              "type": "boolean"
            },
            {
              "id": "6389d161-7f3f-4d72-a057-6ee32b1ed504",
              "name": "problem",
              "value": "={{ ($input.item.error && $input.item.error.message) || '' }}",
              "type": "string"
            }
          ]
        },
        "includeOtherFields": true,
        "options": {}
      },
      "id": "ad3e93d6-b759-4da1-a6c6-a42c28b5f05f",
      "name": "Skool answer",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        1480,
        220
      ]
    },
    {
      "parameters": {
        "numberInputs": 3
      },
      "id": "3c49c5ba-69aa-4ee3-a1f8-9224913c307d",
      "name": "Collect the answers",
      "type": "n8n-nodes-base.merge",
      "typeVersion": 3.2,
      "position": [
        1740,
        20
      ]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "f3fdc5c2-f4fe-4a47-a4c8-3a50e3a7a65d",
              "leftValue": "={{ Boolean($json.status200 && $json.status200.post_id) }}",
              "rightValue": "",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "632eeccb-1b7d-4516-ae15-d6adf38d0d28",
      "name": "Sent now?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        1960,
        20
      ]
    },
    {
      "parameters": {
        "resource": "post",
        "operation": "get",
        "post": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $json.status200 ? $json.status200.post_id : $json.id }}"
        }
      },
      "id": "0bcd6a43-1f62-44aa-a10b-efb9129e3558",
      "name": "Read the post",
      "type": "@status200uploads/n8n-nodes-status200uploads.status200Uploads",
      "typeVersion": 1,
      "position": [
        2200,
        -140
      ],
      "retryOnFail": true,
      "maxTries": 5,
      "waitBetweenTries": 5000
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "26ba4078-487f-4a61-abf1-9fc66038dcff",
              "leftValue": "={{ $json.done === true || $runIndex >= 20 }}",
              "rightValue": "",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "a7e9b9b5-12b0-4c4c-a24f-588fd81aa82e",
      "name": "Live yet?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        2420,
        -140
      ]
    },
    {
      "parameters": {
        "amount": 30
      },
      "id": "18881131-dfca-48e8-a235-abef4a3067d6",
      "name": "Wait 30 seconds",
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        2420,
        60
      ],
      "webhookId": "343760c4-93d2-47f9-aa9b-9fae3e158fd3"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "47da2f68-99e5-4eb3-ab72-aae68dafe159",
              "name": "network",
              "value": "={{ $json.platform }}",
              "type": "string"
            },
            {
              "id": "66d53e54-d639-4f9d-a2b4-33824576f75b",
              "name": "status",
              "value": "={{ $json.status }}",
              "type": "string"
            },
            {
              "id": "87926bb2-3e3f-4917-ad75-2f90a5cd9c45",
              "name": "done",
              "value": "={{ $json.done === true }}",
              "type": "boolean"
            },
            {
              "id": "0e223242-3281-452f-a191-0210f8700bad",
              "name": "link",
              "value": "={{ $json.permalink || '' }}",
              "type": "string"
            },
            {
              "id": "555ddb29-89a6-422a-a5ed-f837fe4992f8",
              "name": "problem",
              "value": "={{ $json.error_message || '' }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "id": "2b211dee-a9fc-40a9-afa1-a000d90f5603",
      "name": "Report",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        2660,
        -160
      ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "2fad16e4-be9c-40a3-ad92-5f1ebe1fceed",
              "name": "network",
              "value": "={{ $json.network }}",
              "type": "string"
            },
            {
              "id": "6e8509af-d4c8-4cb2-ab25-41216280989c",
              "name": "result",
              "value": "={{ $json.node_error ? 'error: ' + ($json.problem || 'open the Publish node of this network in this execution to read it') : $json.dry_run ? 'checked: ' + $json.outcome + ($json.reason ? ' (' + $json.reason.code + ': ' + $json.reason.message + ')' : '') : ($json.code || ($json.data !== undefined ? 'accepted' : 'nothing was sent: the Publish node of this network gave no answer')) }}",
              "type": "string"
            },
            {
              "id": "b10cd90b-9f8f-4a0a-a583-6d15d5926c8c",
              "name": "warnings",
              "value": "={{ ($json.warnings || []).map((w) => w.code).join(', ') }}",
              "type": "string"
            },
            {
              "id": "176498e8-3aa2-473f-a153-ff6ec54a66ed",
              "name": "scheduled_post_id",
              "value": "={{ $json.scheduled_post_id || '' }}",
              "type": "string"
            },
            {
              "id": "e3bbe35b-d3b7-46e2-a53c-ba317c425260",
              "name": "scheduled_at",
              "value": "={{ $json.scheduled_at || '' }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "id": "2e5d6562-c84a-4a39-ad1e-6c0819ce6c1f",
      "name": "Checks and schedules",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        2200,
        280
      ]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "a1b800d4-7197-4b4b-a8f5-a8ce88dfffa5",
              "leftValue": "={{ $json.result.startsWith('error') || $json.result.startsWith('nothing was sent') }}",
              "rightValue": "",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "1af4ddc1-7da6-49ea-a8c3-7bd779ea7530",
      "name": "Any error?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        2420,
        280
      ]
    },
    {
      "parameters": {
        "errorMessage": "At least one network ended with an error, or gave no answer: see Checks and schedules of this run. Posts that came back with an id were read before this stop. A post without an id was not read: look on the network."
      },
      "id": "7338bfcc-50cf-4ed1-a2c1-9ff64ded88eb",
      "name": "A network ended with an error",
      "type": "n8n-nodes-base.stopAndError",
      "typeVersion": 1,
      "position": [
        2660,
        260
      ]
    }
  ],
  "connections": {
    "Klap Trigger": {
      "main": [
        [
          {
            "node": "Write the caption",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Write the caption": {
      "main": [
        [
          {
            "node": "Export the clip",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Export the clip": {
      "main": [
        [
          {
            "node": "Your settings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Your settings": {
      "main": [
        [
          {
            "node": "Import the clip",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Import the clip": {
      "main": [
        [
          {
            "node": "Publish to X",
            "type": "main",
            "index": 0
          },
          {
            "node": "Publish to Threads",
            "type": "main",
            "index": 0
          },
          {
            "node": "Publish to Skool",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Publish to X": {
      "main": [
        [
          {
            "node": "X answer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Publish to Threads": {
      "main": [
        [
          {
            "node": "Threads answer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Publish to Skool": {
      "main": [
        [
          {
            "node": "Skool answer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "X answer": {
      "main": [
        [
          {
            "node": "Collect the answers",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Threads answer": {
      "main": [
        [
          {
            "node": "Collect the answers",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Skool answer": {
      "main": [
        [
          {
            "node": "Collect the answers",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Collect the answers": {
      "main": [
        [
          {
            "node": "Sent now?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sent now?": {
      "main": [
        [
          {
            "node": "Read the post",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Checks and schedules",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read the post": {
      "main": [
        [
          {
            "node": "Live yet?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Live yet?": {
      "main": [
        [
          {
            "node": "Report",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 30 seconds",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 30 seconds": {
      "main": [
        [
          {
            "node": "Read the post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Checks and schedules": {
      "main": [
        [
          {
            "node": "Any error?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Any error?": {
      "main": [
        [
          {
            "node": "A network ended with an error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  }
}
