How to Automatically Turn Blog Articles into Social Media Posts, Carousels & Video Reels
Learn how to build an automated pipeline that takes any article URL and converts it into 9:16 vertical video reels, LinkedIn carousels, and Open Graph social cards via API.
Writing a thorough, 2,000-word engineering article or product announcement takes days. Yet, without aggressive multi-platform repurposing across LinkedIn, Instagram Reels, YouTube Shorts, and TikTok, most articles fade into obscurity after the initial publication spike.
⚡ The Distribution Problem
Manual repurposing requires hours of copying quotes into Canva or video editing tools, creating slides, and resizing viewports. With Tailprint's Content Repurposing API, you can pass any public article URL and automatically receive a 9:16 vertical video reel script, multi-slide social carousel, and a live scrolling screen recording in seconds.
The 3-Step Automated Repurposing Architecture
URL Ingestion & Script Extraction
Tailprint fetches the article using headless Chromium, bypasses cookie consent banners, extracts clean prose via Mozilla Readability, and synthesizes a punchy 4-5 slide script with hooks, key statistics, and call-to-actions via POST /v1/tools/reel/script.
Live Scrolling Screen Recording
Chromium emulates a high-DPI mobile device (1080×1920 px), scrolls through the webpage with smooth acceleration curves, and captures a WebM video clip hosted on the Tailprint CDN.
Multi-Format Visual Rendering
The synthesized slides are compiled into high-converting visual formats: 9:16 vertical decks for Reels/Shorts, 4:5 portrait carousels for LinkedIn, and 1200×630 Open Graph banners for social preview cards.
Automating with TypeScript / Node.js
Here is how to build a complete script that turns any published article into a full social distribution pack:
async function repurposeArticle(articleUrl: string) {
// Step 1: Synthesize script and record live scrolling screen video from URL
const scriptRes = await fetch('https://tailprint.com/v1/tools/reel/script', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
url: articleUrl,
record_video: true, // Captures mobile scrolling WebM video
}),
});
const { script, screenrecord } = await scriptRes.json();
console.log('Synthesized Hook:', script.title);
console.log('Video Recording URL:', screenrecord?.videoUrl);
// Step 2: Render 9:16 Vertical Story / Reel Deck
const reelRes = await fetch('https://tailprint.com/v1/tools/reel', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
title: script.title,
brand: 'Acme Engineering',
handle: '@acme_tech',
theme: 'gradient',
aspectRatio: '9:16', // Vertical format for Reels/TikTok/Shorts
slides: script.slides,
cta: 'Read full article in bio',
}),
});
const reelData = await reelRes.json();
console.log('9:16 Story PDF:', reelData.pdfUrl);
console.log('Cover Slide PNG:', reelData.previewUrl);
// Step 3: Render 4:5 Portrait Carousel for LinkedIn
const carouselRes = await fetch('https://tailprint.com/v1/tools/carousel', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
author_name: 'Acme Engineering',
author_handle: '@acme_tech',
theme: 'dark',
markdown: script.slides.map(s => `# ${s.headline}\n${s.body}`).join('\n---\n'),
}),
});
const carouselData = await carouselRes.json();
console.log('LinkedIn Carousel PDF:', carouselData.pdfUrl);
return { reelData, carouselData, screenrecord };
}
Triggering via CMS Webhooks (Ghost, WordPress, Next.js)
The real power of this architecture comes from plugging it into your publishing workflow. By listening to a post.published webhook from Ghost, Sanity, or WordPress, your system can automatically generate social assets and notify your marketing team in Slack or post directly to social media APIs.
Try the AI Social Reel Maker Online
Paste any URL and generate vertical video slides and screen recordings in seconds.
Ready to build with Tailprint?
Get 100 free vector PDF and image renders every month with zero credit card required.