{
  "name": "Find relevant X tweets based on your profile and suggest responses",
  "nodes": [
    {
      "id": "5fc895f6-b188-4900-81c7-b0eeebd1d571",
      "name": "Get User Tweets",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1220,
        240
      ]
    },
    {
      "id": "299a1ada-646c-453c-85e5-c340e6df2dfc",
      "name": "Map Tweets",
      "type": "n8n-nodes-base.code",
      "position": [
        -1220,
        440
      ]
    },
    {
      "id": "72b79ff2-055b-4842-8a60-7b8cef9dedd0",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -1220,
        0
      ]
    },
    {
      "id": "ce05506b-fba3-40ff-a28f-24434175f6b7",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -320,
        240
      ]
    },
    {
      "id": "445f99d3-95ec-4c94-95b7-c64bb0783da1",
      "name": "Aggregate",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        120,
        0
      ]
    },
    {
      "id": "0511ce11-d316-4598-9e49-9a4df3e8dc95",
      "name": "Tweet Writer",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        60,
        320
      ]
    },
    {
      "id": "8d2da454-3561-4ddc-8df7-b5d535a4411f",
      "name": "User Profile Analyser",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -840,
        0
      ]
    },
    {
      "id": "59bfbd43-e08b-4369-9db5-b0a24fa7312d",
      "name": "Keyword Analyser",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -840,
        320
      ]
    },
    {
      "id": "98f3a6f6-397b-48b8-8770-0aa89720ed4b",
      "name": "Get relevant tweets",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -320,
        460
      ]
    },
    {
      "id": "8c513d94-3aec-4094-8989-572cb019a258",
      "name": "Click to show Result",
      "type": "n8n-nodes-base.html",
      "position": [
        600,
        440
      ]
    },
    {
      "id": "0d75fcdf-83d4-4eed-b5b7-84521948022e",
      "name": "Replace em dash",
      "type": "n8n-nodes-base.code",
      "position": [
        600,
        0
      ]
    },
    {
      "id": "4478ff3c-b653-4e4d-bd03-2b10b13b8265",
      "name": "combine keywords",
      "type": "n8n-nodes-base.code",
      "position": [
        -320,
        0
      ]
    },
    {
      "id": "61f53128-9ef7-4638-81ff-a752a62510a4",
      "name": "o3-mini",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -840,
        180
      ]
    },
    {
      "id": "de12f5b8-38b5-41b8-bfb8-756f40e98668",
      "name": "profile schema",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -660,
        180
      ]
    },
    {
      "id": "3ed5bc68-5456-4fd5-a1d6-d3c2fa05fc94",
      "name": "4.1-mini",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -840,
        500
      ]
    },
    {
      "id": "592ede7f-1a72-480a-8090-740906cb9d21",
      "name": "keywords schema",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -660,
        500
      ]
    },
    {
      "id": "debdaf4b-4c3e-4797-b1e4-1b0f118175e7",
      "name": "o3-mini1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        60,
        500
      ]
    },
    {
      "id": "8745739b-1a0f-4390-accb-8127c5602f0e",
      "name": "tweet schema",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        260,
        500
      ]
    },
    {
      "id": "fb0151fe-e279-4a7e-b60c-0c318c16bc91",
      "name": "Prepare Result",
      "type": "n8n-nodes-base.code",
      "position": [
        600,
        220
      ]
    },
    {
      "id": "9306ec98-229c-44df-9be4-eb642eb49a35",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1840,
        0
      ],
      "parameters": {
        "width": 500,
        "height": 660,
        "content": "## 📋 Setup Instructions\n\n### 1️⃣ Configure API Keys\n- Add your OpenAI credentials to the nodes\n\n- Get your twitterapi key from https://twitterapi.io?ref=1PROMPT (:pray:)\n- Add to \"Header Auth account\""
      }
    },
    {
      "id": "39c40eba-dbf9-449e-b80c-147625ff4acc",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -580,
        -240
      ],
      "parameters": {
        "width": 600,
        "height": 80,
        "content": "# 🚀 X Tweet Suggestions Workflow"
      }
    }
  ],
  "connections": {
    "o3-mini": {
      "ai_languageModel": [
        [
          {
            "node": "User Profile Analyser",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "4.1-mini": {
      "ai_languageModel": [
        [
          {
            "node": "Keyword Analyser",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "o3-mini1": {
      "ai_languageModel": [
        [
          {
            "node": "Tweet Writer",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "Tweet Writer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Get relevant tweets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Map Tweets": {
      "main": [
        [
          {
            "node": "User Profile Analyser",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tweet Writer": {
      "main": [
        [
          {
            "node": "Replace em dash",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "tweet schema": {
      "ai_outputParser": [
        [
          {
            "node": "Tweet Writer",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Result": {
      "main": [
        [
          {
            "node": "Click to show Result",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "profile schema": {
      "ai_outputParser": [
        [
          {
            "node": "User Profile Analyser",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Get User Tweets": {
      "main": [
        [
          {
            "node": "Map Tweets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Replace em dash": {
      "main": [
        [
          {
            "node": "Prepare Result",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "keywords schema": {
      "ai_outputParser": [
        [
          {
            "node": "Keyword Analyser",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Keyword Analyser": {
      "main": [
        [
          {
            "node": "combine keywords",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "combine keywords": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Get User Tweets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get relevant tweets": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "User Profile Analyser": {
      "main": [
        [
          {
            "node": "Keyword Analyser",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}