Skip to content
RepoQuarry

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.

  1. You A link or an idea Activepieces
  2. Activepieces The link Crawl4AI
  3. Crawl4AI The page as clean Markdown Activepieces
  4. Activepieces The text, with one prompt per network Ollama
  5. Activepieces An image prompt ComfyUI
  6. Activepieces Captions and image as drafts (public API) Postiz
  7. Postiz Drafts to approve and schedule You

The repos

  1. 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
    ★ 86k Apache-2.0 Confirmed: 8/8 facts Official docsGitHubReplaces Firecrawl Cloud
  2. 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)
    ★ 184k MIT Confirmed: 8/8 facts Official docsGitHubReplaces ChatGPT Plus
  3. 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
    ★ 141k GPL-3.0 Confirmed: 8/8 facts Official docsGitHubReplaces Midjourney
  4. 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
    ★ — AGPL-3.0 Confirmed: 8/8 facts Official docsGitHubReplaces Buffer
  5. 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
    ★ 25k MIT Confirmed: 8/8 facts Official docsGitHubReplaces Zapier, Make

Step by step

Install commands change, so each step links to the repo's own docs for the exact commands.

  1. Set up Postiz and connect your accounts

    Install Postiz and connect the networks you post to, following its docs for each provider's developer app. Create an API key in its settings so the automation can add drafts.

    Uses Postiz · its docs

  2. Turn links into clean text

    Run Crawl4AI's server and check it on a few of your own pages. You want the article text without menus and cookie banners.

    Uses Crawl4AI · its docs

  3. Write captions with a local model

    In Ollama, write one prompt per network with your tone of voice, length limits and hashtag rules. Ask for JSON so the next step can read each caption separately.

    Uses Ollama · its docs

  4. Generate the image

    Build a simple ComfyUI workflow for your brand's image style and save it in API format. The automation sends it a prompt drawn from the post and gets back the image.

    Uses ComfyUI · its docs

  5. 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.

Shared builds

Nobody has shared one yet. Be the first.

Built your own version and put it on GitHub as open source? Share your build

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 →

Cookie preferences

Choose what we may store in your browser. You can change this any time from Cookie settings in the footer.

Essential

Security, and remembering this choice. rq-consent · 12 months

Always on