Lead Generation · n8n

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.

difficulty Intermediatesetup 55 minresult Every high-intent Instagram commenter lands in HubSpot as a contact your sales team can follow up
  1. 1

    Pull recent comments

    A Schedule Trigger every 20 minutes runs an HTTP Request to https://graph.facebook.com/v19.0/YOUR_MEDIA_ID/comments (or loop your latest media IDs) with fields=id,text,username,timestamp and your access token.

  2. 2

    Pre-filter on intent keywords

    A Filter node keeps only comments whose text matches a regex like price|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. 3

    Confirm intent with Claude

    An HTTP Request to Claude sends the comment and asks for strict JSON: intent (high, low, or none) and a one-line reason. Keep only high. This filters out 'how much I love this!' style false positives that keywords alone would catch.

  4. 4

    Create or update the HubSpot contact

    A HubSpot node (or HTTP Request to /crm/v3/objects/contacts) creates a contact keyed on a custom instagram_username property, with the comment text saved as a note and a lead_source of Instagram comment. HubSpot merges repeat commenters automatically.

  5. 5

    Notify the sales channel

    A Slack node 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.

About this recipe. Recipes on FlowRecipesHub are written for business owners, not developers, and are tested before publishing — how recipes get made. Some ingredient links are affiliate links that cost you nothing — full disclosure.