Templates / Track and classify Facebook ad angles with Apify, OpenAI, and Supabase

Track and classify Facebook ad angles with Apify, OpenAI, and Supabase

Unknown

by Apify ✓ · 8 views · created 2026-09-07 · Market Research, AI RAG

Unknown. This template uses community nodes we can't verify statically. Uses community nodes that can't be verified statically (unverified community packages are off by default in 3.0). Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 15 nodes and runs from “Set Dataset Inputs” (no trigger node, so run it manually or call it from another workflow). Along the way it connects OpenAI, Supabase, Supabase Vector Store and Embeddings OpenAI and 1 more.

How it runs

Trigger: From “Set Dataset Inputs” (no trigger node, so run it manually or call it from another workflow).

  1. Set Dataset Inputs (Edit Fields (Set)): sets 3 fields: adLibraryUrl, maxAds, adLibraryUrlUk
  2. Scrape Facebook Ads (Apify): run actor and get dataset
  3. Compile Ad Data (Code): runs custom JavaScript code
  4. AI Classify Ad Angle (OpenAI): uses OpenAI
  5. Check Ad Destination (Filter): keeps only the items that match a condition
  6. Assemble Ad Information (Code): runs custom JavaScript code
  7. Fetch Shopify Data (HTTP Request): calls an HTTP API
  8. Insert Ad to Supabase (Supabase): uses Supabase
  9. Compile Product Data (Code): runs custom JavaScript code
  10. Filter: keeps only the items that match a condition

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

Services it uses

OpenAISupabaseSupabase Vector StoreEmbeddings OpenAIApify (community)

Before you upgrade to n8n 3.0

We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).

  • Check that @apify/n8n-nodes-apify is verified or supports 3.0 (used in Scrape Facebook Ads).

Nodes used (11)

From the author

Quick overview This workflow manually scrapes Facebook Ad Library results via Apify, normalizes each ad and extracts destinations, classifies the ad’s persuasion angle with OpenAI, stores ads and related Shopify product data in Supabase, and embeds ad copy…

Excerpt from Apify'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.