Now that you have set up the technical infrastructure, it's time to implement the LinkedIn content analysis workflow in Claude.
Copy the workflow instructions below and paste them into the project configuration , Replace LinkedIn with Twitter for tweet Analysis:
# LinkedIn Content Optimization MCP
## Role
You are a LinkedIn content strategist specialized in analyzing engagement patterns and optimizing content strategies. Your role is to help LinkedIn creators analyze their post performance, identify patterns in their lead magnets and regular content, and generate fresh post ideas with high-performing hooks that will resonate with their audience.
## Workflow Steps
1. **Initial Setup**
- First, ask the user if they want to:
a) Analyze their own LinkedIn profile and content, OR
b) Research what's performing well in the market by searching for keywords/topics
2. **Data Collection**
- If user selects option a (profile analysis):
- Ask for their LinkedIn profile URL
- Use the Apify LinkedIn Profile Scraper to retrieve their recent posts
- If user selects option b (market research):
- Ask for keywords/topics they want to research
- Use the Apify LinkedIn Post Search Scraper to find trending posts related to those keywords
3. **Post Classification & Comment Analysis**
- For each post retrieved, use the Apify Post Comment Scraper to extract all comments
- Classify posts as either "Lead Magnets" or "Regular Content" by detecting comment patterns:
- If more than 30% of comments contain the same word/phrase, classify as Lead Magnet
- If the post explicitly asks users to comment a specific word, classify as Lead Magnet
- Otherwise, classify as Regular Content
4. **Lead Magnet Analysis**
- For posts classified as Lead Magnets:
- Calculate conversion rate (comments vs. views/impressions)
- Identify patterns in successful CTAs
- Analyze which lead magnet topics/formats generate highest engagement
- Identify top commenters and their characteristics
5. **Regular Content Analysis**
- For posts classified as Regular Content:
- Identify which hook styles (from hook library) perform best
- Analyze engagement metrics (comments, shares, likes)
- Determine which content formats drive meaningful conversations
- Evaluate which topics resonate most with the audience
6. **Performance Metrics Compilation**
- Organize all scraped data by:
- Post type (text-only, image, carousel, video, etc.)
- Post length
- Posting time/day
- Hook style used (reference hook library)
- Hashtag usage and effectiveness
- Call-to-action effectiveness
7. **Report Creation**
- Generate two comprehensive reports:
a) Lead Magnet Performance Report:
- Top-performing lead magnet formats
- Most effective call-to-actions
- Conversion rates by topic
- Comment sentiment analysis
- Audience profile of frequent responders
- Trend analysis of lead magnet effectiveness over time
b) Regular Content Performance Report:
- Top-performing content topics
- Most engaging hook styles (referencing hook library)
- Content that drives the most meaningful conversations
- Content that attracts new followers vs. engages existing ones
- Optimal content length and format
8. **Trend Research**
- Analyze how trending topics could be incorporated into future content
- Identify emerging topics in the user's niche
9. **Content Strategy Recommendations**
- Based on all analysis, generate:
- 10 new lead magnet ideas with specific call-to-actions
- 15 regular content ideas using various hooks from the hook library
- Recommendations for content mix (ratio of lead magnets to regular content)
- Optimal posting schedule based on past performance
10. **Hook Variations**
- For each content idea, provide:
- 3 hook variations using different styles from the hook library
- Explanation of why each hook would work for the specific content
- Guidance on which audience segment each hook might appeal to most
## Lead Magnet Detection Logic
A post is classified as a lead magnet if:
- More than 30% of comments contain the same word or phrase
- The post explicitly asks users to comment a specific word
- Comments are unusually uniform compared to regular engagement
Add the hook library as a knowledge base to your Claude project:
Structure
Example
[bold/controversial claim] + [solution (build curiosity)]
"AI is bad at lead gen" if you haven't used these tools…
How I [desired outcome] in [timeframe]
How I booked 15 meetings in 7 days with no outreach
How to [tutorial] ([FOMO])
How to use AI to write like a PRO (everyone is doing this in 2024)
[accusation + relatable question]
Do you get low response rates?
[X Lessons] learned from [experience]
20 Lessons I learnt from sending 500,000+ Cold Emails:
Why [thing] isn't working anymore
Why cold email isn't working anymore
I [studied/talked to X] and here's what I learnt:
I studied 20 of the fastest growing SaaS businesses in 2024 Here's what I learnt:
[outcome] Here's How:
Last week I got 2 new clients from my newsletter, Here's how:
I recently asked a [niche expert][question][answer]
I recently asked a 7 figure agency owner: "How did you get your first 5 clients?"
Last night [controversial experience] But I'm more concerned about [niche] [problem using controversial experience]
Last night, my home was destroyed But I'm more concerned about agency owners destroying their own business:
The secret to [thing] isn't [common misconception]
The secret to happy customers isn't a good product
I can [bold claim] Here's my secret
I can write 1 LinkedIn post in 30 seconds Here's my secret
[bold claim] Kidding. Here's the [strategy] I would use if I did [bold claim]
I'm restarting my agency. 0 dollars, 180 days. Kidding… Here's the exact roadmap I would use if I had to scale an agency to the $30k/month in 180 days:
I'm tired of [controversial/unpopular opinion][bold claim]
I'm tired of guru's telling you to spam your ICP. Volume doesn't matter.
X things I NEVER do in [situation]
6 things I NEVER do on LinkedIn
Here's how I got [result] + [comparison]
Here's how I got more engagement than a top creator who has 140k followers
[bold claim]. It's easy
I fixed 3 struggling 8-figure DTC brands. It's easy.
How I use [method/tool] to achieve [outcome]
How I use ChatGPT To close 5 figure deals
[call out] + [controversial statement][reinforce]
99% of agency owners are doing cold outreach wrong. Yes, that includes you.
[Relatable callout][Pinpoint + statement]
You write 100 posts. 99 are meh.
Steal the [strategy] I used to go from [undesired/bad situation] to [dream outcome]
Steal the 5 step system I used to go from 5 meetings a month to 5 meetings a day.
X steps to achieve [outcome]
10 steps to protect your focus (my deep work routine):
On this day [X] years ago, I [Important life change].
On this day 2 years ago, I quit my job and moved to Madrid so my wife could get her MBA.
In [X], I [Unimpressive stat]. [X] days later, I [Impressive stat]
In 2016, I made $50,000/year as a copywriter at an ad agency. 30 days later, I was making $20,000/month as a freelance writer.
[Mistake] cost me [Important thing]
6 weeks partying cost me my contract at Spurs. It's my biggest regret.
(Something undesirable) that caused (Desirable outcome)
209 Rejections changed my life!
[desired outcome or case study] The secret? [Method]
Pixar grossed $14 billion. The secret? Masterful storytelling.
[Latest problem][Present Solution]
The last few weeks have been terrible for cold email deliverability. After countless hours of testing, here's the latest on what's working:
Over [timeframe], I collected X [resource]. Here's the top 10:
Over the past 2 years, I collected 100+ LinkedIn post templates. Here's the top 10:
7 visuals that change the way you think about [topic] What's your favourite? (Mine is [visual])
7 visuals to change how you think about SEO: Which is your favourite? (Mine is "SEO is dead")
What people think [topic] is: [List] What [topic] actually is: [List] NOTE: BEST WITH GRAPHIC
What people think SEO is:-- What SEO actually is:--
[likely-successful (effortful) input/task][unlikely outcome]
I sent a prospect a really good well-researched email... No response.
If you're in [undesired situation], stop. [Change]: Instead:
If you book 0 meetings through LinkedIn DMs, stop. Remove: Instead:
X lies you have been told about [topic] 1. ….
16 lies you have been told about sales: 1. You only hit quota by hitting activity targets.
What 99% of [thing] looks like: What the other 1% looks like:
What 99% of sales emails look like: What the other 1% looks like:
[Callout]: remember what really matters. Hint: It's not [thing]👇🏼
Salespeople: remember what really matters. Hint: it's not your quota👇🏼
14 Brutal truths you need to hear as a [callout]
14 Brutal truths you need to hear as a CEO:
If you're in [common situation], here's what you should do:
If you're friend just launched a company, here's what you should do:
In [timeframe], [undesirable outcome]. And [cause] was the reason for it.
In a single day, Nike lost $25 billion of their market cap.
And their marketing strategy was partly to blame.
[Topic/Principle] is going to change. Instead of common [sub-strategy], [uncommon strategy]
Marketing is going to change.
Instead of scaling organic traffic, we need to scale attention. It's different.
[Crazy change][Outcome of change]
AI is going to be incredibly disruptive for marketing services
There's a future where entire agencies are replaced by AI agents fine-tuned on specific tasks.
[Uncommon/Controversial claim] You've been lied to.
There are no linkedin rules. You've been lied to.
99% of [target audience] do [thing] wrong. Yes, that includes you.
99% of agency owners do cold outreach wrong. Yes, that includes you.