Templates / Reply to Facebook comments using RAG with Google Drive, Supabase, OpenAI and Postgres

Reply to Facebook comments using RAG with Google Drive, Supabase, OpenAI and Postgres

Ready for 3.0

by MADIAD ✓ · 6 views · created 2026-10-02 · Support Chatbot, AI RAG

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 33 nodes and runs when an HTTP GET request hits its webhook URL (plus 3 other triggers). Along the way it connects OpenRouter Chat Model, Facebook Graph API, Google Drive and Supabase Vector Store and 3 more.

How it runs

Trigger: When an HTTP GET request hits its webhook URL (plus 3 other triggers).

  1. Set Challenge Variable (Edit Fields (Set)): sets 1 field: query['hub.challenge']
  2. Extract Comment Data (Edit Fields (Set)): sets 4 fields: COMMENT_ID, MESSAGE, POST_ID…
  3. Download the PDF (Google Drive): download
  4. Remove outdated vectors (Supabase): delete
  5. Remove vectors from database (Supabase): delete
  6. Respond to Webhook: sends the response back to the webhook caller
  7. Filter: Is Comment Event (If): checks a condition and branches into true / false
  8. Extract text from PDF (Extract from File): extracts data from a file (pdf)
  9. Download updated PDF (Google Drive): download
  10. Confirm file removed from Drive (Google Drive): delete file

…plus 9 more steps. See the full node list below.

Services it uses

OpenRouter Chat ModelFacebook Graph APIGoogle DriveSupabase Vector StoreSupabaseEmbeddings OpenAIPostgres Chat Memory

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (16)

From the author

Quick overview This workflow creates a Facebook Messenger chatbot that answers questions using a Supabase vector knowledge base built from PDFs in Google Drive, using OpenRouter for chat responses, OpenAI embeddings for search, and Postgres for conversation…

Excerpt from MADIAD's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.