Quick overview
This workflow runs every 15 minutes to scan your socials with FanBase Copilot DMs for purchase-intent messages, enriches matched fans by resolving their social handle via FanBase CRM and scraping their Instagram profile with Apify, then writes or updates a lead row in Google Sheets.
How it works
- Runs every 15 minutes on a schedule.
- Reads a saved timestamp watermark from an n8n data table and queries FanBase MCP for new DM activity since that time (or the last 24 hours on the first run).
- Filters the returned events to DMs only, detects purchase intent via keyword matching, keeps one lead per fan, and generates a reply link for the conversation.
- Updates the watermark in the data table so the next run only scans newer messages.
- Pulls two pages of FanBase MCP CRM data, merges them, and joins each intent lead to its CRM profile to resolve the fan’s handle and profile URL.
- Runs the Apify actor apify/instagram-profile-scraper for each resolved handle to retrieve profile details like bio, follower count, and external links.
- Builds a normalized lead record (including an extracted email when available) and appends or updates the matching row in a Google Sheets Leads tab using fan_id as the unique key.
Setup
- Create and select a FanBase MCP OAuth2 credential for https://api.copilot.fanbase.gg/mcp on the DM query and CRM lookup steps.
- Create an n8n data table with string columns key and value, select it in the watermark read/write steps, and use the key funnel_last_ts for the stored timestamp.
- Add an Apify API token credential and ensure the workflow can run the apify/instagram-profile-scraper actor.
- Add a Google Sheets OAuth2 credential, paste your target spreadsheet URL, and create a Leads sheet with the required header columns used by the workflow.
- Review and tune the purchase-intent keyword list and, if needed, increase the number of CRM pages fetched to cover your full FanBase CRM.
Requirements
- FanBase MCP
- Google API
- Apify API (Free account)
Additional info
This is a base build for a GTM Engineering stack we use internally to qualify leads and scrape direct to CRM - the nodes can be changed out to your product stack however keeping FanBase MCP means less of a setup on API's as it connects to TikTok,Instagram,X and Twtich all in one package