Turn LinkedIn comments into personalized DMs with Airtable dedup

Every 30 minutes, find new commenters on your lead magnet post and send each one a personalized DM or connection invite, without ever double messaging.

Agentic Task
UnipileAirtableSalesMarketingLead Enrichment
PromptCreate

Every 30 minutes, run an agent that turns new comments on my LinkedIn lead magnet post into personalized outreach, using Unipile for LinkedIn and Airtable for the dedup log. The trigger is a cron on a 30 minute schedule.

Inputs I will configure at the top of the prompt: the LinkedIn post id to monitor, the trigger phrase I asked people to comment (for example, "comment GUIDE to get the playbook"), a small list of natural variations that should also count (like "guide", "yes please", "send it", "info"), the lead magnet link, my ideal customer profile in one or two sentences, the Airtable base id and table name for the outreach log, and a per run cap on new connection invites (default 15, to respect LinkedIn's daily invite ceiling).

On each run the agent should do the following. First, use Unipile's List Post Comments to pull the current commenters on the configured post. Second, use Airtable's List Records to load the existing dedup log so we know who we have already contacted. Third, filter to commenters whose comment text matches the trigger intent (the exact phrase or any of the configured variations, case insensitive, some tolerance for punctuation and emojis) and who are not already present in the Airtable log.

For each remaining new commenter, use Unipile's Retrieve User Profile to grab a couple of context signals like their headline and current company. Use those signals plus the configured ideal customer description to decide if they are a plausible fit. If they clearly do not match the ICP, skip them and do not log anything so we can revisit later if the criteria change.

For each qualified new commenter, decide the outreach path based on their connection degree to me. If they are a first degree connection, use Unipile's Start New Chat to send a short personalized DM that references their role or company in one line, thanks them for commenting, and shares the lead magnet link. If they are not a first degree connection, use Unipile's Send Invitation with a two line personalized note that mentions the post they commented on and teases the resource without dropping the link (LinkedIn strips links from invite notes). Cap new invitations at the configured per run limit (default 15). DMs to existing connections do not count toward that cap.

After each successful DM or invite, use Airtable's Create Records to append a row to the outreach log with the commenter's name, their LinkedIn provider id, the comment text that triggered them, the action taken ("dm_sent" or "invite_sent"), and a timestamp. Batch up to 10 rows per Create Records call. If sending a DM or invite fails for any single commenter, catch the error, skip that person, and continue with the rest so one bad record does not halt the run.

Guardrails to bake in. Never message or invite anyone who is already present in the Airtable log, even if they leave a second comment. Never exceed the configured per run invite cap. Never send a DM without personalizing it with something specific from the profile (their headline or current company). Do not comment back on the post itself, all outreach happens through DMs or invites. At the end of the run, produce a short summary: how many new commenters were found, how many were skipped as ICP mismatches, how many DMs were sent, how many invites were sent, and how many were skipped because the invite cap was hit.

Additional information

What does this prompt do?
  • Watches a specific LinkedIn post for people who comment your trigger phrase (like 'comment GUIDE for the playbook') and treats each new commenter as a warm inbound lead.
  • Checks an Airtable log so anyone you have already reached out to is skipped, so no one ever hears from you twice.
  • Pulls a quick snapshot of each new commenter's headline and current company, then decides the right next step: a short personalized DM if you are already connected, or a personalized invite with a two line note if you are not.
  • Logs every commenter you contacted back to Airtable with their name, comment, action taken, and timestamp so your history stays clean run after run.
What do I need to use this?
  • A Unipile account with your LinkedIn profile connected.
  • An Airtable base with a simple table for tracking who you have already messaged (name, LinkedIn id, comment text, action taken, timestamp).
  • The LinkedIn post URL or id you want to monitor, plus the trigger phrase you asked people to comment.
  • A short description of your ideal customer so the agent can skip commenters who clearly are not a fit.
How can I customize it?
  • Change the trigger phrase or add extra variations like 'yes please', 'send it', or 'info' so the agent catches all the ways people naturally reply.
  • Adjust the daily cap on new connection invites so you stay safely under LinkedIn's limit for your account.
  • Tweak the ideal customer description to tighten or loosen who counts as a qualified lead.
  • Rewrite the DM and invite templates in the prompt so the tone and lead magnet link match your brand.

Frequently asked questions

Will this send a DM to someone I have already messaged?
No. Before contacting anyone the agent checks your Airtable log and skips any commenter already in it. Each successful outreach is written back to Airtable at the end of the run, so the next run has an up to date list.
What if a commenter is not connected to me on LinkedIn?
The agent sends them a personalized connection invite with a two line note that references your post and teases the resource. If they are already a first degree connection it sends a direct message instead.
Will this get my LinkedIn account flagged for spam?
The agent caps new connection invites per run so you stay under LinkedIn's daily limit, only messages people who explicitly commented on your post, and personalizes each message with their role and company. You can adjust the cap to be even more conservative.
Does it catch people who type something other than the exact trigger word?
Yes. The agent handles natural variations like 'guide', 'yes please', 'send it', or 'info'. You can add or remove variations in the prompt to match how your audience actually responds.
How do I switch which post it monitors?
Edit the LinkedIn post id and trigger phrase in the prompt. You can also point it at a different Airtable base or table if you want to run separate logs for different campaigns.

Stop losing warm leads in your LinkedIn comments.

Connect Unipile and Airtable once, and Geni turns every new commenter on your lead magnet post into a personalized DM or invite every 30 minutes.