# Reply to Facebook comments with OpenRouter, Supabase, Postgres and Google Drive

> Quick overview This workflow auto-replies to Facebook Page comments using an OpenRouter-powered AI Agent with Postgres chat memory and a Supabase vector knowledge base, while keeping that knowledge base synced from PDFs in Google Drive (new, updated, and deleted files). How it works 1. Receives Meta webhook requests and returns the hub.challenge value to complete Facebook webhook verification when required. 2. Extracts the incoming Facebook comment details, ignores non-comment events, and skips comments authored by the Page itself to prevent reply loops. 3. Fetches the original Facebook post message via the Facebook Graph API to provide context for the reply. 4. Uses an AI Agent backed by an OpenRouter chat model, Postgres chat memory (per post and user), and a Supabase vector-store retrieval tool to draft a concise response. 5. Posts the AI-generated text back to Facebook as a reply to the specific comment via the Facebook Graph API. 6. Monitors Google Drive folders for PDF creations,

- **Domain**: `n8n-workflow-20192.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/20192
- Page (HTML): https://agenstry.com/agents/n8n-workflow-20192.n8n.io
- Documentation: https://n8n.io/workflows/20192
