{
  "name": "Extract and merge Twitter (X) threads using TwitterAPI.io",
  "nodes": [
    {
      "id": "209216e9-30f6-40d1-98a6-96324e28db47",
      "name": "Merge first tweet and others",
      "type": "n8n-nodes-base.merge",
      "position": [
        1360,
        -120
      ]
    },
    {
      "id": "3429ac0d-1d24-4d30-aaac-a0ae6adaef93",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -420,
        120
      ]
    },
    {
      "id": "5df01f81-da74-4a17-8856-682f8bdf580e",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -120,
        -280
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "fe1ba598-8c65-468e-bd58-b8b71d48e0f1",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        340,
        -280
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "95f7ac46-d864-483c-bce3-482142fe3697",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1200,
        -280
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "2a9eabb2-75a4-40a8-9379-0895203c49c9",
      "name": "When Executed by Another Workflow",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        -420,
        -120
      ]
    },
    {
      "id": "ee80999e-4980-4794-ac69-9d2c43a7a9d5",
      "name": "No Operation, do nothing",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1820,
        -120
      ]
    },
    {
      "id": "8acccfa4-5bb0-456a-ab7b-7eeef598cf8e",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -120,
        -440
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "82efbaa8-03d6-4d05-81a4-e2bebe26f403",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        340,
        -440
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "5734a4e8-a751-440e-b216-52fe8b257444",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1200,
        -440
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "36baf07f-abe4-46f1-8e8e-5344ee200f52",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -580,
        -440
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "abd08db1-8742-4d52-b510-b3d6d68453be",
      "name": "Extract Tweet ID and Username",
      "type": "n8n-nodes-base.function",
      "position": [
        -60,
        -5
      ]
    },
    {
      "id": "a81d8f05-d7a6-4c97-b90b-2c7e9c7807f1",
      "name": "Get first tweet",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        160,
        -220
      ]
    },
    {
      "id": "23a0d0a4-d119-4a25-8771-7b4aca3ffe5b",
      "name": "Extract Conversation and Author ID",
      "type": "n8n-nodes-base.function",
      "position": [
        380,
        -120
      ]
    },
    {
      "id": "c48394bc-e96d-455f-92a9-46db485e3aae",
      "name": "Merge all tweet infos",
      "type": "n8n-nodes-base.merge",
      "position": [
        600,
        -5
      ]
    },
    {
      "id": "1683b177-c050-46fa-8714-c7af785297ca",
      "name": "Get Tweet Replies",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        820,
        0
      ]
    },
    {
      "id": "f85bbf89-c9e9-46f8-8f5a-14ca33c0e220",
      "name": "Fetch tweets which are connected to first tweet",
      "type": "n8n-nodes-base.code",
      "position": [
        1040,
        0
      ]
    },
    {
      "id": "0fda4ada-cecd-4730-9ea9-1f385afe1c02",
      "name": "Filter empty ones",
      "type": "n8n-nodes-base.filter",
      "position": [
        1580,
        -120
      ]
    }
  ],
  "connections": {
    "Get first tweet": {
      "main": [
        [
          {
            "node": "Extract Conversation and Author ID",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge first tweet and others",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter empty ones": {
      "main": [
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Tweet Replies": {
      "main": [
        [
          {
            "node": "Fetch tweets which are connected to first tweet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge all tweet infos": {
      "main": [
        [
          {
            "node": "Get Tweet Replies",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge first tweet and others": {
      "main": [
        [
          {
            "node": "Filter empty ones",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Tweet ID and Username": {
      "main": [
        [
          {
            "node": "Get first tweet",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge all tweet infos",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "Extract Tweet ID and Username",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Extract Tweet ID and Username",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Conversation and Author ID": {
      "main": [
        [
          {
            "node": "Merge all tweet infos",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch tweets which are connected to first tweet": {
      "main": [
        [
          {
            "node": "Merge first tweet and others",
            "type": "main",
            "index": 1
          }
        ]
      ]
    }
  }
}