From 0f210404eeadd432ec40aa91095c0404aef38e5c Mon Sep 17 00:00:00 2001 From: nusquama Date: Sun, 15 Mar 2026 12:01:57 +0800 Subject: [PATCH] creation --- ...wsletters_from_youtube_with_langchain_gemini_apify_gmail.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 workflows/Create AI newsletters from YouTube with LangChain, Gemini, Apify & Gmail-14012/create_ai_newsletters_from_youtube_with_langchain_gemini_apify_gmail.json diff --git a/workflows/Create AI newsletters from YouTube with LangChain, Gemini, Apify & Gmail-14012/create_ai_newsletters_from_youtube_with_langchain_gemini_apify_gmail.json b/workflows/Create AI newsletters from YouTube with LangChain, Gemini, Apify & Gmail-14012/create_ai_newsletters_from_youtube_with_langchain_gemini_apify_gmail.json new file mode 100644 index 000000000..16841cd39 --- /dev/null +++ b/workflows/Create AI newsletters from YouTube with LangChain, Gemini, Apify & Gmail-14012/create_ai_newsletters_from_youtube_with_langchain_gemini_apify_gmail.json @@ -0,0 +1 @@ +{"id":"pCBzf4zyJcIsQkth","meta":{"instanceId":"4764540811cbb8d2e1efff249fe019f120efdfc1d1ad5d0e40382bf91ca0b3dc","templateCredsSetupCompleted":true},"name":"Video → Newsletter AI Agent","tags":[],"nodes":[{"id":"3e73c364-46f3-4c9f-8a63-a1f60ee491f9","name":"Structured Output Parser1","type":"@n8n/n8n-nodes-langchain.outputParserStructured","position":[3456,608],"parameters":{"schemaType":"manual","inputSchema":"{\n \"type\": \"object\",\n \"properties\": {\n \"subject\": {\n \"type\": \"string\",\n \"description\": \"the email subject\"\n },\n \"content\": {\n \"type\": \"string\",\n \"description\": \"the newsletter content\"\n }\n },\n \"required\": [\"subject\", \"content\"]\n}"},"typeVersion":1.3},{"id":"ba883af4-bb38-452b-94e8-1970cf1a1ead","name":"Convert Newsletter to HTML (AI)","type":"@n8n/n8n-nodes-langchain.agent","position":[3312,400],"parameters":{"text":"=\nData: {{ $('Aggregate').item.json.output[2].output }}\n","options":{"systemMessage":"=You are an expert newsletter editor and visual designer.\nGenerate email-ready HTML body that maintains a consistent professional layout, while adapting only the text colors according to the provided brand color theme.\n\n🎯 Objectives\n\nRefine clarity, coherence, and tone across all sections.\n\nMaintain a friendly, modern, Gen Z–aligned voice that’s professional yet approachable.\n\nOnly text colors (headings, paragraphs, links, footer text) should dynamically adapt to the provided color theme.\n\nPreserve the original layout, structure, padding, and overall visual hierarchy exactly as provided.\n\nEnsure strong readability, balance, and flow.\n\nKeep total content ≤ 1000 words (hard limit). Avoid filler or redundant text.\n\nEnd every email with a friendly, brand-colored footer.\n\n🎨 Brand Text Color Adaptation Rules\n\nUse the color theme study provided by the workflow, which typically includes:\n\nVariable\tDescription\nprimary_color\tHighlight / heading color\nsecondary_color\tBody and paragraph text color\naccent_color\tLinks and buttons\nbackground_color\tOverall background tone\n\n✅ Important: Only apply these to text elements.\nDo not alter layout properties such as background, borders, padding, or container structure.\n\n🧱 Fixed Layout Template\n\n\n
\n\n
\n \"Company\n
\n\n

\n {{ $('On form submission').item.json['Brand Name'] }} Newsletter ✨\n

\n
\n \n \"Watch\n \n
\n

Hi {{ $json.Name }},

\n \n \n \n

\n © {{ $now.format('yyyy') }} {{ $('On form submission').item.json['Brand Name'] }} | Built with 💚 for our community
\n Stay curious. Stay creative. 🚀\n

\n
\n\n\n🖋 Element Styling (Only Text Color Adapts)\nElement\tStyle\n

\tfont-size:21px; color: {{ $('Aggregate').item.json.output[1].output.primary_color }}; margin-top:28px; margin-bottom:12px; font-weight:600;\n

\tfont-size:18px; color: {{ $('Aggregate').item.json.output[1].output.secondary_color }}; margin-top:22px; margin-bottom:10px; font-weight:500;\n

\tfont-size:16px; margin-bottom:18px; color: {{ $('Aggregate').item.json.output[1].output.secondary_color }};\n