Reply to Facebook ad comments with OpenRouter AI, Google Docs and Slack
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:
Queries go unanswered** for hours, killing purchase intent Positive reviews get ignored**, wasting social proof Negative reviews stay public** with no response, damaging brand trust Spam clutters the thread**, making the brand look unmonitored Manual replies are slow**, inconsistent, and cost agency time
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
Webhook fires every time someone comments on your Facebook page Filter skips comments by the page owner and ignores non-boosted organic posts โ only real comments on active ad posts continue Get Comment Details fetches the full comment text from the Facebook Graph API Skip Attachments drops GIF, sticker, and image-only comments โ only text comments are processed Get Post Data fetches the original ad post text so the AI understands the context AI Classifier reads both the ad and the comment together, then classifies into: QUERY ยท POSITIVE_REVIEW ยท NEGATIVE_REVIEW ยท SPAM Switch routes each classification to the right action branch 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 Reply to Comment posts the reply publicly on Facebook via Graph API 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
Always-on engagement**: Replies post instantly, day or night, no human needed Context-aware AI**: Reads the ad post AND the comment together before classifying โ not just the comment alone Multilingual replies**: Automatically matches the language of the commenter โ English, Urdu, or mixed โ without any configuration Knowledge Base powered**: Queries are answered using your own pricing, FAQs, and service info stored in Google Docs โ no hallucinated answers Smart escalation**: Negative reviews never get an auto-reply โ your team is alerted on Slack immediately with full context Spam-proof**: Attachment comments and spam are silently ignored, keeping your workflow clean and cost-efficient
๐ ๏ธ Setup Steps
Subscribe your Facebook Page to webhook feed events and paste the webhook URL Add your Facebook Graph API access token to the Query Auth credential Add your OpenRouter API credential (used for both classification and reply generation) Create a Google Doc with your agency's FAQs, services, and pricing โ paste the document ID into the Knowledge Base node Connect your Slack account and update the Slack user ID in the Inform User node to the right team member In the Filter node, replace your page name with your actual Facebook page name
โฑ๏ธ Estimated setup time: 20โ30 minutes
๐ Requirements
Facebook Page with webhook subscription (feed changes) Facebook Graph API access token OpenRouter account (LLM โ supports all major models) Google Docs account (Knowledge Base document) Slack account (for negative review alerts)
For assistance and support: salmanmehboob1947@gmail.com Linkedin: https://www.linkedin.com/in/salman-mehboob-pro/
Related Templates
AI Email Classifier & Auto-Delete for Gmail (SPAM/OFFER Cleaner)
This workflow is designed for freelancers, solopreneurs, and business owners who receive a high volume of irrelevant mes...
Automatic News Summarization & Email Digest with GPT-4, NewsAPI and Gmail
๐ฐ AI News Digest Agent: Auto News Summarizer & Email Newsletter Create an intelligent news curation system that automat...
Generate Food Recipes from Gmail & Form Requests with Ollama & Llama 3.2
This n8n template demonstrates how to create an intelligent food recipe assistant that accepts requests via Gmail and we...
๐ Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments