Facebook ads competitive analysis using Gemini and Open AI
Ready for 3.0What this workflow does
This AI workflow has 13 nodes and runs when someone submits an n8n form. Along the way it connects OpenAI and Google Sheets.
How it runs
Trigger: When someone submits an n8n form.
- Scrape Ads (HTTP Request): calls an HTTP API
- Switch: routes items into branches
- Download Video (HTTP Request): calls an HTTP API
- OpenAI: uses OpenAI
- Extract from File: extracts data from a file
- Final Image Values (Edit Fields (Set)): sets or maps fields
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Merge: merges the data from its input branches
- Final Video Values (Edit Fields (Set)): sets or maps fields
- Wait: pauses before continuing
…plus 2 more steps. See the full node list below.
Services it uses
Other OpenAI + Google Sheets templates (2,011)
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 (10)
- n8n Form Trigger
n8n-nodes-base.formTrigger - HTTP Request
n8n-nodes-base.httpRequest - Switch
n8n-nodes-base.switch - OpenAI
@n8n/n8n-nodes-langchain.openAi - Extract from File
n8n-nodes-base.extractFromFile - Edit Fields (Set)
n8n-nodes-base.set - Merge
n8n-nodes-base.merge - Google Sheets
n8n-nodes-base.googleSheets - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Wait
n8n-nodes-base.wait
From the author
How it works - User submits a keyword through a form to trigger the workflow. - Ads matching the keyword are scraped from Facebook Ads Library. - Ads are filtered by media type (image or video). - Images are analyzed using an AI model to describe visuals and…