Agentrix212AI commited on
Commit
b6f2327
·
verified ·
1 Parent(s): d91241a

Upload Carousels_Instagram_Posts.json

Browse files
Workflows/N8N_Workflows/Instagram_Carousels_Design_Agent/Carousels_Instagram_Posts.json ADDED
@@ -0,0 +1,628 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "Carousels Instagram Posts",
3
+ "nodes": [
4
+ {
5
+ "parameters": {
6
+ "path": "optimized-carousel",
7
+ "formTitle": "🎨 Optimized Carousel Generator",
8
+ "formDescription": "Generate consistent carousel content with 2-agent efficiency",
9
+ "formFields": {
10
+ "values": [
11
+ {
12
+ "fieldLabel": "Topic/Subject",
13
+ "fieldType": "textInput",
14
+ "placeholder": "e.g., A2A Protocol, Digital Marketing",
15
+ "requiredField": true
16
+ },
17
+ {
18
+ "fieldLabel": "Content Purpose",
19
+ "fieldType": "dropdown",
20
+ "fieldOptions": {
21
+ "values": [
22
+ {
23
+ "option": "Educational/Tutorial"
24
+ },
25
+ {
26
+ "option": "Product Launch"
27
+ },
28
+ {
29
+ "option": "Industry Insights"
30
+ },
31
+ {
32
+ "option": "Tips & Best Practices"
33
+ }
34
+ ]
35
+ },
36
+ "requiredField": true
37
+ },
38
+ {
39
+ "fieldLabel": "Industry",
40
+ "fieldType": "dropdown",
41
+ "fieldOptions": {
42
+ "values": [
43
+ {
44
+ "option": "Technology/AI"
45
+ },
46
+ {
47
+ "option": "Business/Marketing"
48
+ },
49
+ {
50
+ "option": "Health/Fitness"
51
+ },
52
+ {
53
+ "option": "Finance/Crypto"
54
+ },
55
+ {
56
+ "option": "Education"
57
+ }
58
+ ]
59
+ },
60
+ "requiredField": true
61
+ },
62
+ {
63
+ "fieldLabel": "Target Audience",
64
+ "placeholder": "e.g., Developers, Business owners",
65
+ "requiredField": true
66
+ },
67
+ {
68
+ "fieldLabel": "Brand Name",
69
+ "requiredField": true
70
+ },
71
+ {
72
+ "fieldLabel": "Number of Slides",
73
+ "fieldType": "dropdown",
74
+ "fieldOptions": {
75
+ "values": [
76
+ {
77
+ "option": "3 slides"
78
+ },
79
+ {
80
+ "option": "4 slides"
81
+ },
82
+ {
83
+ "option": "5 slides"
84
+ },
85
+ {
86
+ "option": "6 slides"
87
+ }
88
+ ]
89
+ },
90
+ "requiredField": true
91
+ },
92
+ {
93
+ "fieldLabel": "Design Style",
94
+ "fieldType": "dropdown",
95
+ "fieldOptions": {
96
+ "values": [
97
+ {
98
+ "option": "Modern Minimal"
99
+ },
100
+ {
101
+ "option": "Bold & Vibrant"
102
+ },
103
+ {
104
+ "option": "Professional Corporate"
105
+ },
106
+ {
107
+ "option": "Dark Theme"
108
+ },
109
+ {
110
+ "option": "Creative & Playful"
111
+ }
112
+ ]
113
+ },
114
+ "requiredField": true
115
+ },
116
+ {
117
+ "fieldLabel": "Brand Colors (Optional)",
118
+ "placeholder": "#FF5733, #33A1FF"
119
+ }
120
+ ]
121
+ },
122
+ "options": {}
123
+ },
124
+ "id": "ebd2b036-bbf9-4027-aed1-04a8427f1778",
125
+ "name": "Form Trigger",
126
+ "type": "n8n-nodes-base.formTrigger",
127
+ "typeVersion": 2,
128
+ "position": [
129
+ -420,
130
+ 80
131
+ ],
132
+ "webhookId": "optimized-carousel"
133
+ },
134
+ {
135
+ "parameters": {
136
+ "jsCode": "const formData = $input.first().json;\n\nconst topic = formData['Topic/Subject'] || '';\nconst purpose = formData['Content Purpose'] || 'Educational/Tutorial';\nconst industry = formData['Industry'] || 'Technology/AI';\nconst audience = formData['Target Audience'] || 'General audience';\nconst brand = formData['Brand Name'] || 'Your Brand';\nconst slideCountRaw = formData['Number of Slides'] || '5 slides';\nconst slideCount = parseInt(slideCountRaw.split(' ')[0]) || 5;\nconst designStyle = formData['Design Style'] || 'Modern Minimal';\nconst brandColors = formData['Brand Colors (Optional)'] || '';\n\n// Parse brand colors or set defaults\nlet colorPalette = [];\nif (brandColors) {\n colorPalette = brandColors.split(',').map(c => c.trim());\n} else {\n const defaultColors = {\n 'Technology/AI': ['#667eea', '#764ba2'],\n 'Business/Marketing': ['#4facfe', '#00f2fe'],\n 'Health/Fitness': ['#a8edea', '#fed6e3'],\n 'Finance/Crypto': ['#667eea', '#764ba2'],\n 'Education': ['#ffecd2', '#fcb69f']\n };\n colorPalette = defaultColors[industry] || ['#667eea', '#764ba2'];\n}\n\nconst processedData = {\n topic,\n purpose,\n industry,\n audience,\n brand,\n slideCount,\n designStyle,\n colorPalette,\n timestamp: new Date().toISOString(),\n requestId: `carousel_${Date.now()}`\n};\n\nconsole.log('Form data processed for:', processedData.topic);\n\nreturn [{ json: processedData }];"
137
+ },
138
+ "id": "daa1f11b-4e4b-4d92-bded-f8b2a36ac1c6",
139
+ "name": "Process Form Data",
140
+ "type": "n8n-nodes-base.code",
141
+ "typeVersion": 2,
142
+ "position": [
143
+ -260,
144
+ 80
145
+ ]
146
+ },
147
+ {
148
+ "parameters": {
149
+ "options": {}
150
+ },
151
+ "type": "@n8n/n8n-nodes-langchain.toolSerpApi",
152
+ "typeVersion": 1,
153
+ "position": [
154
+ 40,
155
+ 340
156
+ ],
157
+ "id": "f0ba9a8c-f716-4a80-afdc-6f4268dc9254",
158
+ "name": "SerpAPI Tool",
159
+ "credentials": {
160
+ "serpApi": {
161
+ "id": "RV7uy4j6c8AGccaI",
162
+ "name": "SerpAPI account"
163
+ }
164
+ }
165
+ },
166
+ {
167
+ "parameters": {
168
+ "model": "anthropic/claude-3.5-sonnet",
169
+ "options": {
170
+ "maxTokens": 6000,
171
+ "temperature": 0.4
172
+ }
173
+ },
174
+ "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
175
+ "typeVersion": 1,
176
+ "position": [
177
+ -120,
178
+ 300
179
+ ],
180
+ "id": "795e6a60-f0f7-44a6-b8be-9334ffd2d68e",
181
+ "name": "Master Agent Model",
182
+ "credentials": {
183
+ "openRouterApi": {
184
+ "id": "LX8VcZUBckotLjPE",
185
+ "name": "OpenRouter account"
186
+ }
187
+ }
188
+ },
189
+ {
190
+ "parameters": {
191
+ "schemaType": "manual",
192
+ "inputSchema": "{\n \"type\": \"object\",\n \"properties\": {\n \"researchSummary\": {\"type\": \"string\"},\n \"narrativeArc\": {\"type\": \"string\"},\n \"overallTheme\": {\"type\": \"string\"},\n \"targetTone\": {\"type\": \"string\"},\n \"slides\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"slideNumber\": {\"type\": \"number\"},\n \"learningObjective\": {\"type\": \"string\"},\n \"keyConcept\": {\"type\": \"string\"},\n \"headline\": {\"type\": \"string\"},\n \"subheadline\": {\"type\": \"string\"},\n \"keyPoints\": {\n \"type\": \"array\",\n \"items\": {\"type\": \"string\"}\n },\n \"callToAction\": {\"type\": \"string\"},\n \"narrativeConnection\": {\"type\": \"string\"},\n \"transitionElement\": {\"type\": \"string\"},\n \"visualElements\": {\n \"type\": \"array\",\n \"items\": {\"type\": \"string\"}\n },\n \"designSpecs\": {\n \"type\": \"object\",\n \"properties\": {\n \"layoutType\": {\"type\": \"string\"},\n \"backgroundStyle\": {\"type\": \"string\"},\n \"iconStrategy\": {\"type\": \"string\"},\n \"visualHierarchy\": {\"type\": \"string\"}\n }\n }\n }\n }\n },\n \"consistencyRules\": {\n \"type\": \"array\",\n \"items\": {\"type\": \"string\"}\n },\n \"keyInsights\": {\n \"type\": \"array\",\n \"items\": {\"type\": \"string\"}\n }\n }\n}"
193
+ },
194
+ "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
195
+ "typeVersion": 1.2,
196
+ "position": [
197
+ 180,
198
+ 300
199
+ ],
200
+ "id": "21e64e6c-485e-4738-aa1d-47ffd7d2a8e6",
201
+ "name": "Master Output Parser"
202
+ },
203
+ {
204
+ "parameters": {
205
+ "jsCode": "// Split master output into individual slide contexts\nconst masterOutput = $('Research Content Agent').item.json.output;\nconst originalData = $('Process Form Data').item.json;\n\nif (!masterOutput?.slides) {\n throw new Error('Missing slides data from master agent');\n}\n\nconst slides = masterOutput.slides;\n\n// Create optimized slide contexts with all necessary data\nconst slideContexts = slides.map((slide, index) => {\n const slideNumber = index + 1;\n \n return {\n // Slide identification\n slideNumber,\n totalSlides: slides.length,\n isFirst: slideNumber === 1,\n isLast: slideNumber === slides.length,\n \n // Slide content from master agent\n slide: slide,\n \n // Master context for design agent\n masterContext: {\n researchSummary: masterOutput.researchSummary,\n narrativeArc: masterOutput.narrativeArc,\n overallTheme: masterOutput.overallTheme,\n targetTone: masterOutput.targetTone,\n consistencyRules: masterOutput.consistencyRules,\n keyInsights: masterOutput.keyInsights\n },\n \n // Original form data\n originalData: originalData,\n \n // Processing metadata\n requestId: originalData.requestId,\n timestamp: new Date().toISOString()\n };\n});\n\nconsole.log(`Created ${slideContexts.length} optimized slide contexts`);\n\nreturn slideContexts.map(context => ({ json: context }));"
206
+ },
207
+ "id": "c71eff49-6ee5-487c-ad8c-4af4b7420cbe",
208
+ "name": "Split Slides",
209
+ "type": "n8n-nodes-base.code",
210
+ "typeVersion": 2,
211
+ "position": [
212
+ 340,
213
+ 80
214
+ ]
215
+ },
216
+ {
217
+ "parameters": {
218
+ "options": {}
219
+ },
220
+ "id": "94faf056-d0f6-4277-90a3-f9f9552e9340",
221
+ "name": "Process Slides",
222
+ "type": "n8n-nodes-base.splitInBatches",
223
+ "typeVersion": 3,
224
+ "position": [
225
+ 540,
226
+ 80
227
+ ]
228
+ },
229
+ {
230
+ "parameters": {
231
+ "model": "anthropic/claude-3.5-sonnet",
232
+ "options": {
233
+ "maxTokens": 4000,
234
+ "temperature": 0.5
235
+ }
236
+ },
237
+ "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
238
+ "typeVersion": 1,
239
+ "position": [
240
+ 740,
241
+ 280
242
+ ],
243
+ "id": "eadeacb5-dab5-477c-a4fc-b021e7cd054e",
244
+ "name": "Design Specialist Model",
245
+ "credentials": {
246
+ "openRouterApi": {
247
+ "id": "LX8VcZUBckotLjPE",
248
+ "name": "OpenRouter account"
249
+ }
250
+ }
251
+ },
252
+ {
253
+ "parameters": {
254
+ "promptType": "define",
255
+ "text": "=You are a Visual Design Specialist creating the final design specifications and image prompt for slide {{ $json.slideNumber }}/{{ $json.totalSlides }}.\n\nSLIDE CONTENT:\n{{ JSON.stringify($json.slide) }}\n\nBRAND CONTEXT:\nBrand: {{ $json.originalData.brand }}\nStyle: {{ $json.originalData.designStyle }}\nColors: {{ $json.originalData.colorPalette.join(', ') }}\nIndustry: {{ $json.originalData.industry }}\nAudience: {{ $json.originalData.audience }}\n\nMASTER CONTEXT:\nTheme: {{ $json.masterContext.overallTheme }}\nTone: {{ $json.masterContext.targetTone }}\nNarrative: {{ $json.masterContext.narrativeArc }}\nKey Insights: {{ $json.masterContext.keyInsights.slice(0, 2).join(', ') }}\n\nDESIGN TASK:\nCreate comprehensive design specifications and generate the complete image prompt for {{ $json.originalData.designStyle }} style.\n\nSTYLE GUIDELINES - {{ $json.originalData.designStyle }}:\n{% if $json.originalData.designStyle == 'Modern Minimal' %}\nClean white backgrounds, minimal icons, sans-serif typography, subtle accent colors\n{% elif $json.originalData.designStyle == 'Bold & Vibrant' %}\nBright gradients, bold visuals, dynamic shapes, high contrast colors\n{% elif $json.originalData.designStyle == 'Professional Corporate' %}\nClean professional backgrounds, structured layouts, trust-building elements\n{% elif $json.originalData.designStyle == 'Dark Theme' %}\nDark backgrounds, light text, neon accents, modern tech aesthetic\n{% elif $json.originalData.designStyle == 'Creative & Playful' %}\nFun colorful backgrounds, playful icons, creative layouts, energetic elements\n{% endif %}\n\nSLIDE TYPE:\n{% if $json.isFirst %}\n🚀 COVER SLIDE: Maximum visual impact, scroll-stopping design\n{% elif $json.isLast %}\n🎯 CTA SLIDE: Action-focused, clear next steps\n{% else %}\n📖 CONTENT SLIDE: Information delivery through visuals\n{% endif %}\n\nCREATE:\n1. Enhanced design specifications (refine the basic designSpecs from content)\n2. Complete image prompt for GPT-Image-1 that includes:\n - All slide content (headline, subheadline, key points)\n - Complete design specifications\n - Brand context and style guidelines\n - Mobile optimization requirements\n - Visual storytelling elements\n - Slide type specific focus\n\nFocus on minimal text overlay and maximum visual impact.",
256
+ "hasOutputParser": true,
257
+ "options": {
258
+ "systemMessage": "You are a specialized visual design expert who creates detailed design specifications and comprehensive image prompts. You optimize for Instagram carousel format with minimal text and maximum visual storytelling."
259
+ }
260
+ },
261
+ "type": "@n8n/n8n-nodes-langchain.agent",
262
+ "typeVersion": 1.9,
263
+ "position": [
264
+ 740,
265
+ 80
266
+ ],
267
+ "id": "381c7d77-18e6-4575-8928-eee72e19c7be",
268
+ "name": "Design Specialist Agent"
269
+ },
270
+ {
271
+ "parameters": {
272
+ "schemaType": "manual",
273
+ "inputSchema": "{\n \"type\": \"object\",\n \"properties\": {\n \"finalDesignSpecs\": {\n \"type\": \"object\",\n \"properties\": {\n \"layoutType\": {\"type\": \"string\"},\n \"backgroundStyle\": {\"type\": \"string\"},\n \"iconStrategy\": {\"type\": \"string\"},\n \"textPlacement\": {\"type\": \"string\"},\n \"visualHierarchy\": {\"type\": \"string\"},\n \"brandIntegration\": {\"type\": \"string\"},\n \"mobileOptimization\": {\"type\": \"string\"}\n }\n },\n \"completeImagePrompt\": {\"type\": \"string\"},\n \"designRationale\": {\"type\": \"string\"}\n }\n}"
274
+ },
275
+ "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
276
+ "typeVersion": 1.2,
277
+ "position": [
278
+ 940,
279
+ 280
280
+ ],
281
+ "id": "caba9be7-2c2c-4d2e-ac2a-95d41135d8b9",
282
+ "name": "Design Output Parser"
283
+ },
284
+ {
285
+ "parameters": {
286
+ "jsCode": "// Create final slide package with all data\nconst slideContext = $('Process Slides').item.json;\nconst designOutput = $('Design Specialist Agent').item.json.output;\n\nconst finalSlide = {\n // Slide identification\n slideNumber: slideContext.slideNumber,\n totalSlides: slideContext.totalSlides,\n \n // Content from master agent\n headline: slideContext.slide.headline,\n subheadline: slideContext.slide.subheadline,\n keyPoints: slideContext.slide.keyPoints || [],\n callToAction: slideContext.slide.callToAction || '',\n narrativeConnection: slideContext.slide.narrativeConnection,\n transitionElement: slideContext.slide.transitionElement,\n visualElements: slideContext.slide.visualElements || [],\n \n // Design specifications\n designSpecs: designOutput.finalDesignSpecs,\n designRationale: designOutput.designRationale,\n \n // Brand context\n brand: slideContext.originalData.brand,\n topic: slideContext.originalData.topic,\n designStyle: slideContext.originalData.designStyle,\n colorPalette: slideContext.originalData.colorPalette,\n industry: slideContext.originalData.industry,\n \n // Complete image prompt from design specialist\n imagePrompt: designOutput.completeImagePrompt,\n \n // File naming\n fileName: `${slideContext.originalData.brand.replace(/\\s+/g, '_')}_${slideContext.originalData.topic.replace(/\\s+/g, '_')}_Slide_${slideContext.slideNumber}`,\n \n // Metadata\n requestId: slideContext.requestId,\n timestamp: new Date().toISOString(),\n isFirst: slideContext.isFirst,\n isLast: slideContext.isLast\n};\n\nconsole.log(`Optimized slide ${slideContext.slideNumber} package ready`);\n\nreturn [{ json: finalSlide }];"
287
+ },
288
+ "id": "7d5f9c39-d219-48ce-acb8-2bf3bb5f35dc",
289
+ "name": "Final Slide Package",
290
+ "type": "n8n-nodes-base.code",
291
+ "typeVersion": 2,
292
+ "position": [
293
+ 1140,
294
+ 80
295
+ ]
296
+ },
297
+ {
298
+ "parameters": {
299
+ "method": "POST",
300
+ "url": "https://api.openai.com/v1/images/generations",
301
+ "authentication": "predefinedCredentialType",
302
+ "nodeCredentialType": "openAiApi",
303
+ "sendHeaders": true,
304
+ "headerParameters": {
305
+ "parameters": [
306
+ {
307
+ "name": "Content-Type",
308
+ "value": "application/json"
309
+ }
310
+ ]
311
+ },
312
+ "sendBody": true,
313
+ "bodyParameters": {
314
+ "parameters": [
315
+ {
316
+ "name": "model",
317
+ "value": "gpt-image-1"
318
+ },
319
+ {
320
+ "name": "prompt",
321
+ "value": "={{ $json.imagePrompt }}"
322
+ },
323
+ {
324
+ "name": "size",
325
+ "value": "1024x1024"
326
+ },
327
+ {
328
+ "name": "quality",
329
+ "value": "auto"
330
+ },
331
+ {
332
+ "name": "n",
333
+ "value": 1
334
+ }
335
+ ]
336
+ },
337
+ "options": {
338
+ "timeout": 180000
339
+ }
340
+ },
341
+ "id": "665f05d9-22cc-474e-af39-f17a06d83125",
342
+ "name": "Generate Image (GPT-Image-1)",
343
+ "type": "n8n-nodes-base.httpRequest",
344
+ "typeVersion": 4.2,
345
+ "position": [
346
+ 1340,
347
+ 80
348
+ ],
349
+ "credentials": {
350
+ "openAiApi": {
351
+ "id": "jJ43azhw4WsPfIMK",
352
+ "name": "OpenAi account"
353
+ }
354
+ }
355
+ },
356
+ {
357
+ "parameters": {
358
+ "operation": "toBinary",
359
+ "sourceProperty": "data[0].b64_json",
360
+ "options": {
361
+ "fileName": "={{ $('Final Slide Package').item.json.fileName }}.png"
362
+ }
363
+ },
364
+ "type": "n8n-nodes-base.convertToFile",
365
+ "typeVersion": 1.1,
366
+ "position": [
367
+ 1540,
368
+ 80
369
+ ],
370
+ "id": "3a0ed3a1-196e-4c10-a8a2-2edcb9617d46",
371
+ "name": "Convert to File"
372
+ },
373
+ {
374
+ "parameters": {
375
+ "name": "={{ $('Final Slide Package').item.json.fileName }}.png",
376
+ "driveId": {
377
+ "__rl": true,
378
+ "value": "My Drive",
379
+ "mode": "list"
380
+ },
381
+ "folderId": {
382
+ "__rl": true,
383
+ "value": "1W5eLd9HAPWO_6TuTDW2MPMsQDknGrHoZ",
384
+ "mode": "list",
385
+ "cachedResultName": "Product Images ",
386
+ "cachedResultUrl": "https://drive.google.com/drive/folders/1W5eLd9HAPWO_6TuTDW2MPMsQDknGrHoZ"
387
+ },
388
+ "options": {}
389
+ },
390
+ "id": "5b4591c9-25c5-4b62-8c12-225c9fa22fcd",
391
+ "name": "Save to Drive",
392
+ "type": "n8n-nodes-base.googleDrive",
393
+ "typeVersion": 3,
394
+ "position": [
395
+ 1740,
396
+ 80
397
+ ],
398
+ "credentials": {
399
+ "googleDriveOAuth2Api": {
400
+ "id": "a0H1R45zFS4MeKDk",
401
+ "name": "Google Drive account"
402
+ }
403
+ }
404
+ },
405
+ {
406
+ "parameters": {
407
+ "amount": 8
408
+ },
409
+ "id": "00d23968-8cca-47b2-8307-dbfecff729fa",
410
+ "name": "Rate Limiter",
411
+ "type": "n8n-nodes-base.wait",
412
+ "typeVersion": 1.1,
413
+ "position": [
414
+ 1940,
415
+ 80
416
+ ],
417
+ "webhookId": "rate-limit-optimized"
418
+ },
419
+ {
420
+ "parameters": {
421
+ "promptType": "define",
422
+ "text": "=You are a Master Content & Research Agent that handles research, content architecture, and narrative planning in one comprehensive workflow.\n\nPROJECT BRIEF:\nTopic: {{ $json.topic }}\nPurpose: {{ $json.purpose }}\nIndustry: {{ $json.industry }}\nAudience: {{ $json.audience }}\nBrand: {{ $json.brand }}\nSlides: {{ $json.slideCount }}\nDesign Style: {{ $json.designStyle }}\nColors: {{ $json.colorPalette.join(', ') }}\n\nCOMPREHENSIVE WORKFLOW:\n\n**PHASE 1: RESEARCH (Use SerpAPI)**\nSearch for:\n1. \"{{ $json.topic }}\" latest information 2024 2025\n2. \"{{ $json.topic }}\" {{ $json.industry }} examples best practices\n3. \"{{ $json.audience }}\" {{ $json.topic }} challenges solutions\n4. \"{{ $json.topic }}\" {{ $json.purpose }} successful examples\n\nGather: key concepts, trends, statistics, expert insights, practical examples\n\n**PHASE 2: CONTENT ARCHITECTURE**\nCreate sequential narrative outline:\n- Slide 1: Hook/Introduction (attention-grabbing opener)\n- Slides 2-{{ $json.slideCount - 1 }}: Progressive content (building knowledge step-by-step)\n- Slide {{ $json.slideCount }}: Conclusion/CTA (summary + action)\n\n**PHASE 3: SLIDE-BY-SLIDE GENERATION**\nFor each of the {{ $json.slideCount }} slides, create:\n- slideNumber\n- learningObjective (what user learns)\n- keyConcept (main message)\n- headline (max 4 words)\n- subheadline (max 8 words)\n- keyPoints (2-3 short bullet points)\n- callToAction (if applicable)\n- narrativeConnection (how it connects to previous slides)\n- transitionElement (bridge to next slide)\n- visualElements (suggested icons, graphics)\n- designSpecs (layout, background, visual hierarchy for {{ $json.designStyle }} style)\n\nENSURE NARRATIVE CONSISTENCY:\n- Each slide builds on previous knowledge\n- Consistent terminology throughout\n- Logical progression with smooth transitions\n- No concept introduced without foundation\n\nCONTENT OPTIMIZATION:\n- Minimal text overlay for mobile viewing\n- Visual storytelling approach\n- {{ $json.designStyle }} aesthetic alignment\n- {{ $json.audience }} engagement focus\n\nOutput complete carousel package with research insights, narrative flow, and all slide specifications.",
423
+ "hasOutputParser": true,
424
+ "options": {
425
+ "systemMessage": "You are a comprehensive content creation expert who handles research, architecture, and content generation efficiently. You ensure narrative consistency, visual optimization, and brand alignment while minimizing token usage through integrated processing."
426
+ }
427
+ },
428
+ "type": "@n8n/n8n-nodes-langchain.agent",
429
+ "typeVersion": 1.9,
430
+ "position": [
431
+ -60,
432
+ 80
433
+ ],
434
+ "id": "899cc8cf-6b08-49fa-8942-94a2aca30960",
435
+ "name": "Research Content Agent"
436
+ }
437
+ ],
438
+ "pinData": {},
439
+ "connections": {
440
+ "Form Trigger": {
441
+ "main": [
442
+ [
443
+ {
444
+ "node": "Process Form Data",
445
+ "type": "main",
446
+ "index": 0
447
+ }
448
+ ]
449
+ ]
450
+ },
451
+ "Process Form Data": {
452
+ "main": [
453
+ [
454
+ {
455
+ "node": "Research Content Agent",
456
+ "type": "main",
457
+ "index": 0
458
+ }
459
+ ]
460
+ ]
461
+ },
462
+ "SerpAPI Tool": {
463
+ "ai_tool": [
464
+ [
465
+ {
466
+ "node": "Research Content Agent",
467
+ "type": "ai_tool",
468
+ "index": 0
469
+ }
470
+ ]
471
+ ]
472
+ },
473
+ "Master Agent Model": {
474
+ "ai_languageModel": [
475
+ [
476
+ {
477
+ "node": "Research Content Agent",
478
+ "type": "ai_languageModel",
479
+ "index": 0
480
+ }
481
+ ]
482
+ ]
483
+ },
484
+ "Master Output Parser": {
485
+ "ai_outputParser": [
486
+ [
487
+ {
488
+ "node": "Research Content Agent",
489
+ "type": "ai_outputParser",
490
+ "index": 0
491
+ }
492
+ ]
493
+ ]
494
+ },
495
+ "Split Slides": {
496
+ "main": [
497
+ [
498
+ {
499
+ "node": "Process Slides",
500
+ "type": "main",
501
+ "index": 0
502
+ }
503
+ ]
504
+ ]
505
+ },
506
+ "Process Slides": {
507
+ "main": [
508
+ [],
509
+ [
510
+ {
511
+ "node": "Design Specialist Agent",
512
+ "type": "main",
513
+ "index": 0
514
+ }
515
+ ]
516
+ ]
517
+ },
518
+ "Design Specialist Model": {
519
+ "ai_languageModel": [
520
+ [
521
+ {
522
+ "node": "Design Specialist Agent",
523
+ "type": "ai_languageModel",
524
+ "index": 0
525
+ }
526
+ ]
527
+ ]
528
+ },
529
+ "Design Specialist Agent": {
530
+ "main": [
531
+ [
532
+ {
533
+ "node": "Final Slide Package",
534
+ "type": "main",
535
+ "index": 0
536
+ }
537
+ ]
538
+ ]
539
+ },
540
+ "Design Output Parser": {
541
+ "ai_outputParser": [
542
+ [
543
+ {
544
+ "node": "Design Specialist Agent",
545
+ "type": "ai_outputParser",
546
+ "index": 0
547
+ }
548
+ ]
549
+ ]
550
+ },
551
+ "Final Slide Package": {
552
+ "main": [
553
+ [
554
+ {
555
+ "node": "Generate Image (GPT-Image-1)",
556
+ "type": "main",
557
+ "index": 0
558
+ }
559
+ ]
560
+ ]
561
+ },
562
+ "Generate Image (GPT-Image-1)": {
563
+ "main": [
564
+ [
565
+ {
566
+ "node": "Convert to File",
567
+ "type": "main",
568
+ "index": 0
569
+ }
570
+ ]
571
+ ]
572
+ },
573
+ "Convert to File": {
574
+ "main": [
575
+ [
576
+ {
577
+ "node": "Save to Drive",
578
+ "type": "main",
579
+ "index": 0
580
+ }
581
+ ]
582
+ ]
583
+ },
584
+ "Save to Drive": {
585
+ "main": [
586
+ [
587
+ {
588
+ "node": "Rate Limiter",
589
+ "type": "main",
590
+ "index": 0
591
+ }
592
+ ]
593
+ ]
594
+ },
595
+ "Rate Limiter": {
596
+ "main": [
597
+ [
598
+ {
599
+ "node": "Process Slides",
600
+ "type": "main",
601
+ "index": 0
602
+ }
603
+ ]
604
+ ]
605
+ },
606
+ "Research Content Agent": {
607
+ "main": [
608
+ [
609
+ {
610
+ "node": "Split Slides",
611
+ "type": "main",
612
+ "index": 0
613
+ }
614
+ ]
615
+ ]
616
+ }
617
+ },
618
+ "active": false,
619
+ "settings": {
620
+ "executionOrder": "v1"
621
+ },
622
+ "versionId": "41f5c9f7-2f3f-4aca-aca4-6326c63832e8",
623
+ "meta": {
624
+ "instanceId": "cc8fbc6c0e10ac107523cabe2453f0b9216ff0ef0c1f112312039de381e2f175"
625
+ },
626
+ "id": "LT4PBa1O8GK3hnL5",
627
+ "tags": []
628
+ }