{
  "id": 11652,
  "name": "News collection & multi-platform publishing with GPT, DALL-E, & social media API",
  "description": "## Who it's for\nThis **n8n workflow** automatically generates AI-powered content about local news and publishes it across multiple social media platforms. The workflow runs on a schedule, fetches the latest news about a specific topic, creates relevant images with watermarks, and posts the content to various platforms including WordPress, Facebook, Telegram, LinkedIn, and Discord.\n\n## Features\n- **Scheduled Content Generation**: Triggers every 4 hours to create fresh content\n- **AI-Powered News Collection**: Uses LangChain agent with OpenAI and SerpAPI to find the latest news about a specific topic (Sirajganj district)\n- **Image Generation**: Creates AI images based on the news content using OpenAI's image generation capabilities\n- **Watermarking**: Automatically adds branded watermarks to all generated images\n- **Multi-Platform Publishing**: Posts content and images to:\n  - WordPress (with featured images)\n  - Facebook\n  - Telegram\n  - LinkedIn (both profile and company pages)\n  - Discord\n- **Notification System**: Sends confirmation messages via WhatsApp (Rapiwa), Telegram, and Gmail after successful posting\n- **Content Validation**: Checks if news was found before proceeding with image generation and posting\n\n## Requirements\n- **OpenAI API credentials** for content generation and image creation\n- **SerpAPI credentials** for news search\n- **WordPress API credentials** for posting articles and media\n- **Facebook Graph API credentials** for page posting\n- **Telegram Bot API credentials** for channel posting\n- **LinkedIn OAuth2 API credentials** for profile and company page posting\n- **Discord Bot API credentials** for channel posting\n- **Rapiwa API credentials** for WhatsApp notifications\n- **Gmail OAuth2 credentials** for email notifications\n\n### Configure Credentials\n- **OpenAI API**: Set up credentials with access to GPT-4 and DALL-E models\n- **WordPress API**: Configure access to your WordPress site\n- **Social Media APIs**: Set up credentials for Facebook, Telegram, LinkedIn, and Discord\n- **Notification Services**: Configure Rapiwa for WhatsApp and Gmail for email\n\n## Important Notes\n- **Topic Configuration**: The workflow is currently set to fetch news about \"Sirajganj district\", but this can be modified in the \"Add tropic\" node\n- **Image Watermarking**: All images are watermarked with \"Sirajganj APP\" and Playstore information\n- **Content Validation**: The workflow includes a check to ensure news content exists before proceeding with image generation\n- **Platform-Specific Formatting**: Each platform receives appropriately formatted content and image dimensions\n- **Notification System**: After successful posting to all platforms, confirmation messages are sent via multiple channels\n\n## Support & Help\n- **WhatsApp**: [Chat on WhatsApp](https://wa.me/8801322827799)\n- **Discord**: [SpaGreen Community](https://discord.gg/SsCChWEP)\n- **Facebook Group**: [SpaGreen Support](https://www.facebook.com/groups/spagreenbd)\n- **Website**: [https://spagreen.net](https://spagreen.net)\n- **Developer Portfolio**: [Codecanyon SpaGreen](https://codecanyon.net/user/spagreen/portfolio)\n",
  "categories": [
    {
      "id": 31,
      "name": "Content Creation"
    },
    {
      "id": 51,
      "name": "Multimodal AI"
    }
  ],
  "totalViews": 85,
  "createdAt": "2025-12-10T11:53:56.097Z",
  "workflow": {
    "id": "5gbjHcCpxmtwmpMD",
    "meta": {
      "instanceId": "cb9a1e5321767b6316634728341237e564b2587ab15b74ca0a89eb02a53484d6",
      "templateCredsSetupCompleted": true
    },
    "name": "Automate Multi-Platform Social Media Specific Content Creation with AI",
    "tags": [],
    "nodes": [
      {
        "id": "b2fefee9-c136-4480-a6ff-4de5e6aefa2a",
        "name": "Schedule",
        "type": "n8n-nodes-base.scheduleTrigger",
        "position": [
          -1856,
          320
        ],
        "parameters": {},
        "typeVersion": 1.2
      },
      {
        "id": "fe231730-9d02-4f5a-be22-67f7e03d2b9c",
        "name": "Wait",
        "type": "n8n-nodes-base.wait",
        "position": [
          -784,
          304
        ],
        "webhookId": "829ccbe5-ea02-4128-bc8c-43897bca1855",
        "parameters": {},
        "typeVersion": 1.1
      },
      {
        "id": "f65805d2-ac87-431d-b5d6-57d2e8a59ef4",
        "name": "If",
        "type": "n8n-nodes-base.if",
        "position": [
          -992,
          320
        ],
        "parameters": {},
        "typeVersion": 2.2
      },
      {
        "id": "11710021-6f21-494e-adea-2bce3f6c46d2",
        "name": "Add Watermark",
        "type": "n8n-nodes-base.editImage",
        "position": [
          80,
          304
        ],
        "parameters": {},
        "typeVersion": 1
      },
      {
        "id": "c1373d3b-600f-4921-9ee5-e7b67b074e97",
        "name": "Create WordPress Post",
        "type": "n8n-nodes-base.wordpress",
        "position": [
          448,
          -128
        ],
        "parameters": {},
        "typeVersion": 1
      },
      {
        "id": "72ead795-2fb6-4525-9902-cdaa308f479c",
        "name": "Edit Image",
        "type": "n8n-nodes-base.editImage",
        "position": [
          848,
          -128
        ],
        "parameters": {},
        "typeVersion": 1
      },
      {
        "id": "2a68afad-839b-4282-811f-d8749eba90ff",
        "name": "upload media to wp",
        "type": "n8n-nodes-base.httpRequest",
        "position": [
          1040,
          -128
        ],
        "parameters": {},
        "typeVersion": 4.2
      },
      {
        "id": "93b461bc-8ec3-4fdf-b776-ac05fa23b2b2",
        "name": "upload image to meta data",
        "type": "n8n-nodes-base.httpRequest",
        "position": [
          1248,
          -128
        ],
        "parameters": {},
        "typeVersion": 4.2
      },
      {
        "id": "ed6bfe58-71f8-4020-8ca5-5bc9bd2ace54",
        "name": "set featured image",
        "type": "n8n-nodes-base.httpRequest",
        "position": [
          1440,
          -128
        ],
        "parameters": {},
        "typeVersion": 4.2
      },
      {
        "id": "b0fa08ab-4415-4dd3-9c69-befe8fec4682",
        "name": "Facebook Image post",
        "type": "n8n-nodes-base.facebookGraphApi",
        "position": [
          448,
          64
        ],
        "parameters": {},
        "typeVersion": 1
      },
      {
        "id": "58f71b88-a18d-4d40-b1ed-a7ca9f074dbd",
        "name": "Telegram Image post",
        "type": "n8n-nodes-base.telegram",
        "position": [
          448,
          224
        ],
        "webhookId": "2fd844a5-c820-44e1-a0aa-92c60a5af71d",
        "parameters": {},
        "typeVersion": 1.2
      },
      {
        "id": "de0d4d2e-852d-4495-b887-e4cfb166c812",
        "name": "Create profile image post",
        "type": "n8n-nodes-base.linkedIn",
        "position": [
          448,
          400
        ],
        "parameters": {},
        "typeVersion": 1
      },
      {
        "id": "f572550e-6178-4182-8bb7-66c4f9cb420b",
        "name": "Create page image post",
        "type": "n8n-nodes-base.linkedIn",
        "position": [
          448,
          560
        ],
        "parameters": {},
        "typeVersion": 1
      },
      {
        "id": "f09adf4c-e5f9-4d3d-be62-1cb917ab3a12",
        "name": "HTTP Request1",
        "type": "n8n-nodes-base.httpRequest",
        "position": [
          656,
          -128
        ],
        "parameters": {},
        "typeVersion": 4.2
      },
      {
        "id": "4b4197bf-e6b9-42ca-920f-e6a30b7967dc",
        "name": "Do nothing",
        "type": "n8n-nodes-base.noOp",
        "position": [
          1184,
          720
        ],
        "parameters": {},
        "typeVersion": 1
      },
      {
        "id": "6e80942d-d6cf-4374-9baf-eb8697e14552",
        "name": "Rapiwa",
        "type": "n8n-nodes-rapiwa.rapiwa",
        "position": [
          1424,
          720
        ],
        "parameters": {},
        "typeVersion": 1
      },
      {
        "id": "066db1ce-7355-4444-bca8-7c27e85d91b2",
        "name": "Send a text message",
        "type": "n8n-nodes-base.telegram",
        "position": [
          1424,
          560
        ],
        "webhookId": "9583c063-c514-4384-82b3-65f915fff837",
        "parameters": {},
        "typeVersion": 1.2
      },
      {
        "id": "a841bf4a-8f99-482f-aab9-a5781a3bc2ce",
        "name": "Send a message",
        "type": "n8n-nodes-base.gmail",
        "position": [
          1424,
          880
        ],
        "webhookId": "311e2894-2bf2-4c5e-840f-b86870eb7efa",
        "parameters": {},
        "typeVersion": 2.1
      },
      {
        "id": "799b73ca-a0ed-4a82-bffa-d06f024320ca",
        "name": "Sticky Note",
        "type": "n8n-nodes-base.stickyNote",
        "position": [
          1152,
          496
        ],
        "parameters": {
          "content": ""
        },
        "typeVersion": 1
      },
      {
        "id": "99c7d965-222a-461e-ae98-ad0a90ed84b4",
        "name": "Post on Discord Channel",
        "type": "n8n-nodes-base.discord",
        "position": [
          448,
          720
        ],
        "webhookId": "3b376a24-00e6-4b37-8e29-393a4f27e28a",
        "parameters": {},
        "typeVersion": 2
      },
      {
        "id": "e3f98bf4-74c6-4b3a-8e19-4349393f3bba",
        "name": "Specific Content Creation",
        "type": "@n8n/n8n-nodes-langchain.agent",
        "position": [
          -1312,
          320
        ],
        "parameters": {},
        "typeVersion": 2.2
      },
      {
        "id": "4b475194-47fa-4379-882f-603be7800d17",
        "name": "Generate Prompt",
        "type": "@n8n/n8n-nodes-langchain.agent",
        "position": [
          -576,
          304
        ],
        "parameters": {},
        "typeVersion": 2.2
      },
      {
        "id": "ea57171c-b260-411c-943a-690e8120e561",
        "name": "OpenAI Chat Model",
        "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
        "position": [
          -1312,
          528
        ],
        "parameters": {},
        "typeVersion": 1.2
      },
      {
        "id": "92c43f89-cacd-4ceb-a719-228b9e99b3a1",
        "name": "Generate an image1",
        "type": "@n8n/n8n-nodes-langchain.openAi",
        "position": [
          -272,
          304
        ],
        "parameters": {},
        "typeVersion": 1.8
      },
      {
        "id": "73695533-6d57-44e3-a12c-b229c70a1c03",
        "name": "OpenAI Chat Model1",
        "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
        "position": [
          -576,
          480
        ],
        "parameters": {},
        "typeVersion": 1.2
      },
      {
        "id": "5cebc30f-b727-43c5-8ea4-bd80f6432e44",
        "name": "SerpAPI",
        "type": "@n8n/n8n-nodes-langchain.toolSerpApi",
        "position": [
          -1168,
          528
        ],
        "parameters": {},
        "typeVersion": 1
      },
      {
        "id": "f7c9dc1d-c3ba-4610-9cdb-a49badcdba9d",
        "name": "Add tropic",
        "type": "n8n-nodes-base.set",
        "position": [
          -1648,
          320
        ],
        "parameters": {},
        "typeVersion": 3.4
      },
      {
        "id": "5141618f-53b9-427d-8b00-47d7a216f2b3",
        "name": "Sticky Note1",
        "type": "n8n-nodes-base.stickyNote",
        "position": [
          400,
          -336
        ],
        "parameters": {
          "content": ""
        },
        "typeVersion": 1
      },
      {
        "id": "5a2170a3-d660-4a95-a0c0-899f03860dce",
        "name": "Sticky Note3",
        "type": "n8n-nodes-base.stickyNote",
        "position": [
          -1360,
          208
        ],
        "parameters": {
          "content": ""
        },
        "typeVersion": 1
      },
      {
        "id": "554ef8ce-6a76-4421-a4eb-7e09c9b94513",
        "name": "Sticky Note4",
        "type": "n8n-nodes-base.stickyNote",
        "position": [
          -48,
          192
        ],
        "parameters": {
          "content": ""
        },
        "typeVersion": 1
      },
      {
        "id": "273f5d82-884a-46c4-90ac-b0bf9e83e7a5",
        "name": "Sticky Note5",
        "type": "n8n-nodes-base.stickyNote",
        "position": [
          -640,
          128
        ],
        "parameters": {
          "content": ""
        },
        "typeVersion": 1
      },
      {
        "id": "ffbf0a55-474e-46a6-ba00-4d1c866b7b57",
        "name": "Sticky Note2",
        "type": "n8n-nodes-base.stickyNote",
        "position": [
          -1680,
          240
        ],
        "parameters": {
          "content": ""
        },
        "typeVersion": 1
      },
      {
        "id": "19682f26-eb51-42d4-9934-9b49507f07d0",
        "name": "Sticky Note6",
        "type": "n8n-nodes-base.stickyNote",
        "position": [
          -2928,
          16
        ],
        "parameters": {
          "content": ""
        },
        "typeVersion": 1
      }
    ],
    "active": false,
    "pinData": {},
    "settings": {
      "executionOrder": "v1"
    },
    "versionId": "f45d93b4-0b0e-4fa2-9c08-f579619b7dcb",
    "connections": {
      "If": {
        "main": [
          [
            {
              "node": "Wait",
              "type": "main",
              "index": 0
            }
          ]
        ]
      },
      "Wait": {
        "main": [
          [
            {
              "node": "Generate Prompt",
              "type": "main",
              "index": 0
            }
          ]
        ]
      },
      "SerpAPI": {
        "ai_tool": [
          [
            {
              "node": "Specific Content Creation",
              "type": "ai_tool",
              "index": 0
            }
          ]
        ]
      },
      "Schedule": {
        "main": [
          [
            {
              "node": "Add tropic",
              "type": "main",
              "index": 0
            }
          ]
        ]
      },
      "Add tropic": {
        "main": [
          [
            {
              "node": "Specific Content Creation",
              "type": "main",
              "index": 0
            }
          ]
        ]
      },
      "Do nothing": {
        "main": [
          [
            {
              "node": "Rapiwa",
              "type": "main",
              "index": 0
            },
            {
              "node": "Send a text message",
              "type": "main",
              "index": 0
            },
            {
              "node": "Send a message",
              "type": "main",
              "index": 0
            }
          ]
        ]
      },
      "Edit Image": {
        "main": [
          [
            {
              "node": "upload media to wp",
              "type": "main",
              "index": 0
            }
          ]
        ]
      },
      "Add Watermark": {
        "main": [
          [
            {
              "node": "Create WordPress Post",
              "type": "main",
              "index": 0
            },
            {
              "node": "Facebook Image post",
              "type": "main",
              "index": 0
            },
            {
              "node": "Telegram Image post",
              "type": "main",
              "index": 0
            },
            {
              "node": "Create profile image post",
              "type": "main",
              "index": 0
            },
            {
              "node": "Create page image post",
              "type": "main",
              "index": 0
            },
            {
              "node": "Post on Discord Channel",
              "type": "main",
              "index": 0
            }
          ]
        ]
      },
      "HTTP Request1": {
        "main": [
          [
            {
              "node": "Edit Image",
              "type": "main",
              "index": 0
            }
          ]
        ]
      },
      "Generate Prompt": {
        "main": [
          [
            {
              "node": "Generate an image1",
              "type": "main",
              "index": 0
            }
          ]
        ]
      },
      "OpenAI Chat Model": {
        "ai_languageModel": [
          [
            {
              "node": "Specific Content Creation",
              "type": "ai_languageModel",
              "index": 0
            }
          ]
        ]
      },
      "Generate an image1": {
        "main": [
          [
            {
              "node": "Add Watermark",
              "type": "main",
              "index": 0
            }
          ]
        ]
      },
      "OpenAI Chat Model1": {
        "ai_languageModel": [
          [
            {
              "node": "Generate Prompt",
              "type": "ai_languageModel",
              "index": 0
            }
          ]
        ]
      },
      "upload media to wp": {
        "main": [
          [
            {
              "node": "upload image to meta data",
              "type": "main",
              "index": 0
            }
          ]
        ]
      },
      "Create WordPress Post": {
        "main": [
          [
            {
              "node": "HTTP Request1",
              "type": "main",
              "index": 0
            }
          ]
        ]
      },
      "Post on Discord Channel": {
        "main": [
          [
            {
              "node": "Do nothing",
              "type": "main",
              "index": 0
            }
          ]
        ]
      },
      "Specific Content Creation": {
        "main": [
          [
            {
              "node": "If",
              "type": "main",
              "index": 0
            }
          ]
        ]
      },
      "upload image to meta data": {
        "main": [
          [
            {
              "node": "set featured image",
              "type": "main",
              "index": 0
            }
          ]
        ]
      }
    }
  },
  "workflowInfo": {
    "nodeCount": 33,
    "nodeTypes": {
      "n8n-nodes-base.if": {
        "count": 1
      },
      "n8n-nodes-base.set": {
        "count": 1
      },
      "n8n-nodes-base.noOp": {
        "count": 1
      },
      "n8n-nodes-base.wait": {
        "count": 1
      },
      "n8n-nodes-base.gmail": {
        "count": 1
      },
      "n8n-nodes-base.discord": {
        "count": 1
      },
      "n8n-nodes-base.linkedIn": {
        "count": 2
      },
      "n8n-nodes-base.telegram": {
        "count": 2
      },
      "n8n-nodes-rapiwa.rapiwa": {
        "count": 1
      },
      "n8n-nodes-base.editImage": {
        "count": 2
      },
      "n8n-nodes-base.wordpress": {
        "count": 1
      },
      "n8n-nodes-base.stickyNote": {
        "count": 7
      },
      "n8n-nodes-base.httpRequest": {
        "count": 4
      },
      "@n8n/n8n-nodes-langchain.agent": {
        "count": 2
      },
      "n8n-nodes-base.scheduleTrigger": {
        "count": 1
      },
      "@n8n/n8n-nodes-langchain.openAi": {
        "count": 1
      },
      "n8n-nodes-base.facebookGraphApi": {
        "count": 1
      },
      "@n8n/n8n-nodes-langchain.toolSerpApi": {
        "count": 1
      },
      "@n8n/n8n-nodes-langchain.lmChatOpenAi": {
        "count": 2
      }
    }
  },
  "nodes": [
    "Schedule",
    "Wait",
    "If",
    "Add Watermark",
    "Create WordPress Post",
    "Edit Image",
    "upload media to wp",
    "upload image to meta data",
    "set featured image",
    "Facebook Image post",
    "Telegram Image post",
    "Create profile image post",
    "Create page image post",
    "HTTP Request1",
    "Do nothing",
    "Rapiwa",
    "Send a text message",
    "Send a message",
    "Sticky Note",
    "Post on Discord Channel",
    "Specific Content Creation",
    "Generate Prompt",
    "OpenAI Chat Model",
    "Generate an image1",
    "OpenAI Chat Model1",
    "SerpAPI",
    "Add tropic",
    "Sticky Note1",
    "Sticky Note3",
    "Sticky Note4",
    "Sticky Note5",
    "Sticky Note2",
    "Sticky Note6"
  ],
  "nodeTypes": [
    "@n8n/n8n-nodes-langchain.agent",
    "n8n-nodes-base.gmail",
    "n8n-nodes-base.wait",
    "n8n-nodes-base.telegram",
    "@n8n/n8n-nodes-langchain.lmChatOpenAi",
    "n8n-nodes-base.editImage",
    "n8n-nodes-base.linkedIn",
    "n8n-nodes-base.wordpress",
    "@n8n/n8n-nodes-langchain.openAi",
    "@n8n/n8n-nodes-langchain.toolSerpApi",
    "n8n-nodes-base.stickyNote",
    "n8n-nodes-base.if",
    "n8n-nodes-base.set",
    "n8n-nodes-base.discord",
    "n8n-nodes-base.httpRequest",
    "n8n-nodes-base.noOp",
    "n8n-nodes-base.facebookGraphApi",
    "n8n-nodes-rapiwa.rapiwa",
    "n8n-nodes-base.scheduleTrigger"
  ]
}