{
  "name": "Generate SWOT analysis reports with OpenAI, Google Sheets & APITemplate PDF Export",
  "nodes": [
    {
      "id": "aa51bba9-bf2b-4566-a1af-352e75661ecd",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        1080,
        860
      ]
    },
    {
      "id": "c3d74eee-3257-4e3d-a51b-fab1ebd67feb",
      "name": "Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1300,
        860
      ]
    },
    {
      "id": "a977708a-036f-4826-8790-8325ad8cae31",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1520,
        860
      ]
    },
    {
      "id": "73ce5d23-a2a4-4aa8-86d9-93080461080d",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1700,
        1080
      ]
    },
    {
      "id": "14a91c36-ebad-443a-9dcd-0e398f94e0f7",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1540,
        1080
      ]
    },
    {
      "id": "915ef61b-61dd-4bcc-94cc-e1291a918a24",
      "name": "Strengths Analysis",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1900,
        560
      ]
    },
    {
      "id": "03832276-84e9-4452-9fa0-385ce186ade0",
      "name": "Weaknesses Analysis",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1900,
        780
      ]
    },
    {
      "id": "1fd46f91-2eac-4f08-8d66-8398d2aef814",
      "name": "Opportunities Analysis",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1900,
        1000
      ]
    },
    {
      "id": "af460882-1f89-485f-bd6d-0b1e0e72853b",
      "name": "Threats Analysis",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1900,
        1220
      ]
    },
    {
      "id": "98738416-84e7-45d4-9e81-6a9d7d602e67",
      "name": "OpenAI 4.1-nano",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2300,
        1440
      ]
    },
    {
      "id": "865af11a-de97-4980-936a-fc63404c31a6",
      "name": "DeepSeek Reasoner",
      "type": "@n8n/n8n-nodes-langchain.lmChatDeepSeek",
      "position": [
        1900,
        1460
      ]
    },
    {
      "id": "b60b84d5-cd30-417a-bbb9-585f516c449e",
      "name": "Strengths Section Formatting",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2260,
        560
      ]
    },
    {
      "id": "6e1f6315-d02a-4f42-b903-6298dab196ad",
      "name": "Weaknesses Section Formatting",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2260,
        780
      ]
    },
    {
      "id": "282140a4-ca68-4b96-8a07-222598134ea6",
      "name": "Opportunities Section Formatting",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2260,
        1000
      ]
    },
    {
      "id": "3f1de130-735e-465f-8372-e62ee276460d",
      "name": "Threats Section Formatting",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2260,
        1220
      ]
    },
    {
      "id": "e3a0d391-486d-4477-a11f-f3717486659c",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        2900,
        860
      ]
    },
    {
      "id": "4886c54e-3167-49bb-a23d-b7c6596454bd",
      "name": "Write The Introduction",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        3660,
        560
      ]
    },
    {
      "id": "411d0cd1-8e18-4843-bb68-a7a030018f68",
      "name": "Limit",
      "type": "n8n-nodes-base.limit",
      "position": [
        3200,
        880
      ]
    },
    {
      "id": "97940071-04a2-4473-85f1-e61d6aafb89f",
      "name": "Combine Content",
      "type": "n8n-nodes-base.code",
      "position": [
        3660,
        1360
      ]
    },
    {
      "id": "68ac6c85-2d7b-4179-b251-dbc6e660e355",
      "name": "Download PDF",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        4040,
        1360
      ]
    },
    {
      "id": "6e5e68ad-efd0-44fb-9975-eef0a95a922d",
      "name": "Send Report",
      "type": "n8n-nodes-base.gmail",
      "position": [
        4440,
        880
      ]
    },
    {
      "id": "46fc8aea-944a-42ef-8b60-d3a6cc133a6c",
      "name": "Table of Contents",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        3660,
        960
      ]
    },
    {
      "id": "5edd9ff7-cab5-41a4-8e54-04df6c67ddeb",
      "name": "Send ToC",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        4040,
        960
      ]
    },
    {
      "id": "5942eb86-711a-4e8c-adbc-f8c3a2829745",
      "name": "OpenAI Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        3060,
        1220
      ]
    },
    {
      "id": "00104c24-0db4-47c2-bb55-e287197765b5",
      "name": "Upload Strengths",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2620,
        560
      ]
    },
    {
      "id": "238c2778-03bd-4635-97ed-f467d73dd9ba",
      "name": "Upload Weaknesses",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2620,
        780
      ]
    },
    {
      "id": "4aa704e9-7fd4-40e1-9975-c934b3ba0eee",
      "name": "Upload Opportunities",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2620,
        1000
      ]
    },
    {
      "id": "5ac5c74d-b538-4326-8f03-e6f8f52fc3af",
      "name": "Upload Threats",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2620,
        1220
      ]
    },
    {
      "id": "606fa187-7721-483d-9bb9-aceaef635ecb",
      "name": "Upload Introduction",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        4040,
        560
      ]
    },
    {
      "id": "24ea6ac1-a0fe-4e6f-b952-0bc0113c98bb",
      "name": "Pull Info Again",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        3440,
        560
      ]
    },
    {
      "id": "4e23850a-0c68-47d5-8abf-3e73eaeb72fb",
      "name": "Pull Info Again1",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        3440,
        760
      ]
    },
    {
      "id": "b35a3098-ac89-4a6c-a8c1-500344a2f2ab",
      "name": "Write The Conclusion",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        3660,
        760
      ]
    },
    {
      "id": "109b3c56-5635-4e17-824c-2743483b24dc",
      "name": "Pull Info Again2",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        3440,
        960
      ]
    },
    {
      "id": "c41f997b-13eb-4634-a1d4-f5036a29655b",
      "name": "Upload Conclusion",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        4040,
        760
      ]
    },
    {
      "id": "a9c537f8-7305-41e5-b624-1e440a51ae6c",
      "name": "Generate PDF",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3860,
        1360
      ]
    },
    {
      "id": "e5d3e7d8-7cf6-448f-b3f7-cd032e122ccd",
      "name": "Pull Info Again3",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        3440,
        1360
      ]
    },
    {
      "id": "695600b4-a9d8-4f17-b157-edba4e516948",
      "name": "Title Page",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        3660,
        1160
      ]
    },
    {
      "id": "b8ae68a9-3097-40da-871f-765dbac3f107",
      "name": "Send ToC1",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        4040,
        1160
      ]
    },
    {
      "id": "dfa295a8-57d0-48bb-bf33-1dd213490489",
      "name": "GetName",
      "type": "n8n-nodes-base.set",
      "position": [
        3440,
        1160
      ]
    },
    {
      "id": "1e79e1bd-90cb-4f23-927b-c09b8de6f495",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -60,
        460
      ],
      "parameters": {
        "width": 1060,
        "height": 1000,
        "content": "# ⚙️ Setup Guide\n\n### 🧑‍💻 Author: [Sebastian/OptiLever](https://www.linkedin.com/in/sebastian-9ab9b9242/)\n\n\n\n### Prerequisites:\n\n- **OpenAI API**: Powers AI-driven extraction and generation of SWOT se"
      }
    }
  ],
  "connections": {
    "Limit": {
      "main": [
        [
          {
            "node": "Pull Info Again",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GetName": {
      "main": [
        [
          {
            "node": "Title Page",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Strengths Analysis",
            "type": "main",
            "index": 0
          },
          {
            "node": "Weaknesses Analysis",
            "type": "main",
            "index": 0
          },
          {
            "node": "Opportunities Analysis",
            "type": "main",
            "index": 0
          },
          {
            "node": "Threats Analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send ToC": {
      "main": [
        [
          {
            "node": "GetName",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send ToC1": {
      "main": [
        [
          {
            "node": "Pull Info Again3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Title Page": {
      "main": [
        [
          {
            "node": "Send ToC1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download PDF": {
      "main": [
        [
          {
            "node": "Send Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate PDF": {
      "main": [
        [
          {
            "node": "Download PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Threats": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 3
          }
        ]
      ]
    },
    "Combine Content": {
      "main": [
        [
          {
            "node": "Generate PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI 4.1-nano": {
      "ai_languageModel": [
        [
          {
            "node": "Threats Section Formatting",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Opportunities Section Formatting",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Weaknesses Section Formatting",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Strengths Section Formatting",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Pull Info Again": {
      "main": [
        [
          {
            "node": "Write The Introduction",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pull Info Again1": {
      "main": [
        [
          {
            "node": "Write The Conclusion",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pull Info Again2": {
      "main": [
        [
          {
            "node": "Table of Contents",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pull Info Again3": {
      "main": [
        [
          {
            "node": "Combine Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Threats Analysis": {
      "main": [
        [
          {
            "node": "Threats Section Formatting",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Strengths": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "DeepSeek Reasoner": {
      "ai_languageModel": [
        [
          {
            "node": "Strengths Analysis",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Threats Analysis",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Opportunities Analysis",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Weaknesses Analysis",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Table of Contents": {
      "main": [
        [
          {
            "node": "Send ToC",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Conclusion": {
      "main": [
        [
          {
            "node": "Pull Info Again2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Weaknesses": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "OpenAI Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Table of Contents",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Write The Introduction",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Write The Conclusion",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Title Page",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Strengths Analysis": {
      "main": [
        [
          {
            "node": "Strengths Section Formatting",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Introduction": {
      "main": [
        [
          {
            "node": "Pull Info Again1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Weaknesses Analysis": {
      "main": [
        [
          {
            "node": "Weaknesses Section Formatting",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Opportunities": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Write The Conclusion": {
      "main": [
        [
          {
            "node": "Upload Conclusion",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Opportunities Analysis": {
      "main": [
        [
          {
            "node": "Opportunities Section Formatting",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Write The Introduction": {
      "main": [
        [
          {
            "node": "Upload Introduction",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Threats Section Formatting": {
      "main": [
        [
          {
            "node": "Upload Threats",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Strengths Section Formatting": {
      "main": [
        [
          {
            "node": "Upload Strengths",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Weaknesses Section Formatting": {
      "main": [
        [
          {
            "node": "Upload Weaknesses",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Opportunities Section Formatting": {
      "main": [
        [
          {
            "node": "Upload Opportunities",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}