RAFIQUL.Full-Stack & E-Commerce
Back to Articles
AutomationSeptember 3, 20265 min read

Building a social media automation pipeline in n8n

I automated my entire content posting workflow with n8n, cutting manual work by 80%. Here's what I built, what broke, and why the approval step saved me from looking like a bot.

Rafiqul Islam Rabbi
Rafiqul Islam Rabbi
Full-Stack Web & E-Commerce Architect
Building a social media automation pipeline in n8n

A few months back I was spending a stupid amount of time on the mechanical parts of posting content. Write something, resize it for Twitter, write a different caption for Instagram, schedule it on LinkedIn, repeat. The actual writing took maybe 20 minutes. The busy work took an hour. I kept thinking there had to be a better way than logging into three different apps and copy-pasting variations of the same idea.

The first attempt: stitching services together

My initial instinct was to build something custom. I had a Google Sheet where I tracked my content calendar anyway—dates, topics, rough notes. I thought: what if I could write a simple script that pulls from the sheet, generates variations, and posts them? I started looking at the Zapier route, but their limits felt tight for what I wanted to do. Then I remembered I'd seen n8n mentioned in some automation circles. It's open-source, self-hostable, and the visual workflow builder actually looked like something I could move fast in without context-switching into code.

The core idea was simple: Google Sheet as source of truth → AI prompt layer to generate platform-specific copy → image resizing via API → schedule posts to LinkedIn, Twitter, Instagram. One workflow that runs on a schedule.

Building the workflow: what actually worked

I set up n8n locally first, just to not worry about external dependencies while learning the interface. The Google Sheets node was straightforward—query a specific range, parse the data. From there, I chained together an OpenAI node with a prompt that said something like: "Take this topic and write a punchy LinkedIn caption under 200 characters, then a Twitter version, then an Instagram caption with emojis." The model output came back as structured JSON, which n8n handled cleanly.

The image part was trickier than I expected. I was using a cloud image resizing API (Cloudinary) to handle the platform-specific dimensions—1200x627 for LinkedIn, 1024x512 for Twitter, 1080x1080 for Instagram. The n8n HTTP node worked fine for that, but I had to be careful about error handling. If the image didn't exist or the API was slow, the whole workflow would hang. I added a conditional branch: if the image request fails, use a fallback placeholder. Not ideal, but it kept things moving.

Publishing was the easiest part. I used the official integrations for LinkedIn and Twitter, and for Instagram I went through their Graph API. Scheduling was built into n8n's cron jobs, so I could set it to run every Monday and Thursday at 9 AM. That part felt almost too easy, which made me suspicious at first.

The gotcha that almost shipped

Here's where I nearly broke things: I had the workflow fully automated and running for about a week before I actually checked what was being posted. The AI was technically correct—it was following the prompt, generating captions, posting on time. But the voice was wrong. Generic. It sounded like someone else wrote it. The tone was off. A few Instagram captions had awkward phrasing that I would never use. And one Twitter post just... didn't land the way I'd written the original thought.

That's when I realized I'd automated too fast. I'd solved for speed and completely skipped the validation step. So I added a manual approval gate. Every morning, the workflow generates the content and sends me an email with the proposed posts. I spend maybe 90 seconds reviewing them, tweaking copy if needed, then hitting approve. The workflow waits for that approval before publishing.

It sounds like it defeats the purpose—I'm still doing work, right? But it doesn't. The difference is massive. Instead of staring at three apps and manually constructing variations, I'm just reading and occasionally editing. The cognitive load dropped from "construct the entire thing" to "does this sound like me?" Two completely different tasks.

What the setup actually looks like now

Google Sheet with columns: date, topic, primary image URL, any custom notes. That feeds into n8n. The workflow queries the sheet for entries from today, runs them through the OpenAI node, resizes images, and sends me a summary email with all three platform versions. I approve or edit in the email reply (or I could open n8n and edit the execution data directly, though I usually don't). Once approved, it publishes. On a typical week, I'm probably saving 3-4 hours of actual clock time. More importantly, I'm not doing the same task three times.

I hosted n8n on a small VPS because I wanted it to run reliably without worrying about API rate limits or third-party uptime. Costs me about $8 a month for the server. The OpenAI calls cost pennies. It's genuinely cheap to run.

The lessons

The real win wasn't speed, though that matters. It was removing the context switching. I used to lose 20 minutes just getting my head back into writing mode after posting the first version. Now I write once, the system handles the busy work, and I spend 90 seconds on QA. That mental friction disappeared.

The other lesson was respecting the approval step. I was impatient and wanted full automation. But removing that gate meant I'd ship something that didn't sound like me, and that's worse than spending 90 extra seconds per post. The workflow is only useful if it actually reduces friction without sacrificing quality. The moment it starts sacrificing quality, it's just noise.

If you're posting content regularly and you're tired of the manual work, n8n is worth a weekend. The visual editor means you don't need to maintain code. But start with a manual approval step. Automate the routine parts, not the judgment.

Rafiqul Islam Rabbi
Written By

Rafiqul Islam Rabbi

Full-Stack & E-Commerce Architect building high-converting Shopify stores, WordPress platforms, and Next.js web applications.

Work With Me

LET'S
WORK
TOGETHER!

Have a project in mind or just want to say hi? I'd love to hear from you and build something remarkable.