{
  "id": "FLoOm4EI0lWWNsqc",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Chat-Based Virtual BoD for Solopreneurs (Fixed)",
  "tags": [],
  "nodes": [
    {
      "id": "42d3356a-9029-40f8-8e47-e18e6a00b832",
      "name": "Chat Trigger",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        704,
        1008
      ],
      "parameters": {
        "options": {
          "allowFileUploads": false
        }
      },
      "typeVersion": 1
    },
    {
      "id": "95521006-87cf-499b-9450-f250355d2c23",
      "name": "Prompt Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        976,
        1008
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "output-rules",
              "name": "output_rules",
              "type": "string",
              "value": "Respond strictly in character. Be concise and structured. ALWAYS use this exact output schema:\n- RATING: [From 1 to 10]\n- PROS (Max 2 points): ...\n- CONS (Max 2 points): ...\n- KEY ACTION: [What to do tomorrow]"
            },
            {
              "id": "idea",
              "name": "idea",
              "type": "string",
              "value": "={{ $json.chatInput }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "81b629a7-f0f4-4ed0-9a52-d3985c8ffb09",
      "name": "CMO (Marketing)",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1504,
        384
      ],
      "parameters": {
        "text": "=You are the CMO. Your focus is growth, marketing, brand positioning, and customer acquisition.\n\nAnalyze this business idea:\n{{ $json.idea }}\n\n{{ $json.output_rules }}",
        "options": {},
        "promptType": "define"
      },
      "typeVersion": 1.7
    },
    {
      "id": "f3a6eeff-eca1-4f46-bdca-e63f7897ef19",
      "name": "CFO (Finance)",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1504,
        768
      ],
      "parameters": {
        "text": "=You are the CFO. You are analytical and focused on margins, cash flow, costs, and financial sustainability.\n\nAnalyze this business idea:\n{{ $json.idea }}\n\n{{ $json.output_rules }}",
        "options": {},
        "promptType": "define"
      },
      "typeVersion": 1.7
    },
    {
      "id": "fb9ba3a6-0cae-4ee1-92ab-896000c9200b",
      "name": "COO (Operations)",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1504,
        1472
      ],
      "parameters": {
        "text": "=You are the COO. You are pragmatic and focused on operations, efficiency, scale, and preventing founder burnout.\n\nAnalyze this business idea:\n{{ $json.idea }}\n\n{{ $json.output_rules }}",
        "options": {},
        "promptType": "define"
      },
      "typeVersion": 1.7
    },
    {
      "id": "e1902ab0-409e-45fc-888b-54142d86600c",
      "name": "CPO (Product)",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1504,
        1136
      ],
      "parameters": {
        "text": "=You are the CPO. You protect the product's core value, quality, and user experience (UX).\n\nAnalyze this business idea:\n{{ $json.idea }}\n\n{{ $json.output_rules }}",
        "options": {},
        "promptType": "define"
      },
      "typeVersion": 1.7
    },
    {
      "id": "c5835c16-6ccd-46be-bbc6-2e34cc7770da",
      "name": "CLO (Legal)",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1504,
        1840
      ],
      "parameters": {
        "text": "=You are the CLO. You are cautious and focus on risk mitigation, legal compliance (GDPR, privacy), and contract terms.\n\nAnalyze this business idea:\n{{ $json.idea }}\n\n{{ $json.output_rules }}",
        "options": {},
        "promptType": "define"
      },
      "typeVersion": 1.7
    },
    {
      "id": "1e6b67db-c94c-40da-86de-c2486173b2f3",
      "name": "Format Aggregated Text",
      "type": "n8n-nodes-base.code",
      "position": [
        2368,
        1040
      ],
      "parameters": {
        "jsCode": "const items = $input.all();\nconst roles = ['CMO (Marketing)', 'CFO (Finance)', 'COO (Operations)', 'CPO (Product)', 'CLO (Legal)'];\nconst opinions = items.map((item, i) => {\n  const role = roles[i] || `Director ${i+1}`;\n  const output = item.json.output || '';\n  return `## ${role}\\n\\n${output}`;\n});\nreturn [{ json: { bod_opinions: opinions.join('\\n\\n---\\n\\n') } }];"
      },
      "typeVersion": 2
    },
    {
      "id": "511c088c-a800-4efa-b4e4-ccfcd0bc1899",
      "name": "Chairman (CEO)",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2736,
        1040
      ],
      "parameters": {
        "text": "=You are the Chairman and CEO of the Board. Analyze the directors' opinions below, mediate any strategic conflicts, and issue the final Board Meeting Minutes in Markdown format.\n\nBe sure to:\n1. Synthesize the overall rating across all directors\n2. Highlight the top 3 strategic priorities\n3. Flag the top 2 risks to address immediately\n4. Issue a clear BOARD VERDICT: GO / NO-GO / PIVOT with a one-sentence rationale\n\n---\n{{ $json.bod_opinions }}",
        "options": {},
        "promptType": "define"
      },
      "typeVersion": 1.7
    },
    {
      "id": "380a2796-c077-4b3b-8b4d-6d75d3bc2428",
      "name": "Memory (Chairman)",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        2912,
        1232
      ],
      "parameters": {
        "sessionKey": "={{ $('Chat Trigger').item.json.sessionId }}",
        "sessionIdType": "customKey",
        "contextWindowLength": 10
      },
      "typeVersion": 1.2
    },
    {
      "id": "032b0d8f-f220-44fe-9785-06613e62f11b",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        2176,
        992
      ],
      "parameters": {
        "numberInputs": 5
      },
      "typeVersion": 3.2
    },
    {
      "id": "a2eab1ec-9665-4691-a0c5-cf2c872be09e",
      "name": "Sticky Note - Documentation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "color": 6,
        "width": 1200,
        "height": 690,
        "content": "## Chat-Based Virtual BoD for Solopreneurs\n\n### What this workflow does\nThis workflow acts as an AI-powered Virtual Board of Directors for single founders and solopreneurs. It accepts a raw business idea via a chat interface and instantly distributes it across 5 specialized executive AI agents in parallel (CMO, CFO, CPO, COO, and CLO). Each agent evaluates the concept strictly through their corporate domain lens. The responses are merged, structured, and pushed to a Chairman AI node, which mediates conflicting feedback and delivers comprehensive, formatted Board Meeting Minutes containing an official project verdict.\n\n---\n\n### Setup Instructions\n\n**1. Credentials**\nYou need to assign working API credentials for your Language Models:\n* **Anthropic API**: Provide your credentials to the Anthropic Chat Model nodes linked to all executives and the Chairman.\n\n**2. Configuration**\n* **Chat Trigger**: Use this inside an n8n chat window interfaces to text-chat back and forth with your virtual board.\n* **Prompt Configuration**: Adjust the `output_rules` field if you want your board members to give longer answers or use alternative rating configurations.\n"
      },
      "typeVersion": 1
    },
    {
      "id": "db91633c-9985-4794-a70c-67407120a87c",
      "name": "Sticky Note - Trigger Phase",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        656,
        752
      ],
      "parameters": {
        "color": 7,
        "width": 514,
        "height": 480,
        "content": "## 1. INPUT TRIGGER & INGESTION\n\n**Chat Trigger:** Captures your business strategy or pitch idea live via n8n's native frontend chat framework.\n\n**Prompt Configuration (Set Node):** Packages the input variables cleanly and establishes strict rule sets (`output_rules`) that guarantee the specialized board executives output structurally identical analysis for flawless aggregation down the line."
      },
      "typeVersion": 1
    },
    {
      "id": "6aaf995d-33e4-4faf-9426-034ed80b4419",
      "name": "Sticky Note - Executives Phase",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1408,
        0
      ],
      "parameters": {
        "color": 5,
        "width": 420,
        "height": 2192,
        "content": "## 2. VIRTUAL C-SUITE EVALUATION\n\nThe input strategy fans out simultaneously to 5 distinct Agents running custom systemic sub-personas:\n\n* **CMO**: Gauges market fit, audience attraction, and acquisition dynamics.\n* **CFO**: Assesses capital runway, profit generation, and cash flow hazards.\n* **CPO**: Validates user mechanics, functional friction, and product core value.\n* **COO**: Diagnoses scaling potential, structural workflows, and burnout risks.\n* **CLO**: Screens for compliance, liability exposures, and legal roadblocks."
      },
      "typeVersion": 1
    },
    {
      "id": "679cc60d-3008-4212-95c9-f2e7a0747832",
      "name": "Sticky Note - Consolidation Phase",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2080,
        720
      ],
      "parameters": {
        "width": 450,
        "height": 544,
        "content": "## 3. CONSOLIDATING DEBATES\n\n**Merge Node:** Waits until all 5 asynchronously processing executives have finalized their independent evaluation blocks, collecting them into a single compound dataset.\n\n**Format Aggregated Text (Code Node):** Iterates over the array outputs via programmatic JavaScript execution, dynamic-mapping their text into highly readable Markdown sections categorized cleanly under individual `## Role` banners."
      },
      "typeVersion": 1
    },
    {
      "id": "311ea1fd-246f-4ad0-ac8d-12d6f033b596",
      "name": "Sticky Note - Review Phase",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2656,
        720
      ],
      "parameters": {
        "color": 4,
        "width": 400,
        "height": 694,
        "content": "## 4. CHAIRMAN REVIEW & FINAL MINUTES\n\n**Chairman (CEO):** Takes the formatted debates, reads through opposing perspectives (e.g., CMO wanting fast growth vs. CLO warning against regulatory barriers), compromises on a cohesive corporate direction, and structures executive minutes.\n\n**Memory (Buffer Window):** Provides systemic retention, making the final conversational node remember recent history to enable context-aware discussions about your ideas."
      },
      "typeVersion": 1
    },
    {
      "id": "82a6094b-59f4-4e7b-8e0c-17671be08ce7",
      "name": "Anthropic Chat Model - CMO",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        1584,
        592
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "claude-sonnet-4-6",
          "cachedResultName": "Claude Sonnet 4.6"
        },
        "options": {}
      },
      "credentials": {
        "anthropicApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.5
    },
    {
      "id": "51bbf78a-9f9f-4dfc-96af-447cdf4e3309",
      "name": "Anthropic Chat Model - CFO",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        1584,
        960
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "claude-sonnet-4-6",
          "cachedResultName": "Claude Sonnet 4.6"
        },
        "options": {}
      },
      "credentials": {
        "anthropicApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.5
    },
    {
      "id": "6b94d58c-8732-41ee-9fae-bbb54e91206c",
      "name": "Anthropic Chat Model - CPO",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        1584,
        1312
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "claude-sonnet-4-6",
          "cachedResultName": "Claude Sonnet 4.6"
        },
        "options": {}
      },
      "credentials": {
        "anthropicApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.5
    },
    {
      "id": "2db54f6a-86b8-447c-b66f-17826f37e3a2",
      "name": "Anthropic Chat Model - COO",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        1584,
        1680
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "claude-sonnet-4-6",
          "cachedResultName": "Claude Sonnet 4.6"
        },
        "options": {}
      },
      "credentials": {
        "anthropicApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.5
    },
    {
      "id": "05bd50ec-522c-423a-8c54-5ec1a02aee39",
      "name": "Anthropic Chat Model - CLO",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        1584,
        2032
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "claude-sonnet-4-6",
          "cachedResultName": "Claude Sonnet 4.6"
        },
        "options": {}
      },
      "credentials": {
        "anthropicApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.5
    },
    {
      "id": "8d116605-0cf7-4405-a4e4-833a554bf4ff",
      "name": "Anthropic Chat Model - CEO",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        2704,
        1232
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "claude-sonnet-4-6",
          "cachedResultName": "Claude Sonnet 4.6"
        },
        "options": {}
      },
      "credentials": {
        "anthropicApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.5
    }
  ],
  "active": false,
  "settings": {
    "binaryMode": "separate",
    "executionOrder": "v1"
  },
  "versionId": "ea0edaee-cc10-4d6e-9563-5e7619964303",
  "nodeGroups": [],
  "connections": {
    "Merge": {
      "main": [
        [
          {
            "node": "Format Aggregated Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "CLO (Legal)": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 4
          }
        ]
      ]
    },
    "Chat Trigger": {
      "main": [
        [
          {
            "node": "Prompt Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "CFO (Finance)": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "CPO (Product)": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "CMO (Marketing)": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "COO (Operations)": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 3
          }
        ]
      ]
    },
    "Memory (Chairman)": {
      "ai_memory": [
        [
          {
            "node": "Chairman (CEO)",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Prompt Configuration": {
      "main": [
        [
          {
            "node": "CMO (Marketing)",
            "type": "main",
            "index": 0
          },
          {
            "node": "CFO (Finance)",
            "type": "main",
            "index": 0
          },
          {
            "node": "COO (Operations)",
            "type": "main",
            "index": 0
          },
          {
            "node": "CPO (Product)",
            "type": "main",
            "index": 0
          },
          {
            "node": "CLO (Legal)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Aggregated Text": {
      "main": [
        [
          {
            "node": "Chairman (CEO)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Chat Model - CEO": {
      "ai_languageModel": [
        [
          {
            "node": "Chairman (CEO)",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Chat Model - CFO": {
      "ai_languageModel": [
        [
          {
            "node": "CFO (Finance)",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Chat Model - CLO": {
      "ai_languageModel": [
        [
          {
            "node": "CLO (Legal)",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Chat Model - CMO": {
      "ai_languageModel": [
        [
          {
            "node": "CMO (Marketing)",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Chat Model - COO": {
      "ai_languageModel": [
        [
          {
            "node": "COO (Operations)",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Chat Model - CPO": {
      "ai_languageModel": [
        [
          {
            "node": "CPO (Product)",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}