↘↘
WORK 18

Joke Machine

Description

Every hour it finds a joke on Reddit, turns it into a narrated, captioned video, and posts it to Instagram. Nobody clicks anything.

Scope

Automation, AI Agent, MCP, Video

Work Type

Personal (Automation)

About this project

A joke on Reddit becomes a finished video on Instagram, with no one in between. I built it in n8n to see how far a content pipeline can run by itself: finding the material, checking it, making the film, publishing it and reporting back. Scroll to follow one joke through.

Schedule Trigger Fetch Reddit RSS XML Clean the text Search Already made? Guardrails Save the joke Pick unused Loop Over Items Create a row Generate video Wait Check video status Ready? Mark as made Download the video Convert to File Instagram post Send a message OpenAI Chat Model OpenAI Chat Model MCP Client Output Parser
  1. 1 / 20

    Schedule Trigger

    Starts the whole run by itself, once every hour.

  2. 2 / 20

    Fetch Reddit RSS

    Reads the jokes that are hot on r/Jokes right now, from Reddit's own feed.

  3. 3 / 20

    XML

    Turns the feed into data the next steps can work with.

  4. 4 / 20

    Clean the text

    A small script strips out the web formatting and keeps the title, the joke, its author and its link.

  5. 5 / 20

    Search

    Looks for the joke in a Postgres database that remembers what has been made.

  6. 6 / 20

    Already made?

    If the joke has already become a video, it stops here. Nothing is posted twice.

  7. 7 / 20

    Guardrails

    An AI model scores the joke for adult content. Only the ones that pass go on.

  8. 8 / 20

    Save the joke

    Puts the joke in the queue, with its author and source link.

  9. 9 / 20

    Pick unused

    Lists every saved joke that isn't a video yet, oldest first.

  10. 10 / 20

    Loop Over Items

    Takes the next joke on the list.

  11. 11 / 20

    Create a row

    Writes the joke into Baserow, so there is a log a person can read.

  12. 12 / 20

    Generate video

    An AI agent rewrites the joke just enough to be heard rather than read. Then it calls ClipLab, my own video tool, over MCP. ClipLab narrates it, finds footage on Pexels, adds captions and renders.

  13. 13 / 20

    Wait

    Gives ClipLab a minute to work.

  14. 14 / 20

    Check video status

    Asks ClipLab how the render is going.

  15. 15 / 20

    Ready?

    Not yet? Back to the wait. Ready? On it goes.

  16. 16 / 20

    Mark as made

    Marks the joke as used in Postgres, so it never comes round again.

  17. 17 / 20

    Download the video

    Fetches the finished film from ClipLab.

  18. 18 / 20

    Convert to File

    Repackages the video so it can be uploaded.

  19. 19 / 20

    Instagram post

    Publishes the video, with the joke and a link to where it came from.

  20. 20 / 20

    Send a message

    Tells me on Discord what just went out. That's the first I hear of it.

Built with

n8n runs the workflow. Postgres remembers every joke, Baserow keeps a readable log, and OpenAI models do the checking and the rewriting. ClipLab makes the videos with footage from Pexels.

Why it matters

Social media rewards showing up every day, and that is the part people run out of time for. Content automation takes it over: the ideas, the checks, the video and the posting run on a schedule, so your accounts stay active while you work on everything else.

The jokes are only one example. Change the source and the same system opens up a lot more:

  • Daily postsQuotes, tips, facts or jokes, in your own style.
  • ProductsNew arrivals, offers and listings turned into short videos.
  • News and blogsEvery article becomes a reel.
  • More accountsThe same system in another language, niche or channel.

You can keep it fully automatic, or add a step where you approve each post first.

Want one for your accounts?

Let's talk →