Auto LinkedIn Comment Replier & Lead Capturer

Automatically respond to LinkedIn comments and capture lead information in Airtable
Created by
Kuldip Parmar
Kuldip Parmar
Founder
Relay.app screenshot of: Auto LinkedIn Comment Replier & Lead Capturer

Steps in this workflow

1
Relay.app logo
Trigger
2
Relay.app logo
Get LinkedIn person posts
3
Relay.app logo
Get LinkedIn comments on post
4
repeat
Iterator
5
Relay.app logo
Get LinkedIn profile from profile URL
6
Airtable logo
Add record to table
7
OpenAI logo
Prompt GPT-4.1 Nano
8
Paths
A
AI Path
9
LinkedIn logo
Comment on post or reply to a comment

Automate your LinkedIn engagement by monitoring posts for new comments and intelligently responding while capturing lead data. Here's how it works:

  • The workflow runs on a schedule to check a LinkedIn profile for recent posts
  • It retrieves comments on those posts and extracts commenter information
  • Lead data is automatically saved to Airtable for follow-up
  • AI analyzes each comment and either auto-responds or flags it for human review via Slack
1
Relay.app logo
Trigger

Triggers the workflow to run on a scheduled basis. The schedule should be configured based on how frequently you want to check for new LinkedIn comments.

Relay.app screenshot of: Trigger
2
Relay.app logo
Get LinkedIn person posts

Retrieves recent posts from a specified LinkedIn profile. You can configure the maximum number of posts to check for comments.

Relay.app screenshot of: Get LinkedIn person posts
3
Relay.app logo
Get LinkedIn comments on post

Fetches comments from the LinkedIn posts found in the previous step. The number of comments to retrieve can be configured to manage workflow volume.

Relay.app screenshot of: Get LinkedIn comments on post
4
repeat
Iterator

Processes each comment individually in parallel. This enables the workflow to handle multiple comments efficiently and capture data from each commenter.

Relay.app screenshot of: Iterator
Iterator steps
5
Relay.app logo
Get LinkedIn profile from profile URL

Retrieves the full LinkedIn profile information for each person who commented. This data is used to build a comprehensive lead database.

Relay.app screenshot of: Get LinkedIn profile from profile URL
6
Airtable logo
Add record to table

Creates a new record in Airtable with the commenter's information including name, profile URL, company details, role, and industry. This builds your lead database automatically from LinkedIn engagement.

Relay.app screenshot of: Add record to table
7
Prompt GPT-4.1 Nano

Uses AI to analyze the comment and determine whether it requires a human response or can be handled automatically. The AI also generates an authentic, personalized reply that maintains a warm and professional tone.

Prompt used
You are the world’s No. 1 LinkedIn conversation specialist. Your job is to analyze a comment left on a LinkedIn post and do two things: --- **1. Decide the Response Path (AI or Human)** - If the comment is **hyper-specific, deep, asks a thoughtful question, shares personal insights, or invites meaningful discussion** → mark it as: **Human** - If the comment is **generic, appreciative, short, supportive, or common** → mark it as: **AI** Be extremely selective. Only mark “Human” when the comment genuinely requires a thoughtful, intentional, and personalized response. Everything else should go to “AI.” --- **2. Generate a Human-like Reply for the Comment** Regardless of who is answering (AI or Human), always generate a comment reply that is: - **Authentic and emotionally intelligent** - Written in a **friendly, respectful, and warm tone** - Sounds like a real person, not AI - Uses the **commenter’s name naturally, if available** - No more than **5 lines** - Avoids overused phrases like “Thanks for sharing” or “Great point” unless contextually needed - Can include emojis subtly, if it fits the tone --- **Output Format:** Path: AI or Human Reply: [Insert high-quality, human-like reply here] Do not include any explanations. Just output the decision and the response.
Relay.app screenshot of: Prompt GPT-4.1 Nano
8
Paths
AAI Path
BPath B
This path will be taken when the rules below match.
Relay.app screenshot of: AI Path
Steps in Path A
9
LinkedIn logo
Comment on post or reply to a comment

Automatically posts the AI-generated reply as a response to the LinkedIn comment. This maintains engagement without manual intervention for routine comments.

Relay.app screenshot of: Comment on post or reply to a comment
Author picture (Kuldip Parmar)

We started by just replying to comments. That felt like enough — until we realized the real opportunity was in the people commenting.

Behind every “great post!” or thoughtful insight was a real person — sometimes a CMO, sometimes a startup founder — someone we could actually help.

So we evolved the system:
→ It now replies to comments and captures personal data like name, role, company, followers, and more.
→ Then stores everything in Airtable and scores each lead based on who they are.

We no longer scroll through comment sections or check who’s who — the system tells us.
And what used to be “thanks for the comment” is now “booked a discovery call.”

It’s like having a warm LinkedIn lead finder, built directly on Relay, working while we sleep.
No spam. No scraping. Just responding to the people already talking to us — and inviting the right ones into the conversation.

Kuldip Parmar
Founder