Build · Intermediate · A weekend
Build a social media content automation that turns links into posts and images
Paste a link or an idea and get platform-ready captions and an image, scheduled to all your social accounts.
Instead of paying for Firecrawl Cloud, ChatGPT Plus, Midjourney, Buffer, Zapier or Make.
What you'll build
Drop a blog post, product page or idea into one place, and a few minutes later you have a LinkedIn post, an X thread, an Instagram caption and an image to go with them, waiting as drafts in your social scheduler. You approve and they go out on schedule. It is the job people piece together with Grok and n8n templates and a Buffer subscription; here the scheduler, the image model and the writer run on your own machines.
Blueprint
Activepieces takes the link, Crawl4AI turns the page into clean text, Ollama writes captions for each network, ComfyUI makes the image, and the drafts land in Postiz through its public API for you to approve.
- You A link or an idea Activepieces
- Activepieces The link Crawl4AI
- Crawl4AI The page as clean Markdown Activepieces
- Activepieces The text, with one prompt per network Ollama
- Activepieces An image prompt ComfyUI
- Activepieces Captions and image as drafts (public API) Postiz
- Postiz Drafts to approve and schedule You
The repos
- 01 · Read the link Crawl4AI
Open-source Python web crawler that turns pages into clean, LLM-ready Markdown or structured JSON, as a library, CLI or Docker server.
- Setup
- Easy, pip install crawl4ai then crawl4ai-setup to install the browser source
- Hardware
- Docker server: at least 4 GB RAM for the container (more for heavy use); no CPU or disk figures source
- Paid extras
- None required; LLM extraction optional (local Ollama or paid APIs), Crawl4AI Cloud optional
- 02 · Write the captions Ollama
Local model runner that downloads and serves open LLMs (Gemma, Qwen, DeepSeek, gpt-oss and more) with a CLI and local API.
- Setup
- Easy; one-line install script or installer, then ollama run source
- Hardware
- Apple M-series or x86 (CPU only) on Mac; 4GB for Windows binary; RAM not stated source
- Paid extras
- None for local use; Ollama Cloud plans optional (Pro $20/month)
- 03 · Make the image ComfyUI
Node-graph app for running open image, video, 3D and audio models locally, with inpainting, outpainting, upscaling and a local API.
- Setup
- Easy, desktop app installer (Windows, macOS) source
- Hardware
- Big models from 4GB VRAM + 8GB RAM; CPU-only portable build exists source
- Paid extras
- None required; paid Comfy API nodes and Comfy Cloud are optional
- 04 · Schedule and publish Postiz
Self-hosted social media scheduler for X, LinkedIn, Instagram, TikTok, Bluesky and more, with analytics, a public API and optional AI writing.
- Setup
- Medium; one Docker Compose command brings up the stack, but most platforms need your own developer app and keys source
- Hardware
- Server with at least 2 vCPU and 2 GB RAM for light single-user use; 4 vCPU and 8 GB RAM recommended source
- Paid extras
- None required to self-host; AI copilot and AI images need your own OpenAI API key; no local model support documented
- 05 · Connect the steps Activepieces
Self-hostable no-code automation builder with 280+ TypeScript integrations ("pieces") that are also exposed as MCP servers.
- Setup
- Medium, install script or a single docker run with embedded database source
- Hardware
- Production sizing: app 1 vCPU / 1 GB per ten workers; each worker 0.5 vCPU / 1 GB; Postgres 2 vCPU / 4 GB; Redis 1 vCPU / 1 GB source
- Paid extras
- None required; enterprise licence and Activepieces Cloud are optional
Step by step
Install commands change, so each step links to the repo's own docs for the exact commands.
-
Wire it up in Activepieces
Start the flow from a form, a Telegram message or a new row in a sheet. Call Crawl4AI, then Ollama, then ComfyUI, and finally Postiz's public API to create drafts. Keep a person approving before anything is published.
Uses Activepieces · its docs
Watch out
Postiz needs your own developer app for most social networks when self-hosted. Image models need a decent GPU. Check each network's automation rules before posting automatically.
Take it further
- Feed it new posts from your blog's RSS feed automatically.
- Ask the model for three hook options and pick one before scheduling.
- Pull post performance back from Postiz each week and tell the model what worked.
Questions
Can Grok write the captions?
Yes, through xAI's paid API in place of Ollama. Grok's API also has image models, if you would rather not run ComfyUI.
Will this get my accounts banned?
Scheduling through a tool like Postiz is normal. What gets accounts flagged is spammy volume or repeated text, so keep a person approving posts and follow each network's rules.
Every repo here is open source, still maintained and checked against its own documentation. How we check →