{
  "name": "Create WordPress posts from Reddit content via Telegram bot and Perplexity",
  "nodes": [
    {
      "id": "3c3b181a-1bfa-435d-88cf-29102340b6a3",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        224,
        -240
      ]
    },
    {
      "id": "0b0c33f8-3c97-4e47-978b-fc0c5d931b1f",
      "name": "Generate Article Idea",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        160,
        -464
      ]
    },
    {
      "id": "075fb21d-3926-455a-94bd-56793c37b94d",
      "name": "Set Topic Data",
      "type": "n8n-nodes-base.set",
      "position": [
        512,
        -464
      ]
    },
    {
      "id": "89f08568-0480-4a0c-bb40-f8f1cfdfc54c",
      "name": "Telegram Webhook",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -672,
        352
      ]
    },
    {
      "id": "b90b0be4-23bd-4f8c-adce-3a14c7d2dfe5",
      "name": "No Operation, do nothing",
      "type": "n8n-nodes-base.noOp",
      "position": [
        -224,
        448
      ]
    },
    {
      "id": "64332e4d-956d-4fb5-9e42-abff0a5cd9c5",
      "name": "Content Generation",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1248,
        160
      ]
    },
    {
      "id": "2716785e-3803-43a3-aef4-7bf86d4bf6ac",
      "name": "Google Gemini Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1312,
        384
      ]
    },
    {
      "id": "60eb3846-796e-4ca2-970e-117183a4d25e",
      "name": "Google Gemini Chat Model4",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        960,
        384
      ]
    },
    {
      "id": "f3fa245c-9438-4d4e-9128-c205c58a9c83",
      "name": "Title Generation",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        896,
        160
      ]
    },
    {
      "id": "5d84c204-005a-45d2-8041-bcf278434541",
      "name": "Google Gemini Chat Model5",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1664,
        384
      ]
    },
    {
      "id": "441b35bf-f98e-4f4f-858d-aec48462a1de",
      "name": "Slug Generation",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1600,
        160
      ]
    },
    {
      "id": "6f06b505-81c9-4d16-b359-a31f4d282a70",
      "name": "No Operation, do nothing1",
      "type": "n8n-nodes-base.noOp",
      "position": [
        224,
        352
      ]
    },
    {
      "id": "2e269a50-0b08-4e69-b9e2-fe7a77f3c157",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1360,
        -768
      ],
      "parameters": {
        "width": 528,
        "height": 1280,
        "content": "# Create wordpress posts with reddit content via telegram bot & perplexity\n\n## How it works :\n\n-  Schedule Trigger:  Schedule Trigger fires on the selected day/time.\n\n- Fetching Reddit Posts: The Redd"
      }
    },
    {
      "id": "1f8b7fae-76ee-48e4-8903-1d01679b6719",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -288,
        -688
      ],
      "parameters": {
        "width": 320,
        "height": 192,
        "content": "## 2. Add relevant SubReddits available in your niche\n\nAdd at least 10-15 subreddits relevant to your niche\n"
      }
    },
    {
      "id": "1b402caa-ba28-4ee1-bbb1-57725901d5a6",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -720,
        -880
      ],
      "parameters": {
        "width": 368,
        "height": 384,
        "content": "## 1. Create 2 Data Tables with the following columns:\n\n### a.  Reddit Article Ideas\n- post_id\n- topic\n- status\n\n### b. Reddit Approved Topics\n- post_id\n- topic\n- status\n- title\n- url"
      }
    },
    {
      "id": "2ec7e438-3c4c-41fe-bb95-0a396e0dc9cc",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        112,
        -688
      ],
      "parameters": {
        "width": 320,
        "height": 192,
        "content": "## 3. Add relevant information about the author & your niche\n\nAdd relevant information to replace placeholder info in []\n"
      }
    },
    {
      "id": "bfe4c5a9-c986-4e88-966d-dedd9b73e06d",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        832,
        -688
      ],
      "parameters": {
        "width": 320,
        "height": 192,
        "content": "## 4. Add your Telegram chat ID and API credentials\n\nTo receive article ideas, add your Telegram chat ID and API credentials"
      }
    },
    {
      "id": "7f2a7ad9-4ed1-4639-be1d-74272aa6edb4",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        560,
        -80
      ],
      "parameters": {
        "width": 320,
        "height": 192,
        "content": "## 5. Add your Perplexity API credentials\n\nConfigure your Perplexity API credentials to get a detailed research summary about the article topic.\n"
      }
    },
    {
      "id": "43fe2d8c-a7a0-43f1-9377-d147ab5d7fe8",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1216,
        -80
      ],
      "parameters": {
        "width": 320,
        "height": 192,
        "content": "## 6. Add Author Name & Writing Style\n\nRemove placeholder information to add the author's name and writing style so that the content generated sounds human-written\n"
      }
    },
    {
      "id": "6cfb242d-62a9-488b-9011-c4a450784989",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1840,
        -112
      ],
      "parameters": {
        "width": 352,
        "height": 240,
        "content": "## 7. Configure WordPress credentials and fields as per the requirements\n\nAdd WP API credentials and set status and other fields for the content as  per your requirement\n"
      }
    },
    {
      "id": "fd712f57-615d-43c0-96d1-dd273db1662d",
      "name": "Get Reddit Posts",
      "type": "n8n-nodes-base.reddit",
      "position": [
        -240,
        -464
      ]
    },
    {
      "id": "905eab19-7299-4496-89d5-5590dd6a1ef5",
      "name": "Approval Check",
      "type": "n8n-nodes-base.if",
      "position": [
        -448,
        352
      ]
    },
    {
      "id": "56c8217d-ad99-443e-8562-0ce8a92a86b6",
      "name": "Get Approved Topic",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        -224,
        256
      ]
    },
    {
      "id": "79135850-d00b-411e-a796-83acbf591b82",
      "name": "Check for Already Written Topic",
      "type": "n8n-nodes-base.if",
      "position": [
        0,
        256
      ]
    },
    {
      "id": "9ce13ba9-8417-40f9-a3ea-b1c548d52b01",
      "name": "Set Status to Approved",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        224,
        160
      ]
    },
    {
      "id": "4d55f623-6833-458f-81b8-b2d5c4753c16",
      "name": "Add Approved Topic",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        448,
        160
      ]
    },
    {
      "id": "48c09c0e-01ca-4c7f-b46b-81b5cab6bff3",
      "name": "Research about Approved Topic",
      "type": "n8n-nodes-base.perplexity",
      "position": [
        672,
        160
      ]
    },
    {
      "id": "074586a8-af71-4b16-9a33-41eee63594b4",
      "name": "WP Post Creation",
      "type": "n8n-nodes-base.wordpress",
      "position": [
        1952,
        160
      ]
    },
    {
      "id": "5e9d832c-056a-4a45-9bf0-f42db77ed86e",
      "name": "Add Title & URL to Approved Topic",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        2176,
        160
      ]
    },
    {
      "id": "0ffe15ea-5206-44c0-b198-7cb0ba61270f",
      "name": "Notify User about Article Creation",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2400,
        160
      ]
    },
    {
      "id": "ce68478f-20c8-4221-b818-c87a72896bdf",
      "name": "Periodic Check for Reddit Posts",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -464,
        -464
      ]
    },
    {
      "id": "055ca681-ab7f-4740-9814-f4888012cbd9",
      "name": "Remove Duplicate Reddit Posts Fetched Earlier",
      "type": "n8n-nodes-base.removeDuplicates",
      "position": [
        -48,
        -464
      ]
    },
    {
      "id": "eb6328c4-c558-48e2-92d0-df9a40977b56",
      "name": "Add Topic Data to DataTable",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        736,
        -464
      ]
    },
    {
      "id": "34c352fe-7678-4652-9658-232e021bac4c",
      "name": "Send Article Ideas to User",
      "type": "n8n-nodes-base.telegram",
      "position": [
        960,
        -464
      ]
    }
  ],
  "connections": {
    "Approval Check": {
      "main": [
        [
          {
            "node": "Get Approved Topic",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Topic Data": {
      "main": [
        [
          {
            "node": "Add Topic Data to DataTable",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Slug Generation": {
      "main": [
        [
          {
            "node": "WP Post Creation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Reddit Posts": {
      "main": [
        [
          {
            "node": "Remove Duplicate Reddit Posts Fetched Earlier",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Webhook": {
      "main": [
        [
          {
            "node": "Approval Check",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Title Generation": {
      "main": [
        [
          {
            "node": "Content Generation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "WP Post Creation": {
      "main": [
        [
          {
            "node": "Add Title & URL to Approved Topic",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add Approved Topic": {
      "main": [
        [
          {
            "node": "Research about Approved Topic",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Content Generation": {
      "main": [
        [
          {
            "node": "Slug Generation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Approved Topic": {
      "main": [
        [
          {
            "node": "Check for Already Written Topic",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Article Idea": {
      "main": [
        [
          {
            "node": "Set Topic Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Status to Approved": {
      "main": [
        [
          {
            "node": "Add Approved Topic",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Article Idea",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Content Generation",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model4": {
      "ai_languageModel": [
        [
          {
            "node": "Title Generation",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model5": {
      "ai_languageModel": [
        [
          {
            "node": "Slug Generation",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Add Topic Data to DataTable": {
      "main": [
        [
          {
            "node": "Send Article Ideas to User",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Research about Approved Topic": {
      "main": [
        [
          {
            "node": "Title Generation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check for Already Written Topic": {
      "main": [
        [
          {
            "node": "Set Status to Approved",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "No Operation, do nothing1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Periodic Check for Reddit Posts": {
      "main": [
        [
          {
            "node": "Get Reddit Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add Title & URL to Approved Topic": {
      "main": [
        [
          {
            "node": "Notify User about Article Creation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Remove Duplicate Reddit Posts Fetched Earlier": {
      "main": [
        [
          {
            "node": "Generate Article Idea",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}