Capture Instagram Comment Leads into HubSpot Automatically
An n8n workflow that watches comments on your Instagram posts for buying-intent keywords like 'price', 'link' or 'how much', uses Claude to confirm real intent, and creates a HubSpot contact with the comment as a note — so warm leads hiding in your comment section never slip away.
- 1
Pull recent comments
A
Schedule Triggerevery 20 minutes runs anHTTP Requesttohttps://graph.facebook.com/v19.0/YOUR_MEDIA_ID/comments(or loop your latest media IDs) withfields=id,text,username,timestampand your access token. - 2
Pre-filter on intent keywords
A
Filternode keeps only comments whose text matches a regex likeprice|link|how much|buy|available|dm|order. This cheap first pass means you only spend AI calls on comments that might actually be leads. - 3
Confirm intent with Claude
An
HTTP Requestto Claude sends the comment and asks for strict JSON:intent(high,low, ornone) and a one-linereason. Keep onlyhigh. This filters out 'how much I love this!' style false positives that keywords alone would catch. - 4
Create or update the HubSpot contact
A
HubSpotnode (or HTTP Request to/crm/v3/objects/contacts) creates a contact keyed on a custominstagram_usernameproperty, with the comment text saved as a note and alead_sourceofInstagram comment. HubSpot merges repeat commenters automatically. - 5
Notify the sales channel
A
Slacknode posts the username, the comment and a link to the post so a rep can reply while the interest is hot. Speed to lead is the whole game — this closes the gap from days to minutes.
Frequently asked questions
Can I get the commenter's email from Instagram?
No — Instagram's API never exposes a commenter's email for privacy reasons. This workflow captures the username and comment as a HubSpot contact/note so your team can reply in-app and invite them to DM or a landing page. The lead is the signal of intent; the email comes when they convert.
Why use AI instead of just keyword matching?
Keywords catch 'how much' but also catch 'how much I love this'. Claude reads the full comment and returns a simple intent score, so sarcasm, jokes and off-topic chatter don't create junk contacts. You still pre-filter on keywords first to keep AI calls (and cost) minimal.
Does it create duplicate contacts?
HubSpot deduplicates contacts by a unique property — here we use the Instagram username stored in a custom property. The workflow uses HubSpot's create-or-update behavior so a repeat commenter updates the existing contact with a new note rather than spawning duplicates.