Agentrix212AI commited on
Commit
2946bbf
Β·
verified Β·
1 Parent(s): 90683e6

Upload 2 files

Browse files
Workflows/N8N_Workflows/Meta_ads_Research/.DS_Store ADDED
Binary file (6.15 kB). View file
 
Workflows/N8N_Workflows/Meta_ads_Research/Meta ads Resesarch Analyst.json ADDED
@@ -0,0 +1,716 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "Meta ads Resesarch Analyst",
3
+ "nodes": [
4
+ {
5
+ "parameters": {
6
+ "path": "05705b12-0a85-4c34-a3f6-2effcc28a8ff",
7
+ "formTitle": "Ads Library Finder ",
8
+ "formFields": {
9
+ "values": [
10
+ {
11
+ "fieldLabel": "searchQuery",
12
+ "placeholder": "What are you looking for ? "
13
+ },
14
+ {
15
+ "fieldLabel": "Country",
16
+ "placeholder": "e.g., US, UK, FR, MA"
17
+ }
18
+ ]
19
+ },
20
+ "options": {}
21
+ },
22
+ "id": "cdd8f2e2-f92a-4769-89d7-4fde0f131b4e",
23
+ "name": "πŸ“‹ Ad Analyzer Form",
24
+ "type": "n8n-nodes-base.formTrigger",
25
+ "typeVersion": 1,
26
+ "position": [
27
+ -1392,
28
+ 112
29
+ ],
30
+ "webhookId": "05705b12-0a85-4c34-a3f6-2effcc28a8ff"
31
+ },
32
+ {
33
+ "parameters": {
34
+ "jsCode": "const searchQuery = $input.first().json.searchQuery;\nconst country = $input.first().json.country || 'US';\nconst baseUrl = 'https://www.facebook.com/ads/library/';\nconst params = `?active_status=active&ad_type=all&country=${country}&q=${encodeURIComponent(searchQuery)}&search_type=keyword_unordered`;\n\nreturn [{\n json: {\n search_query: searchQuery,\n country: country,\n start_urls: [\n {\n url: baseUrl + params,\n method: 'GET'\n }\n ]\n }\n}];"
35
+ },
36
+ "id": "afe6d95e-5951-43ed-9209-ec4794bfe9f4",
37
+ "name": "πŸ”— Build Dynamic URL",
38
+ "type": "n8n-nodes-base.code",
39
+ "typeVersion": 2,
40
+ "position": [
41
+ -1200,
42
+ 112
43
+ ]
44
+ },
45
+ {
46
+ "parameters": {
47
+ "jsCode": "const processedAds = [];\nconst now = new Date();\n\nfor (const item of $input.all()) {\n const data = item.json;\n const snapshot = data.snapshot || {};\n \n const startDate = new Date(data.startDateFormatted);\n const daysActive = Math.ceil(Math.abs(now - startDate) / (1000 * 60 * 60 * 24));\n \n // Only process ads between 10-40 days\n if (daysActive < 10 || daysActive > 40) continue;\n \n let videoUrl = null;\n let visualUrl = null;\n let hasVideo = false;\n \n if (snapshot.videos && snapshot.videos.length > 0) {\n videoUrl = snapshot.videos[0].videoSdUrl || null;\n visualUrl = snapshot.videos[0].videoPreviewImageUrl || null;\n hasVideo = true;\n } else if (snapshot.images && snapshot.images.length > 0) {\n visualUrl = snapshot.images[0].originalImageUrl || null;\n }\n \n if (!visualUrl) {\n visualUrl = snapshot.pageProfilePictureUrl || null;\n }\n \n let score = 0;\n score += Math.min(daysActive * 2, 35);\n const pageLikes = data.pageLikeCount || 0;\n score += Math.min(pageLikes / 150, 25);\n score += hasVideo ? 20 : 12;\n score += snapshot.title && snapshot.title.length > 8 ? 8 : 0;\n score += snapshot.ctaType === 'SHOP_NOW' ? 12 : 0;\n \n processedAds.push({\n ad_id: data.adArchiveID,\n brand: data.pageName || 'Unknown',\n days_active: daysActive,\n performance_score: Math.round(score),\n headline: snapshot.title || 'No Headline',\n ad_copy: snapshot.body?.text || 'No Copy',\n cta_type: snapshot.ctaType || 'None',\n website_url: snapshot.linkUrl || '',\n video_url: videoUrl,\n visual_url: visualUrl,\n has_video: hasVideo,\n page_likes: pageLikes,\n platform: 'Facebook'\n });\n}\n\nprocessedAds.sort((a, b) => b.performance_score - a.performance_score);\nreturn processedAds.map(ad => ({ json: ad }));"
48
+ },
49
+ "id": "883baa92-dc9a-4de9-be17-28fc118d0a82",
50
+ "name": "πŸ“Š Process & Score",
51
+ "type": "n8n-nodes-base.code",
52
+ "typeVersion": 2,
53
+ "position": [
54
+ -816,
55
+ 112
56
+ ]
57
+ },
58
+ {
59
+ "parameters": {},
60
+ "id": "bca5d75f-2594-44cf-aafe-9aa5e704cf06",
61
+ "name": "πŸ† Top 3 Ads",
62
+ "type": "n8n-nodes-base.limit",
63
+ "typeVersion": 1,
64
+ "position": [
65
+ -656,
66
+ 112
67
+ ]
68
+ },
69
+ {
70
+ "parameters": {
71
+ "model": "deepseek/deepseek-chat-v3.1",
72
+ "options": {}
73
+ },
74
+ "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
75
+ "typeVersion": 1,
76
+ "position": [
77
+ 80,
78
+ 288
79
+ ],
80
+ "id": "5907a36d-885e-43aa-82da-88e0d075d6ee",
81
+ "name": "OpenRouter Chat Model",
82
+ "credentials": {
83
+ "openRouterApi": {
84
+ "id": "Uh6EhUnlPGQ0AEYw",
85
+ "name": "OpenRouter account"
86
+ }
87
+ }
88
+ },
89
+ {
90
+ "parameters": {
91
+ "operation": "Run actor and get dataset",
92
+ "actorId": {
93
+ "__rl": true,
94
+ "value": "JJghSZmShuco4j9gJ",
95
+ "mode": "list"
96
+ },
97
+ "customBody": "={\n \"activeStatus\": \"active\",\n \"isDetailsPerAd\": true,\n \"onlyTotal\": false,\n \"resultsLimit\": 50,\n \"startUrls\": [\n {\n \"url\": \"{{ $json.start_urls[0].url }}\",\n \"method\": \"GET\"\n }\n ]\n}",
98
+ "timeout": {}
99
+ },
100
+ "id": "290e9535-69e3-4df9-8893-aa361ae35798",
101
+ "name": "Scrape Facebook Ads",
102
+ "type": "@apify/n8n-nodes-apify.apify",
103
+ "typeVersion": 1,
104
+ "position": [
105
+ -1008,
106
+ 112
107
+ ],
108
+ "credentials": {
109
+ "apifyApi": {
110
+ "id": "FwXaaftV0KcSi0rP",
111
+ "name": "Apify account 2"
112
+ }
113
+ }
114
+ },
115
+ {
116
+ "parameters": {
117
+ "resource": "video",
118
+ "operation": "analyze",
119
+ "modelId": {
120
+ "__rl": true,
121
+ "value": "models/gemini-2.5-pro",
122
+ "mode": "list",
123
+ "cachedResultName": "models/gemini-2.5-pro"
124
+ },
125
+ "text": "Analyze this Facebook ad video for dropshippers. Focus on:\n1. Hook Type: curiosity_gap, problem_agitation, pattern_interrupt, social_proof, question, before_after\n2. First 3 seconds: What happens?\n3. Emotional triggers used\n4. CTA strength\n5. Why it stops scroll\n6. Virality potential (1-10)\nKeep it brief and actionable.",
126
+ "videoUrls": "={{ $json.video_url }}",
127
+ "options": {}
128
+ },
129
+ "id": "7501d918-de76-4fb9-8f74-2044e7883401",
130
+ "name": "Analyze Video",
131
+ "type": "@n8n/n8n-nodes-langchain.googleGemini",
132
+ "typeVersion": 1,
133
+ "position": [
134
+ -320,
135
+ -48
136
+ ],
137
+ "credentials": {
138
+ "googlePalmApi": {
139
+ "id": "jXlqNQRGeFOThx73",
140
+ "name": "Google Gemini(PaLM) Api account"
141
+ }
142
+ }
143
+ },
144
+ {
145
+ "parameters": {
146
+ "resource": "image",
147
+ "operation": "analyze",
148
+ "modelId": {
149
+ "__rl": true,
150
+ "value": "models/gemini-2.5-pro",
151
+ "mode": "list"
152
+ },
153
+ "text": "Analyze this Facebook ad image/thumbnail for dropshippers. Focus on:\n1. Visual Hook: What stops scroll?\n2. Colors used and emotional impact\n3. Product prominence\n4. Composition score (1-10)\n5. Trust signals present\n6. Mobile readability\nBe specific and actionable.",
154
+ "imageUrls": "={{ $json.visual_url }}",
155
+ "simplify": false,
156
+ "options": {}
157
+ },
158
+ "id": "7955b079-5c7d-4b21-bee7-da31fd505dc3",
159
+ "name": "Analyze Image",
160
+ "type": "@n8n/n8n-nodes-langchain.googleGemini",
161
+ "typeVersion": 1,
162
+ "position": [
163
+ -320,
164
+ 240
165
+ ],
166
+ "credentials": {
167
+ "googlePalmApi": {
168
+ "id": "jXlqNQRGeFOThx73",
169
+ "name": "Google Gemini(PaLM) Api account"
170
+ }
171
+ }
172
+ },
173
+ {
174
+ "parameters": {
175
+ "promptType": "define",
176
+ "text": "=You are an ecommerce ad analyst. Analyze this winning ad for dropshippers:\n\n**AD INFO**\n\nBrand: {{ $('πŸ† Top 3 Ads').item.json.brand }}\nDays Running: {{ $('πŸ† Top 3 Ads').item.json.days_active }} days\nScore: {{ $('πŸ† Top 3 Ads').item.json.performance_score }}/100\nHeadline:{{ $('πŸ† Top 3 Ads').item.json.headline }}\nCopy: {{ $('πŸ† Top 3 Ads').item.json.ad_copy }}\nCTA: {{ $('πŸ† Top 3 Ads').item.json.cta_type }}\n\n\n**LINKS**\nVideo: {{ $('πŸ† Top 3 Ads').item.json.video_url }}\nLanding Page: {{ $('πŸ† Top 3 Ads').item.json.website_url }}\n\n**VIDEO ANALYSIS**\n{{ $json[\"Video analysis \"] }}\n**IMAGE ANALYSIS**\n{{ $json[\"image_analysis \"] }}\nProvide a concise executive analysis covering:\n1. Hook Type (name it)\n2. Why it works (1-2 sentences)\n3. Key emotional trigger\n4. Virality Score (1-10)\n5. 3 Swipeable Takeaways for dropshippers\n\nBe casual but analytical. This is for content creation.",
177
+ "hasOutputParser": true,
178
+ "messages": {
179
+ "messageValues": [
180
+ {
181
+ "message": "You are a dropshipping ad expert teaching ecommerce marketers. Be educational but casual. Explain like you're breaking down winning ads for your audience."
182
+ }
183
+ ]
184
+ }
185
+ },
186
+ "id": "9b6015d8-76b0-4652-ba0a-13817d1eb3d5",
187
+ "name": "Generate Executive Summary",
188
+ "type": "@n8n/n8n-nodes-langchain.chainLlm",
189
+ "typeVersion": 1.4,
190
+ "position": [
191
+ 128,
192
+ 112
193
+ ]
194
+ },
195
+ {
196
+ "parameters": {
197
+ "assignments": {
198
+ "assignments": [
199
+ {
200
+ "id": "11b3d541-0243-48bb-822a-77ecc4278186",
201
+ "name": "brand",
202
+ "value": "={{ $json.brand }}",
203
+ "type": "string"
204
+ },
205
+ {
206
+ "id": "66c5a25d-77fe-428d-b901-2d6541bc1fb1",
207
+ "name": "days_active",
208
+ "value": "={{ $json.days_active }}",
209
+ "type": "string"
210
+ },
211
+ {
212
+ "id": "48c6f24f-3dcf-44fc-97c8-0595b7ff083a",
213
+ "name": "headline",
214
+ "value": "={{ $json.headline }}",
215
+ "type": "string"
216
+ },
217
+ {
218
+ "id": "79dc546f-9b61-466c-bfb7-9c2a5b187ce4",
219
+ "name": "performance_score",
220
+ "value": "={{ $json.performance_score }}",
221
+ "type": "string"
222
+ },
223
+ {
224
+ "id": "5717d3be-d568-456d-a030-daedc15db015",
225
+ "name": "cta_type",
226
+ "value": "={{ $json.cta_type }}",
227
+ "type": "string"
228
+ },
229
+ {
230
+ "id": "5253f093-607a-4c92-afb7-d01044ff93bf",
231
+ "name": "website_url",
232
+ "value": "={{ $json.website_url }}",
233
+ "type": "string"
234
+ },
235
+ {
236
+ "id": "f348e791-2528-4ef2-b3b2-c8ff0bbc63e3",
237
+ "name": "video_url",
238
+ "value": "={{ $json.video_url }}",
239
+ "type": "string"
240
+ },
241
+ {
242
+ "id": "98b66de4-1a4c-4da3-8d1a-ab32b0d3161c",
243
+ "name": "visual_url",
244
+ "value": "={{ $json.visual_url }}",
245
+ "type": "string"
246
+ },
247
+ {
248
+ "id": "a4d34997-6065-48b5-a8e1-71a7bc7c439a",
249
+ "name": "Video analysis ",
250
+ "value": "={{ $json.content.parts[0].text }}",
251
+ "type": "string"
252
+ },
253
+ {
254
+ "id": "d63c9552-1052-4765-8711-1ec6ca90e541",
255
+ "name": "image_analysis ",
256
+ "value": "={{ $json.candidates[0].content.parts[0].text }}",
257
+ "type": "string"
258
+ },
259
+ {
260
+ "id": "114441cc-90b9-4f4f-9106-a01a187d18cb",
261
+ "name": "ad copy",
262
+ "value": "={{ $json.ad_copy }}",
263
+ "type": "string"
264
+ }
265
+ ]
266
+ },
267
+ "options": {}
268
+ },
269
+ "type": "n8n-nodes-base.set",
270
+ "typeVersion": 3.4,
271
+ "position": [
272
+ -48,
273
+ 112
274
+ ],
275
+ "id": "05b89360-3777-471d-96e5-b76035027aef",
276
+ "name": "Edit Fields"
277
+ },
278
+ {
279
+ "parameters": {
280
+ "jsonSchemaExample": "{\n \"ad_number\": 1,\n \"brand\": \"Slicati sale online\",\n \"days_active\": 40,\n \"performance_score\": 75,\n \"headline\": \"Introducing Apex Custom Fit Dashboard Mat Cover!\",\n \"ad_copy\": \"πŸš— Upgrade your ride's style and protection with the Apex Custom Fit Dashboard Mat Cover. 🌟 Tailored to fit Sedans, Hatchbacks, SUVs, MPVs, Trucks, and more. βœ… Protect from UV rays, dirt, and scratches. ✨ Easy to install and clean.\",\n \"cta_type\": \"SHOP_NOW\",\n \"hook_type\": \"Problem-Solution Hook\",\n \"why_it_works\": \"Simple and benefit-packed. The hook grabs attention by highlighting a common pain point (dashboard wear), and the copy quickly lists practical perksβ€”UV protection, easy cleaning, universal fit.\",\n \"emotional_trigger\": \"Pride of Ownership\",\n \"virality_score\": 6,\n \"takeaway_1\": \"Lead with the problem: Visually show the issue (faded dashboard, scratches) before the solutionβ€”creates instant relevance.\",\n \"takeaway_2\": \"Bundle benefits clearly: Use emojis and bullet-style copy to make UV protection, ease, and fit stand out at a glance.\",\n \"takeaway_3\": \"Highlight universality: Mentioning it fits sedans, SUVs, trucks, etc., widens the audience without overcomplicating the message.\",\n \"video_url\": \"https://video-iad3-1.xx.fbcdn.net/o1/v/t2/f2/m412/...\",\n \"landing_page_url\": \"https://autocarmodsvips.com/products/dashboard\",\n \"facebook_page_url\": \"https://facebook.com/...\",\n \"platform\": \"Facebook\"\n}"
281
+ },
282
+ "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
283
+ "typeVersion": 1.3,
284
+ "position": [
285
+ 288,
286
+ 288
287
+ ],
288
+ "id": "9926abcb-a72c-477d-8ed5-9f31303e0b9c",
289
+ "name": "Structured Output Parser"
290
+ },
291
+ {
292
+ "parameters": {
293
+ "operation": "append",
294
+ "documentId": {
295
+ "__rl": true,
296
+ "value": "122fmuIfpKXh-UHzh3yxo4t6IrGmqQArw0mWiSMgXvn0",
297
+ "mode": "list",
298
+ "cachedResultName": "Meta_Ads_market",
299
+ "cachedResultUrl": "https://docs.google.com/spreadsheets/d/122fmuIfpKXh-UHzh3yxo4t6IrGmqQArw0mWiSMgXvn0/edit?usp=drivesdk"
300
+ },
301
+ "sheetName": {
302
+ "__rl": true,
303
+ "value": 779726472,
304
+ "mode": "list",
305
+ "cachedResultName": "ads",
306
+ "cachedResultUrl": "https://docs.google.com/spreadsheets/d/122fmuIfpKXh-UHzh3yxo4t6IrGmqQArw0mWiSMgXvn0/edit#gid=779726472"
307
+ },
308
+ "columns": {
309
+ "mappingMode": "defineBelow",
310
+ "value": {
311
+ "brand": "={{ $json.output.brand }}",
312
+ "days_active": "={{ $json.output.days_active }}",
313
+ "performance_score": "={{ $json.output.performance_score }}/100",
314
+ "headline": "={{ $json.output.headline }}",
315
+ "ad_copy": "={{ $json.output.ad_copy }}",
316
+ "cta_type": "={{ $json.output.cta_type }}",
317
+ "hook_type": "={{ $json.output.hook_type }}",
318
+ "why_it_works": "={{ $json.output.why_it_works }}",
319
+ "emotional_trigger": "={{ $json.output.emotional_trigger }}",
320
+ "virality_score": "={{ $json.output.virality_score }}",
321
+ "takeaway_1": "={{ $json.output.takeaway_1 }}",
322
+ "takeaway_2": "={{ $json.output.takeaway_2 }}",
323
+ "takeaway_3": "={{ $json.output.takeaway_3 }}",
324
+ "video_url": "={{ $json.output.video_url }}",
325
+ "landing_page_url": "={{ $json.output.landing_page_url }}",
326
+ "facebook_page_url": "={{ $json.output.facebook_page_url }}",
327
+ "platform": "={{ $json.output.platform }}"
328
+ },
329
+ "matchingColumns": [],
330
+ "schema": [
331
+ {
332
+ "id": "brand",
333
+ "displayName": "brand",
334
+ "required": false,
335
+ "defaultMatch": false,
336
+ "display": true,
337
+ "type": "string",
338
+ "canBeUsedToMatch": true
339
+ },
340
+ {
341
+ "id": "days_active",
342
+ "displayName": "days_active",
343
+ "required": false,
344
+ "defaultMatch": false,
345
+ "display": true,
346
+ "type": "string",
347
+ "canBeUsedToMatch": true
348
+ },
349
+ {
350
+ "id": "performance_score",
351
+ "displayName": "performance_score",
352
+ "required": false,
353
+ "defaultMatch": false,
354
+ "display": true,
355
+ "type": "string",
356
+ "canBeUsedToMatch": true
357
+ },
358
+ {
359
+ "id": "headline",
360
+ "displayName": "headline",
361
+ "required": false,
362
+ "defaultMatch": false,
363
+ "display": true,
364
+ "type": "string",
365
+ "canBeUsedToMatch": true
366
+ },
367
+ {
368
+ "id": "ad_copy",
369
+ "displayName": "ad_copy",
370
+ "required": false,
371
+ "defaultMatch": false,
372
+ "display": true,
373
+ "type": "string",
374
+ "canBeUsedToMatch": true
375
+ },
376
+ {
377
+ "id": "cta_type",
378
+ "displayName": "cta_type",
379
+ "required": false,
380
+ "defaultMatch": false,
381
+ "display": true,
382
+ "type": "string",
383
+ "canBeUsedToMatch": true
384
+ },
385
+ {
386
+ "id": "hook_type",
387
+ "displayName": "hook_type",
388
+ "required": false,
389
+ "defaultMatch": false,
390
+ "display": true,
391
+ "type": "string",
392
+ "canBeUsedToMatch": true
393
+ },
394
+ {
395
+ "id": "why_it_works",
396
+ "displayName": "why_it_works",
397
+ "required": false,
398
+ "defaultMatch": false,
399
+ "display": true,
400
+ "type": "string",
401
+ "canBeUsedToMatch": true
402
+ },
403
+ {
404
+ "id": "emotional_trigger",
405
+ "displayName": "emotional_trigger",
406
+ "required": false,
407
+ "defaultMatch": false,
408
+ "display": true,
409
+ "type": "string",
410
+ "canBeUsedToMatch": true
411
+ },
412
+ {
413
+ "id": "virality_score",
414
+ "displayName": "virality_score",
415
+ "required": false,
416
+ "defaultMatch": false,
417
+ "display": true,
418
+ "type": "string",
419
+ "canBeUsedToMatch": true
420
+ },
421
+ {
422
+ "id": "takeaway_1",
423
+ "displayName": "takeaway_1",
424
+ "required": false,
425
+ "defaultMatch": false,
426
+ "display": true,
427
+ "type": "string",
428
+ "canBeUsedToMatch": true
429
+ },
430
+ {
431
+ "id": "takeaway_2",
432
+ "displayName": "takeaway_2",
433
+ "required": false,
434
+ "defaultMatch": false,
435
+ "display": true,
436
+ "type": "string",
437
+ "canBeUsedToMatch": true
438
+ },
439
+ {
440
+ "id": "takeaway_3",
441
+ "displayName": "takeaway_3",
442
+ "required": false,
443
+ "defaultMatch": false,
444
+ "display": true,
445
+ "type": "string",
446
+ "canBeUsedToMatch": true
447
+ },
448
+ {
449
+ "id": "video_url",
450
+ "displayName": "video_url",
451
+ "required": false,
452
+ "defaultMatch": false,
453
+ "display": true,
454
+ "type": "string",
455
+ "canBeUsedToMatch": true
456
+ },
457
+ {
458
+ "id": "landing_page_url",
459
+ "displayName": "landing_page_url",
460
+ "required": false,
461
+ "defaultMatch": false,
462
+ "display": true,
463
+ "type": "string",
464
+ "canBeUsedToMatch": true
465
+ },
466
+ {
467
+ "id": "facebook_page_url",
468
+ "displayName": "facebook_page_url",
469
+ "required": false,
470
+ "defaultMatch": false,
471
+ "display": true,
472
+ "type": "string",
473
+ "canBeUsedToMatch": true
474
+ },
475
+ {
476
+ "id": "platform",
477
+ "displayName": "platform",
478
+ "required": false,
479
+ "defaultMatch": false,
480
+ "display": true,
481
+ "type": "string",
482
+ "canBeUsedToMatch": true
483
+ }
484
+ ],
485
+ "attemptToConvertTypes": false,
486
+ "convertFieldsToString": false
487
+ },
488
+ "options": {}
489
+ },
490
+ "type": "n8n-nodes-base.googleSheets",
491
+ "typeVersion": 4.7,
492
+ "position": [
493
+ 416,
494
+ 112
495
+ ],
496
+ "id": "d61f164b-322e-4303-b33a-4832140fb49d",
497
+ "name": "Append row in sheet",
498
+ "credentials": {
499
+ "googleSheetsOAuth2Api": {
500
+ "id": "cqc0aG1cc1RyiagA",
501
+ "name": "Google Sheets account"
502
+ }
503
+ }
504
+ },
505
+ {
506
+ "parameters": {
507
+ "content": "## facebook ads Library Scrapping \n",
508
+ "height": 448,
509
+ "width": 608
510
+ },
511
+ "type": "n8n-nodes-base.stickyNote",
512
+ "position": [
513
+ -1456,
514
+ -80
515
+ ],
516
+ "typeVersion": 1,
517
+ "id": "47aa936f-0242-4ec8-a3bf-82dac11d54a4",
518
+ "name": "Sticky Note"
519
+ },
520
+ {
521
+ "parameters": {
522
+ "content": "## Image & Video Analysis using Gemini \n",
523
+ "height": 528,
524
+ "width": 416,
525
+ "color": 3
526
+ },
527
+ "type": "n8n-nodes-base.stickyNote",
528
+ "position": [
529
+ -448,
530
+ -96
531
+ ],
532
+ "typeVersion": 1,
533
+ "id": "3dc2753e-8349-43b8-a495-14ae5442d8d0",
534
+ "name": "Sticky Note1"
535
+ },
536
+ {
537
+ "parameters": {
538
+ "content": "# Ad & Marketing Analyst Reporting ",
539
+ "height": 544,
540
+ "width": 560,
541
+ "color": 5
542
+ },
543
+ "type": "n8n-nodes-base.stickyNote",
544
+ "position": [
545
+ 0,
546
+ -128
547
+ ],
548
+ "typeVersion": 1,
549
+ "id": "20aa236e-eced-4dc3-9781-e9cdeb3bdbe9",
550
+ "name": "Sticky Note2"
551
+ }
552
+ ],
553
+ "pinData": {
554
+ "Edit Fields": [
555
+ {
556
+ "json": {
557
+ "brand": "Slicati sale online",
558
+ "days_active": "40",
559
+ "headline": "Introducing Apex Custom Fit Dashboard Mat Cover!",
560
+ "performance_score": "75",
561
+ "cta_type": "SHOP_NOW",
562
+ "website_url": "https://autocarmodsvips.com/products/dashboard",
563
+ "video_url": "https://video-iad3-1.xx.fbcdn.net/o1/v/t2/f2/m412/AQMkVHO9hs0TwDWD6hDByIwEoGewEDWuUbWSZpG13M2vkovU5MLBU9uAE6yhVSWdebGaMx7KCcNSOthC1XnO8EdHQMBSIFQ-VmtQYMWcrQ.mp4?_nc_cat=101&_nc_sid=8bf8fe&_nc_ht=video-iad3-1.xx.fbcdn.net&_nc_ohc=D0e8wluZIs4Q7kNvwHfU_hx&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5WSV9VU0VDQVNFX1BST0RVQ1RfVFlQRS4uQzMuMzYwLnN2ZV9zZCIsInhwdl9hc3NldF9pZCI6NzU4MzM4NDYzODc1ODIxLCJhc3NldF9hZ2VfZGF5cyI6NDIsInZpX3VzZWNhc2VfaWQiOjEwMTIyLCJkdXJhdGlvbl9zIjoxOCwidXJsZ2VuX3NvdXJjZSI6Ind3dyJ9&ccb=17-1&_nc_gid=B3qjRznlP9samr4CV9MLsg&_nc_zt=28&oh=00_Afi-HCzx0QYNYEhlVAF8A173lGPnZ8Oc9Z39O5tEkmMixA&oe=6928B76D",
564
+ "visual_url": "https://scontent-iad3-1.xx.fbcdn.net/v/t39.35426-6/558930730_836604922383579_2308113173645191596_n.jpg?_nc_cat=102&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=-cdhty_Ov7IQ7kNvwFaZt-v&_nc_oc=AdnivH-EEctAFhLq6MH3wIuuwrVjFX4x-JeQxiusvrYWGsjEAcGc_eannAFOkaBGUkQ&_nc_zt=14&_nc_ht=scontent-iad3-1.xx&_nc_gid=B3qjRznlP9samr4CV9MLsg&oh=00_Afi-O-ufMVSQE1Sc537QHAay3FQKsLNqDqT3S7C6At8u3Q&oe=6928DBCE",
565
+ "Video analysis ": null,
566
+ "image_analysis ": null,
567
+ "ad copy": "πŸš— Upgrade your ride's style and protection with the Apex Custom Fit Dashboard Mat Cover. \n🌟 Tailored to fit Sedans, Hatchbacks, SUVs, MPVs, Trucks, and more. \nβœ… Protect from UV rays, dirt, and scratches. \n✨ Easy to install and clean. \nShop now: https://autocarmodsvips.com/products/dashboard"
568
+ }
569
+ }
570
+ ]
571
+ },
572
+ "connections": {
573
+ "πŸ“‹ Ad Analyzer Form": {
574
+ "main": [
575
+ [
576
+ {
577
+ "node": "πŸ”— Build Dynamic URL",
578
+ "type": "main",
579
+ "index": 0
580
+ }
581
+ ]
582
+ ]
583
+ },
584
+ "πŸ”— Build Dynamic URL": {
585
+ "main": [
586
+ [
587
+ {
588
+ "node": "Scrape Facebook Ads",
589
+ "type": "main",
590
+ "index": 0
591
+ }
592
+ ]
593
+ ]
594
+ },
595
+ "πŸ“Š Process & Score": {
596
+ "main": [
597
+ [
598
+ {
599
+ "node": "πŸ† Top 3 Ads",
600
+ "type": "main",
601
+ "index": 0
602
+ }
603
+ ]
604
+ ]
605
+ },
606
+ "πŸ† Top 3 Ads": {
607
+ "main": [
608
+ [
609
+ {
610
+ "node": "Analyze Video",
611
+ "type": "main",
612
+ "index": 0
613
+ },
614
+ {
615
+ "node": "Analyze Image",
616
+ "type": "main",
617
+ "index": 0
618
+ },
619
+ {
620
+ "node": "Edit Fields",
621
+ "type": "main",
622
+ "index": 0
623
+ }
624
+ ]
625
+ ]
626
+ },
627
+ "OpenRouter Chat Model": {
628
+ "ai_languageModel": [
629
+ [
630
+ {
631
+ "node": "Generate Executive Summary",
632
+ "type": "ai_languageModel",
633
+ "index": 0
634
+ }
635
+ ]
636
+ ]
637
+ },
638
+ "Scrape Facebook Ads": {
639
+ "main": [
640
+ [
641
+ {
642
+ "node": "πŸ“Š Process & Score",
643
+ "type": "main",
644
+ "index": 0
645
+ }
646
+ ]
647
+ ]
648
+ },
649
+ "Analyze Video": {
650
+ "main": [
651
+ [
652
+ {
653
+ "node": "Edit Fields",
654
+ "type": "main",
655
+ "index": 0
656
+ }
657
+ ]
658
+ ]
659
+ },
660
+ "Analyze Image": {
661
+ "main": [
662
+ [
663
+ {
664
+ "node": "Edit Fields",
665
+ "type": "main",
666
+ "index": 0
667
+ }
668
+ ]
669
+ ]
670
+ },
671
+ "Generate Executive Summary": {
672
+ "main": [
673
+ [
674
+ {
675
+ "node": "Append row in sheet",
676
+ "type": "main",
677
+ "index": 0
678
+ }
679
+ ]
680
+ ]
681
+ },
682
+ "Edit Fields": {
683
+ "main": [
684
+ [
685
+ {
686
+ "node": "Generate Executive Summary",
687
+ "type": "main",
688
+ "index": 0
689
+ }
690
+ ]
691
+ ]
692
+ },
693
+ "Structured Output Parser": {
694
+ "ai_outputParser": [
695
+ [
696
+ {
697
+ "node": "Generate Executive Summary",
698
+ "type": "ai_outputParser",
699
+ "index": 0
700
+ }
701
+ ]
702
+ ]
703
+ }
704
+ },
705
+ "active": false,
706
+ "settings": {
707
+ "executionOrder": "v1"
708
+ },
709
+ "versionId": "f863fa92-bfb3-4cdd-bb63-717c90d3ea60",
710
+ "meta": {
711
+ "templateCredsSetupCompleted": true,
712
+ "instanceId": "66c58b798d3adbdaf64a47b3041d335e10015ca13cec5104fbf9f568a82eba73"
713
+ },
714
+ "id": "v1GyYHm7RijFfaKK",
715
+ "tags": []
716
+ }