Scheduled AI Content Generation and Multi-Platform Publishing - n8n Workflow

Automate content creation using GPT-4 and DALL-E (via Langchain), then distribute the optimized text and image across WordPress, LinkedIn, Facebook, Discord, and Telegram using this advanced n8n workflow.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?


  • Content marketers and small agencies needing high-volume, automated content production.

  • Technical users looking for advanced n8n templates utilizing Langchain for AI orchestration.

  • Developers needing a robust n8n workflow example for integrating AI, search (SerpAPI), image generation (DALL-E), and multi-channel posting.

  • Anyone seeking a powerful n8n node combination for automating distribution across social media and blogs.

Overview

This comprehensive n8n workflow solves the complex challenge of producing unique, engaging content and distributing it simultaneously across numerous platforms without manual intervention. Starting with a designated topic, the automation leverages a powerful Langchain n8n node to interact with large language models (LLMs) and external search tools (SerpAPI) to generate high-quality text. Subsequently, it uses another AI n8n node to create a corresponding, high-impact visual (via DALL-E).

This is one of the most powerful n8n templates for content teams, as it centralizes content creation, handles image editing (like watermarking), and manages the intricate publishing requirements for WordPress, LinkedIn, Facebook, Telegram, Discord, and even specialized services like Rapiwa (for WhatsApp). This n8n automation significantly reduces operational load while maximizing content reach.

How it Works

This multi-stage n8n workflow begins execution using a robust scheduled n8n trigger.


  1. Trigger & Topic Definition: The workflow is activated by the Schedule n8n trigger. A subsequent Set n8n node defines the initial 'tropic' (topic) for the AI agent.

  2. Content Generation (LLM & Search): The Specific Content Creation Langchain agent runs. This agent uses an OpenAI Chat Model (LLM) for processing and reasoning, and integrates the SerpAPI tool, allowing the AI to pull current data from the web for timely and accurate content generation.

  3. Conditional Check: An If n8n node checks the output of the content generation step. If content is successfully created, the flow continues.

  4. Image Prompting: The Generate Prompt Langchain agent takes the generated text and refines it into an optimized prompt specifically for image generation (DALL-E).

  5. Image Creation & Editing: The workflow uses the Generate an image1 n8n node (OpenAI/DALL-E) to create the visual asset. The Add Watermark Edit Image n8n node then applies branding or necessary modifications.

  6. Multi-Platform Distribution: The content and processed image are simultaneously pushed to several channels:

Social Media: Facebook, Telegram, LinkedIn (Profile and Page posts), and Discord.
Blogging (WordPress): The workflow performs a detailed publishing sequence, including creating the post, uploading the image as media, setting the image metadata, and finally designating it as the featured image using multiple HTTP Request n8n nodes for precise API control.

  1. Secondary Communication: After the main social posts are complete, the flow continues to send notifications/messages via Rapiwa (WhatsApp integration), a second Telegram n8n node, and a Gmail n8n node.

Installation Guide

To deploy this comprehensive n8n workflow, follow these steps:


  1. Import the n8n Workflow: Copy the provided JSON data. In your n8n instance, navigate to 'Workflows' and click 'New'. Select 'Import from JSON' and paste the code.

  2. Credential Setup: This workflow requires credentials for numerous services. You must configure connections for the following n8n node types:

OpenAI (for Langchain LLMs and DALL-E image generation).
SerpAPI (for the AI agent's web search capabilities).
WordPress, Facebook Graph API, Telegram, LinkedIn, Discord, Rapiwa, and Gmail.
Note: Ensure the HTTP Request n8n nodes used for WordPress feature image setup are correctly configured with your site's authentication details.

  1. Configure the Trigger: The Schedule n8n trigger needs to be activated and configured to run at your desired frequency (daily, hourly, etc.).

  2. Activate: Once credentials and the n8n trigger are configured, set the workflow status to 'Active'.

Node Details

Schedule (n8n trigger): Defines when the automation runs (e.g., daily). This is the starting n8n node for the automated content cycle.
Add tropic (Set): The initial n8n node used to define the core subject matter for the AI agents.
Specific Content Creation (Langchain Agent): The primary content generation n8n node. It orchestrates the LLM and the SerpAPI tool to research and write the article body and social media captions.
SerpAPI (Langchain Tool): Provides real-time web search capabilities to the AI agent, ensuring content relevance and timeliness.
OpenAI Chat Model (Langchain LLM): Connects the Langchain agents to the robust LLM (GPT) to perform complex reasoning and text generation.
Generate Prompt (Langchain Agent): Refines the generated text into a visual description suitable for DALL-E.
Generate an image1 (OpenAI n8n node): Calls the DALL-E API to produce the visual asset based on the refined prompt.
Add Watermark (Edit Image): Post-processes the AI-generated image, typically used for resizing or applying a watermark before distribution.
Create WordPress Post (WordPress n8n node): Publishes the generated text content directly to a WordPress site.
Facebook Image post (Facebook Graph API n8n node): Posts the finalized image and corresponding text to a Facebook Page or Group.
Create profile image post & Create page image post (LinkedIn n8n node): Publishes the content to both personal profiles and organizational pages on LinkedIn.
Post on Discord Channel (Discord n8n node): Distributes the content instantly to a specified Discord server channel.


  • Rapiwa (Rapiwa n8n node): Used for advanced messaging, likely targeting WhatsApp distribution, demonstrating the wide scope of this n8n workflow.

Related n8n Workflows

Paid

Nodes: 19 Nodes
Updated: December 26 2025
View all
Created by

SpaGreen Creative is a leading software company specializing in SaaS solutions, AI automation, and Laravel/Vue.js development. With 800+ eCommerce platforms and 8,000+ global clients, we deliver powerful tools for OTT, CRM, ERP, and WhatsApp marketing. We combine innovation and tech to build scalable digital products.