{ "meta": { "instanceId": "408f9fb9940c3cb18ffdef0e0150fe342d6e655c3a9fac21f0f644e8bedabcd9", "templateCredsSetupCompleted": true }, "nodes": [ { "id": "c3a9ba81-3a7e-4afe-be8b-cf482cbb88c2", "name": "Schedule Trigger", "type": "n8n-nodes-base.scheduleTrigger", "position": [ -1040, -540 ], "parameters": { "rule": { "interval": [ { "triggerAtHour": 6 } ] } }, "typeVersion": 1.2 }, { "id": "f63d035c-5a7b-4cf4-8730-5fa7dff6f94b", "name": "Get Subscribers", "type": "n8n-nodes-base.microsoftExcel", "position": [ -860, -540 ], "parameters": { "options": {}, "resource": "worksheet", "workbook": { "__rl": true, "mode": "id", "value": "=" }, "operation": "readRows", "worksheet": { "__rl": true, "mode": "id", "value": "=" } }, "credentials": { "microsoftExcelOAuth2Api": { "id": "56tIUYYVARBe9gfX", "name": "Microsoft Excel account" } }, "typeVersion": 2.1 }, { "id": "e93aa8de-5c68-4a01-ae60-beb141e0a430", "name": "Get Unique Categories", "type": "n8n-nodes-base.set", "position": [ -400, -160 ], "parameters": { "options": {}, "assignments": { "assignments": [ { "id": "fe138128-50d5-469f-8c0b-0af8c873f198", "name": "categories", "type": "array", "value": "={{ $input.all().flatMap(item => item.json.categories).unique() }}" } ] } }, "executeOnce": true, "typeVersion": 3.4 }, { "id": "a874ae4e-d67e-4019-9e5c-03ea677468ae", "name": "OpenAI Chat Model", "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi", "position": [ 760, 80 ], "parameters": { "model": { "__rl": true, "mode": "list", "value": "gpt-4o-mini" }, "options": {} }, "credentials": { "openAiApi": { "id": "8gccIjcuf3gvaoEr", "name": "OpenAi account" } }, "typeVersion": 1.2 }, { "id": "bc9c7578-3b6f-45fb-9f93-94637774d125", "name": "Aggregate", "type": "n8n-nodes-base.aggregate", "position": [ 1180, 40 ], "parameters": { "options": {}, "aggregate": "aggregateAllItemData" }, "typeVersion": 1 }, { "id": "ae83c9e2-a267-463c-a606-b4d101f93f92", "name": "Collect Fields", "type": "n8n-nodes-base.set", "position": [ 980, -60 ], "parameters": { "options": {}, "assignments": { "assignments": [ { "id": "4a266505-4b88-41cf-bf22-f38c705c27e5", "name": "workflow_id", "type": "number", "value": "={{ $('Workflows to Items').item.json.workflow.id }}" }, { "id": "df3348e2-b6ec-4c38-a146-c38be9b830bc", "name": "workflow_name", "type": "string", "value": "={{ $('Workflows to Items').item.json.workflow.name }}" }, { "id": "b4646059-748f-407a-b829-d6605d5ab683", "name": "workflow_desc", "type": "string", "value": "={{ $json.response.text }}" }, { "id": "eac0d9ab-9445-4bc2-9e64-160fe44b9ace", "name": "workflow_created_at", "type": "string", "value": "={{ $('Workflows to Items').item.json.workflow.createdAt }}" }, { "id": "24a3c0cb-224c-4ce6-b59e-38b10ab2c02f", "name": "author_id", "type": "number", "value": "={{ $('Workflows to Items').item.json.workflow.user.id }}" }, { "id": "a2b8a52f-be72-484c-aa86-582b73be1859", "name": "author_name", "type": "string", "value": "={{ $('Workflows to Items').item.json.workflow.user.name }}" }, { "id": "ae735511-8c7c-4bef-b6ac-cfe3d4b87b4f", "name": "author_username", "type": "string", "value": "={{ $('Workflows to Items').item.json.workflow.user.username }}" }, { "id": "2dc1f59f-a854-4322-85df-c5998f782dcd", "name": "category", "type": "string", "value": "={{ $('For Each Category').item.json.category }}" } ] } }, "typeVersion": 3.4 }, { "id": "8ca1ea7e-9098-4e82-919b-ba98ae7d7574", "name": "Categories to Items", "type": "n8n-nodes-base.splitOut", "position": [ -220, -160 ], "parameters": { "options": { "destinationFieldName": "category" }, "fieldToSplitOut": "categories" }, "typeVersion": 1 }, { "id": "eb6d74b8-f1ed-4ab2-8c5f-7e6c6361b055", "name": "For Each Category", "type": "n8n-nodes-base.splitInBatches", "position": [ 320, -160 ], "parameters": { "options": {} }, "typeVersion": 3 }, { "id": "8640ffac-9df6-4154-bcd5-dfa90c3843d4", "name": "Workflows to Items", "type": "n8n-nodes-base.splitOut", "position": [ 500, -60 ], "parameters": { "options": { "destinationFieldName": "workflow" }, "fieldToSplitOut": "workflows" }, "typeVersion": 1 }, { "id": "4456a43b-df26-4bb8-a62d-b9f05eff4479", "name": "Workflow Summarizer", "type": "@n8n/n8n-nodes-langchain.chainLlm", "position": [ 660, -60 ], "parameters": { "text": "=## Description\n```\n{{ $json.workflow.description.replaceAll('#', '') }}\n```", "messages": { "messageValues": [ { "message": "=You have received a description of a n8n template from the official template gallery. Your task is to summarize the description into one or two sentences. The summary should loosely follow the structure of:\n* identify the goal of the template\n* describe the method or approached implemented\n* highlight which important n8n nodes were used\n\neg. \"Obtain real-time crypto market insights using an AI-powered workflow with CoinMarketCap APIs through Telegram\"" } ] }, "promptType": "define" }, "typeVersion": 1.5 }, { "id": "5f4a5921-c954-4523-8925-90401d8dbf22", "name": "Merge", "type": "n8n-nodes-base.merge", "position": [ 660, -460 ], "parameters": { "mode": "chooseBranch" }, "typeVersion": 3.1 }, { "id": "f95fb28c-875c-4105-aa83-9fea257ea440", "name": "Fetch Latest 10 per Category", "type": "n8n-nodes-base.httpRequest", "position": [ -40, -160 ], "parameters": { "url": "=https://n8n.io/api/product-api/workflows/search", "options": {}, "sendQuery": true, "queryParameters": { "parameters": [ { "name": "category", "value": "={{$json.category }}" }, { "name": "rows", "value": "10" }, { "name": "sort", "value": "createdAt:desc" }, { "name": "page", "value": "1" } ] } }, "typeVersion": 4.2 }, { "id": "4dda6cbc-e53f-452d-b257-df9ef18abd75", "name": "No Operation, do nothing", "type": "n8n-nodes-base.noOp", "position": [ 1560, -460 ], "parameters": {}, "typeVersion": 1 }, { "id": "881337d8-3ca8-43d2-931f-9cfec16cc367", "name": "Get Relevant Workflows", "type": "n8n-nodes-base.set", "position": [ 1380, -280 ], "parameters": { "options": {}, "assignments": { "assignments": [ { "id": "fbd0ad94-e5aa-4082-81f5-d7b2e08dfbcf", "name": "workflows", "type": "array", "value": "={{\n$json.categories\n .flatMap(cat =>\n $('Flatten Workflows').first().json.workflows.filter(item => item.category === cat)\n )\n}}" } ] } }, "typeVersion": 3.4 }, { "id": "b3ad0e26-e495-4dae-bfdd-f65961178acc", "name": "Flatten Workflows", "type": "n8n-nodes-base.set", "position": [ 500, -280 ], "parameters": { "options": {}, "assignments": { "assignments": [ { "id": "17a82dd9-3fcf-44d9-b5da-bf89a1f53d59", "name": "workflows", "type": "array", "value": "={{\n$input.all().flatMap(item => item.json.data)\n}}" } ] } }, "executeOnce": true, "typeVersion": 3.4 }, { "id": "05f72731-f8b0-4d8f-ba78-66ef8fbaf059", "name": "Remove Already Seen", "type": "n8n-nodes-base.removeDuplicates", "position": [ 1740, -280 ], "parameters": { "options": {}, "operation": "removeItemsSeenInPreviousExecutions", "dedupeValue": "={{ $('For Each Subscriber').item.json.name.toSnakeCase() }}_{{ $json.workflow_id }}" }, "typeVersion": 2 }, { "id": "3904d2a2-9a95-4e11-883e-b2e88c6a884f", "name": "Workflow to Items", "type": "n8n-nodes-base.splitOut", "position": [ 1560, -280 ], "parameters": { "options": {}, "fieldToSplitOut": "workflows" }, "typeVersion": 1 }, { "id": "d416dee7-df0f-4579-a25f-6baed16453e8", "name": "Combine Workflows", "type": "n8n-nodes-base.aggregate", "position": [ 1920, -280 ], "parameters": { "options": {}, "aggregate": "aggregateAllItemData" }, "typeVersion": 1 }, { "id": "3797dd21-3144-47e8-9359-841b97073001", "name": "Has New Workflows?", "type": "n8n-nodes-base.if", "position": [ 1380, -600 ], "parameters": { "options": {}, "conditions": { "options": { "version": 2, "leftValue": "", "caseSensitive": true, "typeValidation": "strict" }, "combinator": "and", "conditions": [ { "id": "08403b2a-4ae6-4cf5-aa88-cc49441e3c56", "operator": { "type": "array", "operation": "lengthGt", "rightType": "number" }, "leftValue": "={{ $json.data }}", "rightValue": 0 } ] } }, "typeVersion": 2.2 }, { "id": "0cd6ce35-c083-4db6-bc87-9d21e70a3bab", "name": "With User Reference", "type": "n8n-nodes-base.set", "position": [ 2100, -280 ], "parameters": { "options": {}, "assignments": { "assignments": [ { "id": "d69921eb-b518-4614-af63-e67a521ee373", "name": "name", "type": "string", "value": "={{ $('For Each Subscriber').item.json.name }}" }, { "id": "01ee6e0a-9d03-42f6-ad46-68b9df861679", "name": "email", "type": "string", "value": "={{ $('For Each Subscriber').item.json.email }}" }, { "id": "5263e512-1b24-43c8-9033-6547dab2811b", "name": "categories", "type": "array", "value": "={{ $('For Each Subscriber').item.json.categories }}" } ] }, "includeOtherFields": true }, "typeVersion": 3.4 }, { "id": "b3a616c7-615f-49ff-8e6f-530324a98be4", "name": "Generate HTML Template", "type": "n8n-nodes-base.html", "position": [ 1740, -720 ], "parameters": { "html": "
\n by\n \n ${workflow.author_name}\n \n ·\n created on ${DateTime.fromISO(workflow.workflow_created_at).toFormat('DD')}\n
\n${workflow.workflow_desc}
\n