Full Social Media Automation: AI Images (Runware) + Trending Topics (Perplexity) → Instagram, Facebook, LinkedIn + Auto-Comments

Hey everyone! Wanted to share a workflow I built that’s been running smoothly for my social media automation.

What it does:

Basically takes care of the entire content creation and posting process:

  1. Perplexity API → Generates trending topics and captions based on latest news/trends
  2. Runware API → Creates AI-generated images for each post
  3. Auto-posts to Instagram, Facebook, and LinkedIn
  4. Auto-comments on Facebook and Instagram posts to boost engagement

The workflow:

  • Schedule trigger runs daily
  • Perplexity finds trending topics in my niche
  • Runware generates matching images
  • Posts get created with captions
  • Everything gets posted across all 3 platforms
  • Auto-comments kick in after posting to start conversations

Why I built this:

I was spending 2-3 hours daily on social media content. Now it’s fully automated and actually performs better than my manual posts because:

  • Content is always timely (trending topics)
  • Images are unique every time
  • Consistent posting schedule
  • Engagement starts immediately with comments

Tech stack:

  • n8n (self-hosted on Hostinger KVM 4)
  • Perplexity API for content ideas
  • Runware for image generation
  • Meta Graph API (Instagram/Facebook)
  • LinkedIn API

Currently running on queue mode with Redis to handle burst posting. Works like a charm!

Happy to answer questions if anyone wants to build something similar.

1 Like

Hey there, I’m new to using n8n and I would like to learn how to automate social media content generation and posts for my project. would you pls put me through the steps to create a workflow like yours. I would really appreciate if you can help me, thanks.

Hey! Thanks for reaching out. Happy to help you get started.

So the workflow I shared uses a few key components:

  1. Perplexity API - grabs trending topics in your niche
  2. Runware API - generates unique AI images based on those topics
  3. Social platform APIs - posts to Instagram, Facebook, LinkedIn
  4. Auto-comments - engages right after posting

For someone starting out, I’d suggest:

  • Start simple with one platform first (Instagram is easiest)
  • Get your API keys ready (Perplexity, Runware, and the social platforms)
  • Build it step by step - topic generation → image creation → posting

I’m actually building a full platform around this (Social AI Cloud) since I was doing this manually for clients. If you want, I can share more specific details about the setup or even help you build a custom version for your project.

What niche are you planning to automate for?

I’ve run something similar before, and one small trick that helped me keep things clean was adding a quick identity check step so I don’t post duplicated topics or recycled visuals. I sometimes pair my workflow with Social Media Search, which I use to double-check if an image is already floating around somewhere. It’s saved me from posting stuff that looked a bit too familiar.