{
  "name": "How to Make Money With n8n by Selling Ready-to-Run Workflow Packs",
  "nodes": [
    {
      "id": "n01",
      "name": "Kit Form",
      "type": "n8n-nodes-base.formTrigger",
      "typeVersion": 2.2,
      "position": [
        0,
        300
      ],
      "parameters": {
        "formTitle": "Workflow Kit Builder",
        "formDescription": "Paste an exported n8n workflow and say who it is for. A local AI model turns it into a ready-to-sell kit.",
        "formFields": {
          "values": [
            {
              "fieldLabel": "Workflow JSON",
              "fieldType": "textarea",
              "placeholder": "Paste the exported workflow JSON here",
              "requiredField": true
            },
            {
              "fieldLabel": "Target buyer",
              "fieldType": "text",
              "placeholder": "e.g. a local bakery owner",
              "requiredField": true
            },
            {
              "fieldLabel": "Kit name",
              "fieldType": "text",
              "placeholder": "e.g. Lead Alert Kit",
              "requiredField": true
            }
          ]
        },
        "options": {
          "path": "workflow-kit-builder",
          "buttonLabel": "Build my kit",
          "appendAttribution": false
        }
      }
    },
    {
      "id": "n02",
      "name": "Parse Workflow JSON",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        240,
        300
      ],
      "parameters": {
        "jsCode": "// Read the pasted workflow export and work out which services a buyer needs\nconst f = $input.first().json;\nconst kitName = String(f['Kit name'] || 'Untitled kit').trim();\nconst buyer = String(f['Target buyer'] || 'a small business owner').trim();\nconst raw = String(f['Workflow JSON'] || '').trim();\n\nlet wf;\ntry {\n  wf = JSON.parse(raw);\n} catch (e) {\n  throw new Error('The workflow JSON could not be parsed: ' + e.message);\n}\nif (Array.isArray(wf)) wf = wf[0];\nif (wf && wf.data && wf.data.nodes) wf = wf.data;\nconst nodes = (wf && wf.nodes) || [];\nif (!nodes.length) throw new Error('No \"nodes\" array found. Paste a full exported n8n workflow.');\n\n// node type -> plain service name (a best guess; unknown types fall back to the type name)\nconst SERVICE_MAP = {\n  httpRequest: 'an external web service (API)',\n  webhook: 'a public URL that can receive data',\n  googleSheets: 'a Google account (Google Sheets)',\n  googleDocs: 'a Google account (Google Docs)',\n  googleDrive: 'a Google account (Google Drive)',\n  gmail: 'a Google account (Gmail)',\n  googleCalendar: 'a Google account (Calendar)',\n  slack: 'a Slack workspace',\n  discord: 'a Discord server or webhook',\n  telegram: 'a Telegram bot',\n  telegramTrigger: 'a Telegram bot',\n  emailSend: 'an email (SMTP) account',\n  emailReadImap: 'an email (IMAP) account',\n  postgres: 'a Postgres database',\n  mySql: 'a MySQL database',\n  mongoDb: 'a MongoDB database',\n  airtable: 'an Airtable account',\n  notion: 'a Notion account',\n  openAi: 'an OpenAI account (paid)',\n  ollama: 'a local Ollama model server',\n  lmChatOllama: 'a local Ollama model server',\n  lmChatOpenAi: 'an OpenAI account (paid)',\n  lmChatAnthropic: 'an Anthropic account (paid)',\n  chainLlm: 'an AI model of your choice',\n  agent: 'an AI model of your choice',\n  rssFeedRead: 'an RSS feed URL',\n  readWriteFile: 'a folder on the n8n server',\n  github: 'a GitHub account',\n  stripe: 'a Stripe account',\n  shopify: 'a Shopify store',\n  wordpress: 'a WordPress site',\n};\nconst NOISE = new Set(['stickyNote', 'noOp', 'set', 'if', 'switch', 'code', 'merge', 'manualTrigger',\n  'scheduleTrigger', 'formTrigger', 'form', 'splitInBatches', 'wait', 'filter', 'aggregate',\n  'splitOut', 'sort', 'limit', 'removeDuplicates', 'respondToWebhook', 'executeWorkflowTrigger', 'executeWorkflow']);\nconst short = t => String(t).split('.').pop();\n\nconst services = new Map();\nconst nodeList = [];\nfor (const n of nodes) {\n  const t = short(n.type || '');\n  if (t === 'stickyNote') continue;\n  nodeList.push({ name: n.name, type: t });\n  let svc = SERVICE_MAP[t];\n  if (!svc && !NOISE.has(t)) svc = 'an account for the \"' + t + '\" node';\n  if (t === 'httpRequest' && n.parameters && typeof n.parameters.url === 'string') {\n    const m = n.parameters.url.match(/^=?(?:\\{\\{.*?\\}\\})?\\s*https?:\\/\\/([^\\/\\s\"']+)/);\n    if (m) svc = 'an external web service (' + m[1] + ')';\n  }\n  if (svc) {\n    const k = svc;\n    if (!services.has(k)) services.set(k, new Set());\n    services.get(k).add(n.name);\n  }\n  // credential hints, without ever reading credential values\n  for (const c of Object.keys(n.credentials || {})) {\n    const label = 'a login for ' + c.replace(/OAuth2Api$|Api$/, '');\n    if (!services.has(label)) services.set(label, new Set());\n    services.get(label).add(n.name);\n  }\n}\nconst checklist = [...services.entries()].map(([svc, used]) => ({\n  service: svc, usedBy: [...used].slice(0, 3).join(', '),\n}));\nconst checklistText = checklist.map(c => '[ ] ' + c.service + ' (used by: ' + c.usedBy + ')').join('\\n')\n  || '[ ] Nothing external: this workflow runs on n8n alone';\n\n// keep the prompt small: names and types only, capped\nconst nodeSummary = nodeList.slice(0, 40).map(n => '- ' + n.name + ' (' + n.type + ')').join('\\n')\n  + (nodeList.length > 40 ? '\\n- ...and ' + (nodeList.length - 40) + ' more nodes' : '');\n\nreturn [{ json: {\n  kitName, buyer,\n  workflowName: wf.name || kitName,\n  nodeCount: nodeList.length,\n  nodeSummary, checklist, checklistText,\n  createdAt: new Date().toISOString().slice(0, 10),\n} }];\n"
      }
    },
    {
      "id": "n03",
      "name": "Write Kit",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "typeVersion": 1.5,
      "position": [
        480,
        300
      ],
      "parameters": {
        "promptType": "define",
        "text": "=You write sales kits for ready-to-run n8n workflows. Write for this buyer: {{ $json.buyer }}\nKit name: {{ $json.kitName }}\nThe workflow has {{ $json.nodeCount }} nodes:\n{{ $json.nodeSummary }}\n\nServices the buyer needs:\n{{ $json.checklistText }}\n\nReply in plain text only (no markdown symbols, no bold) using exactly these three headings on their own lines:\n## DESCRIPTION\nTwo or three plain-English sentences on what the workflow does, no jargon.\n## GETTING STARTED\nFive short numbered steps for a beginner to import it, connect the accounts above and run it once.\n## SALES PAGE\nA short sales page of about 120 words: a headline, who it is for, three benefits, and a call to action."
      }
    },
    {
      "id": "n04",
      "name": "Ollama gemma4 12B",
      "type": "@n8n/n8n-nodes-langchain.lmChatOllama",
      "typeVersion": 1,
      "position": [
        480,
        520
      ],
      "parameters": {
        "model": "gemma4:12b-it-qat",
        "options": {
          "temperature": 0.4,
          "numCtx": 8192,
          "think": false
        }
      }
    },
    {
      "id": "n05",
      "name": "Assemble Kit",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        720,
        300
      ],
      "parameters": {
        "jsCode": "// Split the model answer into three sections, with a fallback if headings are missing\nconst p = $('Parse Workflow JSON').first().json;\nlet text = String($input.first().json.text || '').replace(/\\*\\*/g, '').replace(/^#+\\s*/gm, '## ').trim();\n\nconst grab = (re) => {\n  const m = text.match(re);\n  return m ? m[1].trim() : '';\n};\nconst heading = '^## *';\nlet description = grab(new RegExp(heading + 'DESCRIPTION[^\\\\n]*\\\\n([\\\\s\\\\S]*?)(?=^## |$(?![\\\\s\\\\S]))', 'im'));\nlet gettingStarted = grab(new RegExp(heading + 'GETTING STARTED[^\\\\n]*\\\\n([\\\\s\\\\S]*?)(?=^## |$(?![\\\\s\\\\S]))', 'im'));\nlet salesPage = grab(new RegExp(heading + 'SALES PAGE[^\\\\n]*\\\\n([\\\\s\\\\S]*?)(?=^## |$(?![\\\\s\\\\S]))', 'im'));\n\nlet usedFallback = false;\nif (!description || !gettingStarted || !salesPage) {\n  // fallback: split on blank-line paragraphs and fill whatever is missing\n  usedFallback = true;\n  const parts = text.replace(/^## .*$/gm, '').split(/\\n\\s*\\n/).map(s => s.trim()).filter(Boolean);\n  description = description || parts[0] || text;\n  gettingStarted = gettingStarted || parts[1] || 'Import the workflow into n8n, connect the accounts in the checklist, then run it once with test data.';\n  salesPage = salesPage || parts.slice(2).join('\\n\\n') || description;\n}\n\nconst docLink = ''; // filled in after the copy\nreturn [{ json: {\n  kitName: p.kitName, buyer: p.buyer, nodeCount: p.nodeCount, createdAt: p.createdAt,\n  description, gettingStarted, salesPage,\n  checklistText: p.checklistText, usedFallback,\n} }];\n"
      }
    },
    {
      "id": "n06",
      "name": "Copy Template",
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        960,
        300
      ],
      "parameters": {
        "resource": "file",
        "operation": "copy",
        "fileId": {
          "__rl": true,
          "mode": "id",
          "value": "YOUR_TEMPLATE_DOC_ID"
        },
        "name": "={{ $json.kitName }} - Kit",
        "options": {}
      }
    },
    {
      "id": "n07",
      "name": "Fill Template",
      "type": "n8n-nodes-base.googleDocs",
      "typeVersion": 2,
      "position": [
        1200,
        300
      ],
      "parameters": {
        "resource": "document",
        "operation": "update",
        "documentURL": "={{ $json.id }}",
        "actionsUi": {
          "actionFields": [
            {
              "action": "replaceAll",
              "text": "{{kit_name}}",
              "replaceText": "={{ $('Assemble Kit').first().json.kitName }}"
            },
            {
              "action": "replaceAll",
              "text": "{{description}}",
              "replaceText": "={{ $('Assemble Kit').first().json.description }}"
            },
            {
              "action": "replaceAll",
              "text": "{{getting_started}}",
              "replaceText": "={{ $('Assemble Kit').first().json.gettingStarted }}"
            },
            {
              "action": "replaceAll",
              "text": "{{sales_page}}",
              "replaceText": "={{ $('Assemble Kit').first().json.salesPage }}"
            },
            {
              "action": "replaceAll",
              "text": "{{checklist}}",
              "replaceText": "={{ $('Assemble Kit').first().json.checklistText }}"
            }
          ]
        }
      }
    },
    {
      "id": "n08",
      "name": "Add Doc Link",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        1440,
        300
      ],
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "s1",
              "name": "docLink",
              "type": "string",
              "value": "=https://docs.google.com/document/d/{{ $('Copy Template').first().json.id }}/edit"
            }
          ]
        },
        "includeOtherFields": true,
        "options": {}
      }
    },
    {
      "id": "n09",
      "name": "Log to Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        1680,
        300
      ],
      "parameters": {
        "resource": "sheet",
        "operation": "append",
        "documentId": {
          "__rl": true,
          "mode": "id",
          "value": "YOUR_GOOGLE_SHEET_ID"
        },
        "sheetName": {
          "__rl": true,
          "mode": "name",
          "value": "Sheet1"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "kit_name": "={{ $('Assemble Kit').first().json.kitName }}",
            "buyer": "={{ $('Assemble Kit').first().json.buyer }}",
            "doc_link": "={{ $json.docLink }}",
            "date": "={{ $('Assemble Kit').first().json.createdAt }}",
            "node_count": "={{ $('Assemble Kit').first().json.nodeCount }}"
          },
          "matchingColumns": [],
          "schema": [
            {
              "id": "kit_name",
              "displayName": "kit_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "buyer",
              "displayName": "buyer",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "doc_link",
              "displayName": "doc_link",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "date",
              "displayName": "date",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "node_count",
              "displayName": "node_count",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            }
          ]
        },
        "options": {}
      }
    },
    {
      "id": "n10",
      "name": "Save to Data Table",
      "type": "n8n-nodes-base.dataTable",
      "typeVersion": 1.1,
      "position": [
        1920,
        300
      ],
      "parameters": {
        "resource": "row",
        "operation": "insert",
        "dataTableId": {
          "__rl": true,
          "mode": "id",
          "value": "YOUR_DATA_TABLE_ID",
          "cachedResultName": "kits"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "value": {
            "kit_name": "={{ $('Assemble Kit').first().json.kitName }}",
            "buyer": "={{ $('Assemble Kit').first().json.buyer }}",
            "doc_link": "={{ $('Add Doc Link').first().json.docLink }}",
            "created_at": "={{ $('Assemble Kit').first().json.createdAt }}",
            "node_count": "={{ $('Assemble Kit').first().json.nodeCount }}"
          },
          "schema": [
            {
              "id": "kit_name",
              "displayName": "kit_name",
              "type": "string",
              "display": true,
              "required": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "buyer",
              "displayName": "buyer",
              "type": "string",
              "display": true,
              "required": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "doc_link",
              "displayName": "doc_link",
              "type": "string",
              "display": true,
              "required": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "created_at",
              "displayName": "created_at",
              "type": "string",
              "display": true,
              "required": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "node_count",
              "displayName": "node_count",
              "type": "number",
              "display": true,
              "required": false,
              "canBeUsedToMatch": true
            }
          ]
        }
      }
    },
    {
      "id": "n11",
      "name": "Show Kit Result",
      "type": "n8n-nodes-base.form",
      "typeVersion": 2.5,
      "position": [
        2160,
        300
      ],
      "parameters": {
        "operation": "completion",
        "respondWith": "showText",
        "responseText": "=<h2>Your kit is ready: {{ $('Assemble Kit').first().json.kitName }}</h2><p><a href=\"{{ $('Add Doc Link').first().json.docLink }}\">Open the kit document</a></p><h3>What the buyer needs</h3><pre>{{ $('Assemble Kit').first().json.checklistText }}</pre>"
      }
    },
    {
      "id": "st1",
      "name": "Note 1",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -40,
        120
      ],
      "parameters": {
        "content": "## 1. Collect\nForm with JSON, buyer and kit name",
        "width": 200,
        "height": 560,
        "color": 4
      }
    },
    {
      "id": "st2",
      "name": "Note 2",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        200,
        120
      ],
      "parameters": {
        "content": "## 2. Analyse and write\nCode lists services, local Ollama writes the kit",
        "width": 500,
        "height": 560,
        "color": 6
      }
    },
    {
      "id": "st3",
      "name": "Note 3",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        680,
        120
      ],
      "parameters": {
        "content": "## 3. Build the doc\nSplit sections, copy template, fill placeholders",
        "width": 760,
        "height": 560,
        "color": 5
      }
    },
    {
      "id": "st4",
      "name": "Note 4",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        1640,
        120
      ],
      "parameters": {
        "content": "## 4. Log and reply\nSheet row, data table row, form result",
        "width": 700,
        "height": 560,
        "color": 3
      }
    }
  ],
  "connections": {
    "Kit Form": {
      "main": [
        [
          {
            "node": "Parse Workflow JSON",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Workflow JSON": {
      "main": [
        [
          {
            "node": "Write Kit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Write Kit": {
      "main": [
        [
          {
            "node": "Assemble Kit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Assemble Kit": {
      "main": [
        [
          {
            "node": "Copy Template",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Copy Template": {
      "main": [
        [
          {
            "node": "Fill Template",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fill Template": {
      "main": [
        [
          {
            "node": "Add Doc Link",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add Doc Link": {
      "main": [
        [
          {
            "node": "Log to Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log to Google Sheets": {
      "main": [
        [
          {
            "node": "Save to Data Table",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save to Data Table": {
      "main": [
        [
          {
            "node": "Show Kit Result",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Ollama gemma4 12B": {
      "ai_languageModel": [
        [
          {
            "node": "Write Kit",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1",
    "availableInMCP": true
  }
}