{
  "name": "Automate tweet filtering and replies on X with GPT and scheduled rotation",
  "nodes": [
    {
      "id": "9638802e-00ea-4682-8a99-f559a9aa901b",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        1560,
        960
      ]
    },
    {
      "id": "f33c9d90-c193-4e07-9631-3a0bcda37d75",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        3520,
        740
      ]
    },
    {
      "id": "6be8d0b6-d78c-4c65-8d33-56c54dce6d93",
      "name": "Wait1",
      "type": "n8n-nodes-base.wait",
      "position": [
        4140,
        740
      ]
    },
    {
      "id": "745cdd54-689c-4736-be3f-b97eb2fde6d8",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        3300,
        720
      ]
    },
    {
      "id": "8d07ff84-970b-411e-95c4-b49586d80b73",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        1560,
        740
      ]
    },
    {
      "id": "87b7abc7-5636-4d84-aa51-197e8c14ffb2",
      "name": "Set search Terms",
      "type": "n8n-nodes-base.set",
      "position": [
        1800,
        740
      ]
    },
    {
      "id": "28b30e1e-d168-4602-8042-fd01080e7a5f",
      "name": "Rotating Slot Index Generator",
      "type": "n8n-nodes-base.code",
      "position": [
        2020,
        740
      ]
    },
    {
      "id": "0601e643-0439-4ab3-9748-a69cb30a1ca2",
      "name": "X (Formerly Twitter) Search terms",
      "type": "n8n-nodes-base.twitter",
      "position": [
        2260,
        740
      ]
    },
    {
      "id": "50033bf2-737c-43d6-9d28-ffb2fc33091b",
      "name": "GPT Topic Selector",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        2740,
        740
      ]
    },
    {
      "id": "4dd2f7f7-edee-4703-9309-94d3c1a8d1c1",
      "name": "Extract Tweets from JSON",
      "type": "n8n-nodes-base.code",
      "position": [
        3060,
        740
      ]
    },
    {
      "id": "9069c483-e146-4e67-9204-ea93a31b0631",
      "name": "Group Tweets into a Single Array",
      "type": "n8n-nodes-base.code",
      "position": [
        2540,
        740
      ]
    },
    {
      "id": "8d351836-cf9b-4fca-bc74-1bf2ed99312c",
      "name": "GPT Tweet Response",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        3840,
        740
      ]
    },
    {
      "id": "b8579485-bf04-4b3e-8481-d2dc410c8841",
      "name": "X (Formerly Twitter) Like Tweet",
      "type": "n8n-nodes-base.twitter",
      "position": [
        3680,
        740
      ]
    },
    {
      "id": "13121377-4750-4a3f-88e5-c4478fecdf59",
      "name": "X (Formerly Twitter) Post Reply",
      "type": "n8n-nodes-base.twitter",
      "position": [
        4280,
        740
      ]
    },
    {
      "id": "c7be5433-e176-476b-80f5-e301b306e090",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1520,
        0
      ],
      "parameters": {
        "width": 640,
        "height": 920,
        "content": "# Configure Your Variables\n\n**The flow currently runs every 3 days and considers 10 topics (10 per month).**\nIf you want to change the schedule (for example, to run daily), you must adjust both the tr"
      }
    },
    {
      "id": "d3ea38df-42af-440e-a89a-22bb924b8375",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2200,
        380
      ],
      "parameters": {
        "width": 480,
        "height": 540,
        "content": "# X (Twitter) Search Terms Node\n\n* *Make sure to configure your X (Twitter) API credentials before using this node.**\n* Uses the `index` to select a search term from your `searchTerms` array, which is"
      }
    },
    {
      "id": "b500ec65-8e8e-42ff-bf19-1fad94132082",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2700,
        240
      ],
      "parameters": {
        "width": 540,
        "height": 680,
        "content": "# GPT Topic Selector\n\n* **Requires your OpenAI API key to be configured.**\n* Uses the defined role (from the `Set search Terms` node) to guide tweet selection.\n* Receives a JSON array of tweets, each "
      }
    },
    {
      "id": "c63431a7-2426-4d83-8f9b-f98edcab8091",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3500,
        240
      ],
      "parameters": {
        "width": 940,
        "height": 680,
        "content": "# Loop: Like, Generate, and Reply to Tweets\n\n**Make sure to configure your X (Twitter) API credentials before using this node.**\n**Requires your OpenAI API key to be configured.**\n\n## How It Works\n\n* "
      }
    },
    {
      "id": "5ea891d9-05a1-481d-a6de-8c37dae0b020",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": 1480,
        "height": 1220,
        "content": "# Professional Tweet Engagement Automation\n\n## Description\n\nAutomate the process of discovering, filtering, and engaging with relevant tweets on X (formerly Twitter) using GPT and n8n. This workflow i"
      }
    }
  ],
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "X (Formerly Twitter) Like Tweet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait1": {
      "main": [
        [
          {
            "node": "X (Formerly Twitter) Post Reply",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Set search Terms",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set search Terms": {
      "main": [
        [
          {
            "node": "Rotating Slot Index Generator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GPT Topic Selector": {
      "main": [
        [
          {
            "node": "Extract Tweets from JSON",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GPT Tweet Response": {
      "main": [
        [
          {
            "node": "Wait1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Tweets from JSON": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Rotating Slot Index Generator": {
      "main": [
        [
          {
            "node": "X (Formerly Twitter) Search terms",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "X (Formerly Twitter) Like Tweet": {
      "main": [
        [
          {
            "node": "GPT Tweet Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "X (Formerly Twitter) Post Reply": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Group Tweets into a Single Array": {
      "main": [
        [
          {
            "node": "GPT Topic Selector",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "X (Formerly Twitter) Search terms": {
      "main": [
        [
          {
            "node": "Group Tweets into a Single Array",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Set search Terms",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}