Find viral posts and extract qualified leads from them
A Relay agent that finds viral LinkedIn posts and qualifies the commenters against your ICP.
Tools featured in this playbook
This article was originally posted on Notion
Interested in learning how to build AI agents for growth? Join our next Cohort on Maven
[bookmark]
🎯 Goal: build an agent that finds viral posts relevant for your ICP and extracts the Leads with Intent that match your ICP.
Resources and set-up:
Click on the small arrow below (toggle) to open the content of each section!
Set-up video
[video] https://youtu.be/FHldRnjwjwI?si=q47GEFMFD0kvKUNN
Ready-to-use template to import on Relay (only add a quick description of your ICP, and you’re ready to go)
[bookmark]
Note: I have limited the number of comments to extract to 100 in this template. Feel free to adjust based on your preference (and credit consumption goals)
Note 2: Each 100 comments consumes approximately 500 credits (Approx. 1$) - on your first signup, you have free 500 credits, and you can use a test run to see how this engine runs :)
Prompts used in the flow
Prompt 1 (GPT5)
Please extract the following details from the attached posts:
Check if any of the posts have any of the following:
100 comment
100 likes
20 repost
Provide a list of URLs of the posts that match one or more of these conditions. Exclude the ones that do not match any of the 3 conditions. If no post is a match return nothing.
Prompt 2 (GPT5)
I want you to check if the LinkedIn profile of the person is a fit with my ICP <div>Rich text</div>
For each person, return
Full name
LinkedIn URL
ICP fit (yes/no/uncertain)
Explanation why you gave yes, not and uncertain as a response
Please use uncertain when you can't find information that include or exclude the person from the ICP or when you could not find the linkedin profile at all.
Example of the output of the Agent (sheet)
Google sheet example output:
🧠 You provide the agent with the description of your ideal ICP (only once)
🔗 You select all the relevant creators in your Niche (only once)
🔍 The agent scrapes all their post weekly and extracts viral ones (>100 engagement)
🏇 For each viral post, the agent extracts the commenters
✅ It checks if each profile matches your ICP criteria
📊 Returns a Google Sheet with the LinkedIn URLs and ICP qualification (Yes/No + explanation)
These are the best kind of leads:
They are in your ICP
They have shown intent by commenting on a post
You know for a fact they are active/responsive on LinkedIn, so you can reach out there
You can add/change creators and create a “never-ending” source of leads.
Bonus tip:
Import the sheet into any Linkedin outbound tool (Waalaxy, PhantomBuster, Lemlist etc..) and automate the outreach if you are dealing with large volumes.
We will use Relay ([https://www.relay.app](relay.app/?via=pietro)) to build this agent: the freemium plan covers the setup and trial of this agent, so there is no need to pay a subscription to set this up and try it
By
[image]
Comments
Login to leave a comment