AI-Powered Content Creation and Dev.to Publishing - n8n Workflow

Automate technical article creation for Dev.to using an n8n workflow. This n8n automation leverages OpenAI, Gemini, and Cloudinary for drafting content, generating images, and publishing.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Content creators and technical writers needing to scale production rapidly.
Developers looking for powerful n8n templates integrating LangChain and AI models.
Users seeking a practical n8n workflow example for leveraging OpenAI and Gemini generation capabilities.
Teams requiring automated publishing to developer platforms like Dev.to.

Overview

Scaling technical content production manually is time-consuming. This specialized n8n workflow solves this by fully automating the process from concept generation to final publication on Dev.to. It utilizes the sophisticated capabilities of the LangChain n8n node to orchestrate multiple steps: planning the article structure, generating unique supporting images (using Gemini/OpenAI), uploading these images to Cloudinary, and finally compiling the complete, SEO-friendly article body before posting via the Dev.to API. This efficient n8n automation is a perfect showcase of combining LLMs and custom APIs within a single n8n environment. Utilizing this n8n template dramatically increases content velocity.

How it Works

This complex n8n workflow begins with the When clicking ‘Execute workflow’ n8n trigger.


  1. Initialization: The Set input data/credentials n8n node establishes the initial topic and parameters for the article generation.

  2. AI Planning Phase: The LangChain AI Agent n8n node processes the input, using an OpenAI Chat Model and a Structured Output Parser to define the article sections and necessary image prompts. This is where the core logic of the n8n automation resides.

  3. Splitting and Looping: The output is routed through the Split Out n8n node and then controlled by the Loop Over Items n8n node, initiating a batch process for each defined section or image generation task.

  4. Image Handling: Inside the loop, the Generate an image1 (Google Gemini) n8n node creates a visual asset based on the extracted prompt. This image is then uploaded using the Post image Cloudinary2 HTTP Request n8n node, which securely hosts the image and returns a public URL. The Set Output Image n8n node standardizes this URL for the next steps.

  5. Aggregation: Once the loop completes, the Aggregate n8n node collects all generated content fragments and image URLs into a coherent data structure.

  6. Final Drafting: The Article writer LangChain n8n node then uses this aggregated data, along with its dedicated OpenAI Chat Model1, to draft the final article markdown, seamlessly incorporating the hosted image URLs. This n8n node ensures the content is ready for publishing.

  7. Publishing: Finally, the Post article on dev.to HTTP Request n8n node sends the complete, structured article content, including the image link, to the Dev.to API for immediate publication. This completes the sophisticated n8n workflow cycle.

Installation Guide


  1. Importing the n8n workflow: Copy the provided n8n workflow JSON data and paste it into your n8n canvas using the "Import Workflow" function.

  2. Credentials Setup:

OpenAI/Gemini: Configure credentials for the LangChain AI Agent and related OpenAI Chat Model n8n node instances. This typically requires setting up your API keys for the respective large language models.
Cloudinary: Configure the HTTP Request n8n node named Post image Cloudinary2 with your Cloudinary API key and upload parameters (e.g., using Basic Auth or API headers).
* Dev.to: Configure the final HTTP Request n8n node, Post article on dev.to, ensuring it uses a Bearer Token or API key authorized for publishing to your Dev.to account. This is a critical step for the n8n workflow to succeed.

  1. Initial Input: Customize the payload in the Set input data/credentials n8n node to define the specific technical topic and requirements for your first article generation run.

  2. Execution: Use the When clicking ‘Execute workflow’ n8n trigger to manually test the complete n8n workflow. For scheduled execution, you can replace the manual n8n trigger with a Schedule Trigger n8n node.

Node Details

When clicking ‘Execute workflow’ (Manual Trigger): The initiating n8n trigger for manual testing and execution of the n8n workflow.
Set input data/credentials (Set node): Defines the initial article prompt, topic, and any necessary variables passed into the LangChain Agent n8n node.
AI Agent (LangChain node): The core intelligence of this n8n workflow. It orchestrates the initial content plan and determines the steps required, leveraging the connected OpenAI Chat Model and Structured Output Parser1 n8n nodes for complex reasoning.
Loop Over Items (Split In Batches node): Manages the iterative processing, ensuring each image generation and upload task within the n8n workflow is handled sequentially before aggregation.
Generate an image1 (Google Gemini node): Generates high-quality images based on dynamic prompts created by the AI Agent, a crucial part of this multimedia n8n template.
Post image Cloudinary2 (HTTP Request node): Handles the secure file upload to Cloudinary, transforming the generated binary data into a publicly accessible URL required for the Dev.to article. This is a custom n8n node configuration.
Article writer (LangChain LLM Chain node): Takes the finalized structure and image URLs and uses a dedicated OpenAI Chat Model1 n8n node to produce the final, ready-to-publish Markdown content.
Post article on dev.to (HTTP Request node): The final action n8n node, using a POST request to publish the fully formatted article to the Dev.to API endpoint, completing the n8n automation.

Related n8n Workflows

Paid

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

AI Automation Expert | Web & Mobile App Integrator With 2+ years of experience, I build smart automations, web & mobile app workflows, and scalable platforms using tools like n8n, Make, and more. I help businesses reduce operational costs, save time, and scale faster with AI-powered solutions. For business enquiries, send me an email at [email protected]

Featured*