logo
Published on

Building an AI Social Media Content Generator

Read in: 한국어
Authors

1. Cover All Social Media from One Blog Post

Even if you write great blog posts, nobody will see them without social media promotion. But each platform has different formats:

  • Twitter/X -- 280-character limit, hashtags, threads
  • LinkedIn -- Professional tone, long-form posts
  • Instagram -- Visual-first, carousel cards

Here is how to automatically generate platform-specific content from a single blog post.

Social media content generation overview

2. Platform-Specific Prompts

2.1 Twitter/X Thread

Convert the following blog post into a Twitter thread.

Rules:
- First tweet is a hook (attention-grabbing sentence)
- Each tweet under 280 characters
- 5-8 tweets total
- Blog link at the end
- 3-5 relevant hashtags
- Use emojis appropriately
- Simplify technical terms

Blog post:
${blogContent}

2.2 LinkedIn Post

Convert the following blog post into a LinkedIn post.

Rules:
- Professional but approachable tone
- Lead with the key insight on the first line (visible before "see more")
- Structure: Problem -> Solution -> Lessons learned
- Under 1000 characters
- Use frequent line breaks (readability)
- End with a CTA (Call to Action)
- 3-5 hashtags

Blog post:
${blogContent}
Convert the following blog post into Instagram carousel content.

Rules:
- 5-7 cards
- First card: Hook title (large text)
- Middle cards: Key points (one point per card)
- Last card: CTA + encourage saves
- Keep text on each card short and impactful
- Write the caption as well

Blog post:
${blogContent}

3. Automation Script

Automation flow
async function generateSNSContent(blogPath: string) {
  const content = readFileSync(blogPath, 'utf-8');

  // Extract title/summary from frontmatter
  const { title, summary } = parseFrontmatter(content);
  const body = extractBody(content);

  // Generate content for each platform in parallel
  const [twitter, linkedin, instagram] = await Promise.all([
    generateTwitterThread(title, body),
    generateLinkedInPost(title, body),
    generateInstagramCarousel(title, body),
  ]);

  return { twitter, linkedin, instagram };
}

4. Practical Tips

Platform Differences

Platform comparison

Patterns That Work Well

  • Extracting key blog insights -- Converts best into Twitter threads
  • Before/After structure -- Gets great engagement on LinkedIn
  • Numbers + lists -- Perfect for Instagram carousels

Things to Watch Out For

  • Do not post AI-generated content as-is -- Refine it in your own voice
  • Hashtags should vary by platform -- Twitter uses 2-3, Instagram uses 20-30
  • Posting time matters too -- Optimal posting times differ by platform

5. Summary

PlatformFormatToneAI Role
Twitter/XThread of 5-8 tweetsCasual, wittyKey extraction + hooks
LinkedInLong-form postProfessionalInsight organization
InstagramCarousel of 5-7 cardsVisualCard text generation

Write one post, and 3 social media channels are covered at once. You can cut content creation time to 1/4.