Skip to main content

Generate SWOT analysis reports with OpenAI, Google Sheets & APITemplate PDF Export

Workflow preview

Workflow preview
100%
Generate SWOT analysis reports with OpenAI, Google Sheets & APITemplate PDF Export preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

SWOT Analysis Generator That Produces PDF Reports In n8n Want to skip the manual work and instantly generate SWOT analyses for your business plans, investor decks, or strategy docs? This workflo...

Best for

  • Market Research automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.googlesheets, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.outputparserstructured, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.lmchatdeepseek, n8n-nodes-base.merge, n8n-nodes-base.limit

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Sebastian/OptiLever.

Original n8n.io source

1.1 Workflow description

Title
Generate SWOT analysis reports with OpenAI, Google Sheets & APITemplate PDF Export
Workflow name
Generate SWOT analysis reports with OpenAI, Google Sheets & APITemplate PDF Export

SWOT Analysis Generator That Produces PDF Reports In n8n

Want to skip the manual work and instantly generate SWOT analyses for your business plans, investor decks, or strategy docs? 🚀 This workflow lets you automate the entire SWOT (Strengths, Weaknesses, Opportunities, Threats) process—using AI and no-code tools! Whether you're using this for yourself or creating documents for clients, this workflow will save you hours of time and help identify the key components of growing any business.

Tools We’ll Be Using:
  • OpenAI API: Powers AI-driven extraction and generation of SWOT sections, introductions, conclusions, and more.
  • n8n: The no-code automation platform that orchestrates this workflow.
  • Google Sheets: Stores your company data and report outputs (download the provided "SWOT Analysis" template and fill it out).
  • APITemplate.io: Converts HTML reports into downloadable, multi-page PDFs.
  • DeepSeek API (optional): An alternative to OpenAI for specific reasoning tasks.
  • Gmail OAuth2: Sends the final report via email.

If you’re building a business, doing client work, or just want faster strategic planning—this will save you HOURS.


How It Works

This n8n workflow transforms structured company data from a Google Sheet into a fully formatted, investor-grade SWOT report in both HTML and PDF formats. Here’s the process in a few high-level steps:

  1. Load Data: Pulls company information from the "Company Info Input" tab in the "SWOT Analysis" Google Sheet.
  2. AI Analysis: Uses AI (via OpenAI or DeepSeek) to categorize data into Strengths, Weaknesses, Opportunities, and Threats, and generates detailed narrative sections for each.
  3. Create Report Sections: Produces a strategic introduction, conclusion, table of contents, and title page using AI.
  4. Format and Combine: Converts all sections into styled HTML and merges them into a single document.
  5. Generate PDF: Converts the HTML into a polished, multi-page PDF using APITemplate.io.
  6. Save and Share: Saves the report back to Google Sheets and emails the PDF to a specified recipient.

The result is a professional, investor-ready SWOT report with minimal manual effort, ready for sharing or review.


Setup Steps

Setting up this workflow typically takes 15-30 minutes, depending on your familiarity with the tools. Here’s what you’ll need to do:

  • Configure Credentials: Set up API keys and OAuth2 credentials for Google Sheets, OpenAI, APITemplate.io, Gmail, and optionally DeepSeek.
  • Prepare Your Google Sheet: Download the provided "SWOT Analysis" template, fill out the "Company Info Input" tab with your company data, and ensure it’s accessible.
  • Import the Workflow: Copy the workflow JSON into your n8n instance and connect your credentials.

Detailed instructions for each step, including credential setup and customization options, are available in the sticky notes within the workflow. Refer to these for step-by-step guidance.


Benefits

  • Efficiency: Automates the entire SWOT report generation process, saving hours of manual work.
  • Professional Output: Delivers fully styled HTML and PDF reports with headings, paragraphs, and custom layouts.
  • AI-Driven Insights: Ensures clarity and relevance in every section through targeted AI analysis.
  • Seamless Sharing: Automatically saves reports to Google Sheets and emails them to stakeholders.

This workflow is perfect for entrepreneurs, consultants, or strategists looking to streamline their SWOT analysis process and deliver high-quality, professional reports effortlessly.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When clicking ‘Test workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Google Sheets

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 3 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.8

Block 4 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 5 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 6 - Strengths Analysis

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.8

Block 7 - Weaknesses Analysis

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.8

Block 8 - Opportunities Analysis

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.8

Block 9 - Threats Analysis

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.8

Block 10 - OpenAI 4.1-nano

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 11 - DeepSeek Reasoner

Type / Role
@n8n/n8n-nodes-langchain.lmChatDeepSeek - lmChatDeepSeek
Config choices
Version 1

Block 12 - Strengths Section Formatting

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.8

Block 13 - Weaknesses Section Formatting

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.8

Block 14 - Opportunities Section Formatting

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.8

Block 15 - Threats Section Formatting

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.8

Block 16 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.1

Block 17 - Write The Introduction

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.8

Block 18 - Limit

Type / Role
n8n-nodes-base.limit - limit
Config choices
Version 1

Block 19 - Combine Content

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 20 - Download PDF

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 21 - Send Report

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 22 - Table of Contents

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.8

Block 23 - Send ToC

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 24 - OpenAI Chat Model2

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Showing the first 24 of 40 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Generate SWOT analysis reports with OpenAI, Google Sheets & APITemplate PDF Export
Complexity advanced
Nodes 40
Categories Market Research, Multimodal AI
Author Sebastian/OptiLever
Published 03 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/5622/5622.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate SWOT analysis reports with OpenAI, Google Sheets & APITemplate PDF Export do?

SWOT Analysis Generator That Produces PDF Reports In n8n Want to skip the manual work and instantly generate SWOT analyses for your business plans, investor decks, or strategy docs? This workflo...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research, Multimodal AI use case.