πŸ“± Reply to Facebook ad comments with OpenRouter AI, Google Docs and Slack

⚑ 309 views Β· πŸ“± Social Media & Email Marketing

πŸ’‘ Pro Tip β€” If you’ve run into Facebook’s Graph API permission restrictions, ScraperNode is a community node that scrapes pages, groups, posts, and comments directly β€” no app review needed.

View All Scrapers

Description

Every comment on your Facebook ad is a sales opportunity. But manually replying to dozens of comments every day - in the right tone, in the right language, at the right speed - is simply not scalable.

This workflow deploys an AI agent that watches your boosted Facebook posts 24/7, classifies every incoming comment, and instantly posts a smart public reply - so your ads stay engaged, your leads get answered, and your team only steps in when it truly matters.


🚨 The Problem This Solves

When businesses and agencies run Facebook Ads, comments pile up fast:

This workflow eliminates all four problems automatically β€” with zero manual effort for routine engagement and instant alerts for anything that needs a human touch.


βš™οΈ How It Works

  1. Webhook fires every time someone comments on your Facebook page
  2. Filter skips comments by the page owner and ignores non-boosted organic posts β€” only real comments on active ad posts continue
  3. Get Comment Details fetches the full comment text from the Facebook Graph API
  4. Skip Attachments drops GIF, sticker, and image-only comments β€” only text comments are processed
  5. Get Post Data fetches the original ad post text so the AI understands the context
  6. AI Classifier reads both the ad and the comment together, then classifies into: QUERY Β· POSITIVE_REVIEW Β· NEGATIVE_REVIEW Β· SPAM
  7. Switch routes each classification to the right action branch
  8. AI Reply Generator writes a warm, human-sounding public reply β€” automatically in the commenter’s own language (English / Urdu / mixed) and searches your Google Docs Knowledge Base for accurate answers to queries
  9. Reply to Comment posts the reply publicly on Facebook via Graph API
  10. Slack Alert sends your team a full notification with commenter name, comment text, post link, and comment link β€” for every negative review that needs a manual response

βœ… Key Benefits


πŸ› οΈ Setup Steps

  1. Subscribe your Facebook Page to webhook feed events and paste the webhook URL
  2. Add your Facebook Graph API access token to the Query Auth credential
  3. Add your OpenRouter API credential (used for both classification and reply generation)
  4. Create a Google Doc with your agency’s FAQs, services, and pricing β€” paste the document ID into the Knowledge Base node
  5. Connect your Slack account and update the Slack user ID in the Inform User node to the right team member
  6. In the Filter node, replace your page name with your actual Facebook page name

⏱️ Estimated setup time: 20–30 minutes


πŸ“‹ Requirements


For assistance and support: salmanmehboob1947@gmail.com Linkedin: https://www.linkedin.com/in/salman-mehboob-pro/

πŸ”— Nodes Used

HTTP Request, Slack, Webhook, Filter, AI Agent, Structured Output Parser

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup