Skip to content
All modules

Module 10 · ai · intermediate

AI Content Repurposer

After this module you can turn one blog post into a week of content (3 short-video scripts, a LinkedIn post, an X thread and a newsletter blurb) with one API call.

What it does

POST /webhook/repurpose with either {"url": "https://…"} (the page is fetched and converted to Markdown) or {"markdown": "…"}, plus optional audience and cta. An LLM chain with a structured output parser returns JSON: shorts[3] (angle, hook, script, on-screen notes, caption), linkedin_post, x_thread[] and newsletter {subject, blurb}.

This module dogfoods the course: its test repurposes Module 01's sell/blog.md, so you can use it to create content for every other module.

Flow

Repurpose API → Input Type ─url──────→ Fetch Article → HTML to Markdown → Source from URL ─┐
                           ├markdown─→ Source from Markdown ───────────────────────────────┼→ Write Content (LLM + parser) → Respond
                           └invalid──→ Respond Bad Input (400)                              ┘

Verification status

  • Input validation (3 × 400) and URL fetch + HTML→Markdown: tested on n8n 2.43.6 (runs stop at "Error in sub-node OpenAI Chat Model" without a credential).
  • Generated content: needs an OpenAI credential. WITH_CREDS=1 ./test/test.sh checks structure and length rules on Module 01's blog post and on a URL.

Files

File Tier Purpose
lesson.md Free Step-by-step build + prompt design
workflow/starter.json Free Input handling only
workflow/learner.json Learner Finished workflow
workflow/business.json Business Business workflow (see setup guide)
setup-guide.md Business Credentials + configuration
exercises.md Learner Practice tasks
solutions.md Learner Exercise solutions
notes.md Private Learning log
sell/ Private Offer, video script, blog post