0Pricing
AI Prompt Engineering · Lesson

Social Media Content Prompts

Twitter/X threads, LinkedIn posts, Instagram captions with platform-specific constraints.

Social Media Content Prompts is a free AI Prompt Engineering lesson on CoddyKit — lesson 2 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the AI Prompt Engineering learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Platform-Aware Prompting

Social media content prompting requires platform awareness: each platform has different character limits, content norms, audience behaviors, and optimal formats. A prompt that produces great LinkedIn content will produce mediocre Twitter content and vice versa.

Effective social media prompts always name the specific platform and its relevant constraints. Saying "write a social media post" without a platform specification produces generic content that fits no platform particularly well.

Twitter/X Thread Prompts

Twitter threads are a distinct format: a series of numbered tweets, each under 280 characters, that tell a story or teach a concept progressively. Effective thread prompts specify:

  • Topic and angle: what insight or story is being shared?
  • Thread length: how many tweets? (7-12 is standard for educational threads)
  • Opening hook: the first tweet must stop the scroll — specify what makes it compelling
  • Numbering convention: 1/, 2/, etc. or 1/n format
  • Ending: a call to action, a summary, or a question to drive engagement

Twitter Thread Prompt in Code

A reusable Twitter thread generator with platform-specific constraints:

import openai

client = openai.OpenAI(api_key='sk-...')

def generate_twitter_thread(topic, angle, num_tweets=8, audience='tech-savvy professionals'):
    prompt = (
        f'Write a Twitter/X thread about {topic} — specifically: {angle}.\n'
        f'Audience: {audience}.\n'
        f'Thread length: {num_tweets} tweets.\n'
        'Format rules:\n'
        '  - Each tweet starts with its number: "1/", "2/", etc.\n'
        '  - Each tweet is under 280 characters (count carefully).\n'
        '  - Tweet 1: an attention-stopping hook — a surprising fact, a bold claim, or a compelling question. No "In this thread..." openers.\n'
        f'  - Tweets 2-{num_tweets-1}: one clear insight or step per tweet.\n'
        f'  - Tweet {num_tweets}: a clear call to action — follow, reply, share, or link.\n'
        'Tone: direct, insightful, no filler words. No hashtags unless the topic is a trending hashtag.'
    )

    response = client.chat.completions.create(
        model='gpt-4o-mini',
        messages=[{'role': 'user', 'content': prompt}]
    )
    return response.choices[0].message.content

print(generate_twitter_thread(
    topic='prompt engineering',
    angle='5 prompt mistakes that waste 80% of your AI results',
    num_tweets=7
))

LinkedIn Post Prompts

LinkedIn content has different norms from Twitter. Effective LinkedIn post prompts include:

  • Professional insight: what is the takeaway that helps professionals do their job better?
  • Story hook: LinkedIn rewards personal stories that lead to professional insights
  • Length: 150-250 words is optimal; longer is fine for substantial analysis
  • Structure: the first line is critical (visible before 'see more') — specify that it must hook
  • CTA: end with a question to drive comments (LinkedIn's algorithm rewards engagement)
  • No hashtag spam: 2-3 targeted hashtags maximum, or none

Instagram Caption Prompts

Instagram captions accompany a visual — they add context, emotion, and a CTA to an image or video. Prompt elements for Instagram captions:

  • What the image/video shows: the model cannot see it, so describe it
  • Brand voice: Instagram ranges from aspirational (fashion) to educational (infographic accounts) to casual (lifestyle brands)
  • Emoji request: specify whether emojis are appropriate and how many
  • Hashtag request: Instagram hashtags are discoverable — specify count and type (niche vs broad)
  • CTA: save, share, comment with your answer, click link in bio

TikTok Hook Line Prompts

TikTok's algorithm prioritizes watch time, and the first 3 seconds determine whether a viewer stays. The hook line — the first sentence spoken or displayed — is the most important element. Prompt patterns for TikTok hooks:

  • "Write 5 TikTok hook lines for a video about [topic]. Each should create a pattern interrupt — a surprising statement, a bold claim, or a question that creates a knowledge gap. Under 10 words each."
  • "The hook should make someone pause their scroll. Use the format: 'You're doing [X] wrong. Here's why...' or '3 things [audience] never tells you...'"
  • Hook lines are short and high-stakes. Generating five options and choosing the best is a better workflow than generating one.

Multi-Platform Content Repurposing

A single piece of content can be repurposed across platforms with a multi-output prompt:

import openai

client = openai.OpenAI(api_key='sk-...')

def repurpose_for_platforms(core_idea, brand_voice, target_platforms=None):
    if target_platforms is None:
        target_platforms = ['twitter', 'linkedin', 'instagram']

    prompt = (
        f'Take this core idea: "{core_idea}"\n'
        f'Brand voice: {brand_voice}\n\n'
        'Create platform-optimized versions for each of the following:\n'
    )

    if 'twitter' in target_platforms:
        prompt += '\nTwitter/X: One standalone tweet under 280 characters. No hashtags. Punchy and direct.'

    if 'linkedin' in target_platforms:
        prompt += '\nLinkedIn: 150-200 word post. First line is a scroll-stopping hook. End with a question.'

    if 'instagram' in target_platforms:
        prompt += '\nInstagram caption: 80-120 words. Conversational. Include 2-3 relevant hashtags at the end. One emoji per paragraph.'

    response = client.chat.completions.create(
        model='gpt-4o-mini',
        messages=[{'role': 'user', 'content': prompt}]
    )
    return response.choices[0].message.content

print(repurpose_for_platforms(
    core_idea='Most people lose 2 hours per day to context switching between apps. A unified workspace fixes this.',
    brand_voice='direct, practical, slightly irreverent'
))

Audience-First Social Prompts

Social media content that performs well is written for a specific audience, not for the brand. A common mistake in social media prompts is focusing on what the brand wants to say instead of what the audience wants to read.

Reframe your prompts:

  • Instead of: "Write a post promoting our new feature."
  • Try: "Write a post that helps [audience] solve [their problem]. Naturally position our feature as one solution they might try."

Audience-first prompts produce content that feels less like advertising and more like value, which is what social algorithms and human readers reward.

Generating Content Series

Social media performs best with consistent posting. Prompts can generate entire content series at once:

"Generate a 4-week LinkedIn content calendar for [company/person] in [industry]. Topic pillar: [main theme]. Each week has 3 posts: one educational insight, one personal story that illustrates a professional lesson, and one industry news commentary. Format: Week N — Post 1 Title + 1-sentence summary."

This prompt produces a structured content plan in one generation. Individual posts can then be generated from the summaries using a standard post template.

Hashtag Strategy in Prompts

Hashtag requests in social media prompts should be specific:

  • Specify count: "3-5 hashtags", not "add relevant hashtags"
  • Specify type: "1 broad hashtag (millions of posts), 2 niche hashtags (under 100K posts), 1 branded hashtag"
  • Specify placement: "at the end of the caption" vs "woven into the text naturally"
  • Request alternatives: "suggest 8 hashtag options so I can choose 3-5"

Instagram hashtag strategy differs from LinkedIn (fewer, more specific on LinkedIn). Naming the platform makes the model apply platform-appropriate hashtag conventions.

Tone Calibration Across Platforms

The same brand uses different tones across platforms because the audience context differs:

  • Twitter/X: punchy, opinionated, direct, slightly irreverent — the platform rewards conviction
  • LinkedIn: professional insight, narrative-driven, generous with expertise — reward is thought leadership
  • Instagram: aspirational or relatable, emotionally resonant, visually descriptive — reward is connection
  • TikTok: authentic, hook-driven, fast-paced — reward is entertainment and surprise

Build a platform-tone map for each brand you work with and encode it in your templates. This eliminates one major source of inconsistency in AI-generated social content.

Knowledge Check: Social Media Prompts

You want to generate a LinkedIn post announcing a company milestone (you just reached 10,000 customers). Which prompt produces the best LinkedIn-optimized result?

Recap: Social Media Content Prompts

Social media prompts require platform awareness: each platform has different character limits, tone norms, hashtag conventions, and audience expectations. Twitter threads need numbered format, scroll-stopping hooks, and sub-280-character enforcement. LinkedIn rewards professional insight and story-led hooks. Instagram captions need image context, emoji guidance, and hashtag counts. TikTok hook lines need pattern-interrupt framing.

The most impactful improvements are: audience-first framing (not brand-first), specific hook instructions, and explicit formatting rules per platform. Repurposing prompts generate multi-platform variations efficiently from a single core idea.

Frequently asked questions

Is the “Social Media Content Prompts” lesson free?

Yes — the full text of “Social Media Content Prompts” is free to read here on the web, and the AI Prompt Engineering course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the AI Prompt Engineering course, upgrade to CoddyKit PRO.

What will I learn in “Social Media Content Prompts”?

Twitter/X threads, LinkedIn posts, Instagram captions with platform-specific constraints. You practise AI Prompt Engineering with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start AI Prompt Engineering?

No prior experience is required. AI Prompt Engineering on CoddyKit is structured for beginners through advanced learners; this is — lesson 2 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Social Media Content Prompts” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this AI Prompt Engineering lesson?

Yes. Every AI Prompt Engineering lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Email and Professional Writing Prompts
  2. Social Media Content Prompts
  3. Technical Documentation Prompts
  4. Creative and Storytelling Prompts
← Back to AI Prompt Engineering