AI Automation · Workflow Engineering

N8N AI Post Publisher — Automated AI News-to-Social Pipeline

Fully automated system that discovers AI news, generates platform-ready content with OpenAI, and publishes to Instagram, Facebook & X — zero manual intervention.

 My Role: AI Engineer
3
Platforms Auto-Published
Instagram · Facebook · X
Daily
Automated Execution
Zero manual intervention
100%
Duplicate Prevention
Smart detection logic
AI
Text + Image Generation
OpenAI powered

What We Built & Why

The N8N AI Post Publisher is a fully autonomous content pipeline built to eliminate the manual effort of discovering, writing, and publishing AI-related news to social media. Running on a daily schedule via n8n, it fetches the latest AI news, processes it with OpenAI, generates captions and visuals, and publishes across multiple platforms — all without any human input.

Core challenge solved: Staying consistently active on social media with high-quality, relevant AI content requires hours of daily effort. This pipeline reduced that to zero manual work while improving content relevance and posting consistency.

Time Saved
Daily manual posting eliminated
Consistency
Never miss a daily post
No Duplicates
Intelligent re-check logic
Scalable
Add platforms easily
AI workflow automation pipeline

The Automated Workflow — Step by Step

The entire pipeline runs automatically on a daily schedule. Here's exactly what happens from trigger to publish — no human input required at any step.

Daily Trigger

n8n Cloud Scheduler fires the workflow automatically every day at the configured time — no manual trigger needed.

AI News Discovery

Fetches the latest AI-related news from trusted RSS/API news sources and retrieves a candidate article for processing.

Duplicate Detection

Checks Google Sheets to see if the article was already published. If yes, triggers smart retry — fetches a new article.

Full Article Retrieval

Retrieves and cleans the complete article content — stripping HTML, ads, and noise — ready for AI consumption.

AI Content Generation

OpenAI generates platform-optimized captions for each social channel. DALL·E generates a matching AI visual.

Multi-Platform Publish

Automatically posts to Instagram, Facebook, and X with platform-specific formatting and the generated image.

Storage & Logging

Generated images saved to Google Drive. Post metadata logged to Google Sheets for tracking and future duplicate checks.

Smart Retry

If duplicate detected at step 3, workflow re-fetches a fresh article and restarts the pipeline — zero manual recovery needed.

n8n workflow automation pipeline
What makes it smart
The workflow handles its own error recovery — duplicate detection triggers a re-fetch automatically
Google Sheets acts as a lightweight database — no external DB needed
Each platform gets individually optimized captions — not a one-size-fits-all copy-paste
AI-generated visuals ensure every post looks unique and on-brand

What the System Does

Automated Scheduling
· Time-based execution via n8n Cloud Scheduler
· Runs daily without manual intervention
· Configurable schedule for custom timing
· HTTP trigger support for on-demand runs
AI Content Generation
· OpenAI GPT generates platform-ready captions
· DALL·E generates AI-based visual per article
· Prompt engineering for each platform's tone
· Full article context fed into OpenAI for accuracy
Duplicate Detection Logic
· Checks Google Sheets before every post
· Matches by article URL / unique identifier
· Auto re-fetches if duplicate detected
· Prevents repetitive content across all platforms
Multi-Platform Publishing
· Posts to Instagram, Facebook, and X
· Platform-specific caption formatting
· Attaches AI-generated image per post
· API-based publishing — fully headless
Storage & Logging
· AI-generated images saved to Google Drive
· Post metadata tracked in Google Sheets
· Publish timestamp, article URL, platform logged
· Feeds back into duplicate detection on next run
Article Processing
· Full article content retrieved from source URL
· HTML / ad / noise stripping before AI input
· Clean text prepared for OpenAI prompt
· Trusted news sources filtered at ingestion

Automatic Publishing to 3 Platforms

Each platform gets an independently generated caption — optimized for its audience, character limits, hashtag conventions, and tone. One AI news article becomes three unique, platform-ready posts.

Instagram

Visual-first caption with strategic hashtags, engaging hook, and AI-generated image optimized for feed and Reels.

Caption + AI Image
X (Twitter)

Concise, punchy caption within character limits — crafted for X's fast-moving feed with relevant hashtags.

Caption + AI Image

OpenAI — Text & Image Generation

OpenAI API AI content generation
GPT — Caption Generation

Full article content is passed as context to GPT. Three separate prompt calls generate platform-specific captions — each with the right tone, length, and hashtag strategy for Instagram, Facebook, and X.

DALL·E — AI Visual Generation

A custom image prompt (derived from the article headline and topic) is sent to DALL·E to generate a unique, on-brand visual for every post. The image is then saved to Google Drive and attached to all platform posts.

Prompt engineering: Custom system prompts were crafted for each platform to ensure GPT consistently outputs captions in the right format — no post-processing cleanup required. The article content provides grounding to prevent hallucination.

Google Sheets + Drive as Backend

Google Sheets — Lightweight DB

Every published post is logged with article URL, publish timestamp, and platform. This log powers the duplicate detection check on every future run.

Google Drive — Asset Storage

All AI-generated images are saved to a structured Google Drive folder — organized by date. Provides a persistent asset library for every published post.

Why no external database? Google Sheets & Drive provide a zero-cost, zero-maintenance backend that integrates natively with n8n — no DB server setup, no credentials management, no extra cost. For a daily publishing pipeline, it's the ideal lightweight solution.

What Was Built & Applied

n8n Workflow Automation
OpenAI API (Text Generation)
OpenAI API (Image Generation)
News API Integration
Social Platform API Integrations
Google Sheets as Lightweight Database
Google Drive Asset Management
Automation Logic & Error Handling
Prompt Engineering (GPT + DALL·E)

What This Automation Delivered

Eliminated daily manual effort of finding, writing, and publishing AI news content — fully hands-off.

Guaranteed consistent daily posting across 3 platforms — no missed days, no scheduling stress.

Zero duplicate posts — the smart detection + retry system ensures every published article is unique.

Every post gets a unique AI-generated visual — elevating content quality without any design work.

Fully scalable — add new platforms, sources, or content types by extending the existing n8n workflow.

Technologies & Tools Used

n8n
Workflow automation engine
OpenAI GPT
Caption & text generation
DALL·E
AI image generation
Google Sheets
Post log & duplicate DB
Google Drive
Image asset storage
Social APIs
Instagram · Facebook · X

Want an AI-powered automation pipeline for your business?

From content pipelines to data workflows — we build n8n + AI systems that run on autopilot.

Let's Build Your Automation →