{
  "meta": {
    "instanceId": "12e6f290a974a1eee154f8d915aade185e90e826260e6aeab8a087ba7386a1bc",
    "templateCredsSetupCompleted": true
  },
  "name": "CLO Agent with Legal Team",
  "nodes": [
    {
      "id": "legal-chat-trigger",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -2864,
        -576
      ],
      "webhookId": "legal-webhook-id",
      "parameters": {
        "options": {}
      },
      "typeVersion": 1.1
    },
    {
      "id": "clo-agent",
      "name": "CLO Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -2640,
        -816
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 2.1
    },
    {
      "id": "legal-think",
      "name": "Think",
      "type": "@n8n/n8n-nodes-langchain.toolThink",
      "position": [
        -2512,
        -496
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "contract-agent",
      "name": "Contract Specialist",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        -2240,
        -96
      ],
      "parameters": {
        "text": "={{ $fromAI('Prompt__User_Message_', ``, 'string') }}",
        "options": {},
        "toolDescription": "call this AI Agent that specializes in contract drafting, review, negotiation terms, and agreement analysis"
      },
      "typeVersion": 2.2
    },
    {
      "id": "compliance-agent",
      "name": "Compliance Officer",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        -1280,
        -704
      ],
      "parameters": {
        "text": "={{ $fromAI('Prompt__User_Message_', ``, 'string') }}",
        "options": {},
        "toolDescription": "call this AI Agent that specializes in regulatory compliance, legal requirements, audits, and risk assessment"
      },
      "typeVersion": 2.2
    },
    {
      "id": "ip-agent",
      "name": "Intellectual Property Specialist",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        -1840,
        -304
      ],
      "parameters": {
        "text": "={{ $fromAI('Prompt__User_Message_', ``, 'string') }}",
        "options": {},
        "toolDescription": "call this AI Agent that specializes in patents, trademarks, copyrights, trade secrets, and IP protection"
      },
      "typeVersion": 2.2
    },
    {
      "id": "privacy-agent",
      "name": "Privacy & Data Protection Lawyer",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        -1328,
        -80
      ],
      "parameters": {
        "text": "={{ $fromAI('Prompt__User_Message_', ``, 'string') }}",
        "options": {},
        "toolDescription": "call this AI Agent that specializes in GDPR, CCPA, data privacy policies, and data protection compliance"
      },
      "typeVersion": 2.2
    },
    {
      "id": "corporate-agent",
      "name": "Corporate Law Specialist",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        -1744,
        -1024
      ],
      "parameters": {
        "text": "={{ $fromAI('Prompt__User_Message_', ``, 'string') }}",
        "options": {},
        "toolDescription": "call this AI Agent that specializes in corporate governance, M&A, securities law, and business formation"
      },
      "typeVersion": 2.2
    },
    {
      "id": "employment-agent",
      "name": "Employment Law Specialist",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        -1344,
        -1264
      ],
      "parameters": {
        "text": "={{ $fromAI('Prompt__User_Message_', ``, 'string') }}",
        "options": {},
        "toolDescription": "call this AI Agent that specializes in employment contracts, workplace policies, labor law, and HR legal issues"
      },
      "typeVersion": 2.2
    },
    {
      "id": "clo-model",
      "name": "OpenAI Chat Model CLO",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -2672,
        -496
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "o3",
          "cachedResultName": "o3"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "credential-id",
          "name": "openAiApi Credential"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "contract-model",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -2208,
        368
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "credential-id",
          "name": "openAiApi Credential"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "compliance-model",
      "name": "OpenAI Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1312,
        -496
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "credential-id",
          "name": "openAiApi Credential"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "ip-model",
      "name": "OpenAI Chat Model3",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1824,
        -144
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "credential-id",
          "name": "openAiApi Credential"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "privacy-model",
      "name": "OpenAI Chat Model4",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1328,
        96
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "credential-id",
          "name": "openAiApi Credential"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "corporate-model",
      "name": "OpenAI Chat Model5",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1776,
        -768
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "credential-id",
          "name": "openAiApi Credential"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "employment-model",
      "name": "OpenAI Chat Model6",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1312,
        -944
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "credential-id",
          "name": "openAiApi Credential"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "legal-header-sticky",
      "name": "Sticky Note Header",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3808,
        -880
      ],
      "parameters": {
        "color": 1,
        "width": 580,
        "height": 320,
        "content": "=======================================\n        CLO AGENT WITH LEGAL TEAM\n=======================================\nFor any questions or support, please contact:\n    Yaron@nofluff.online\n\nExplore more tips and tutorials here:\n   - YouTube: https://www.youtube.com/@YaronBeen/videos\n   - LinkedIn: https://www.linkedin.com/in/yaronbeen/\n======================================="
      },
      "typeVersion": 1
    },
    {
      "id": "legal-main-sticky",
      "name": "Sticky Note Main",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3808,
        -544
      ],
      "parameters": {
        "color": 1,
        "width": 740,
        "height": 2800,
        "content": "## ⚖️ **CLO AGENT WITH LEGAL TEAM - AI WORKFLOW**\n\n**🔥 Powered by OpenAI O3 & GPT-4.1-mini Multi-Agent System**\n\n#LegalTech #LegalAutomation #n8nWorkflows #OpenAI #LegalAI\n\n---\n\n### 📝 **Overview**\n\nThis multi-agent n8n automation creates a comprehensive legal department. A strategic CLO agent receives your legal requests, analyzes legal requirements, and coordinates specialized legal agents for contracts, compliance, IP protection, privacy law, corporate governance, and employment law—delivering professional legal support with AI efficiency.\n\n**⚠️ DISCLAIMER: This AI provides legal information, not legal advice. Always consult licensed attorneys for legal matters.**\n\n---\n\n### ⚙️ **How It Works**\n\n1. **Chat trigger** receives legal requests (e.g., \"Draft a software licensing agreement\")\n2. **CLO Agent** (O3) analyzes legal requirements and determines approach\n3. Delegates to specialist agents:\n   - Contract Specialist\n   - Compliance Officer\n   - Intellectual Property Specialist\n   - Privacy & Data Protection Lawyer\n   - Corporate Law Specialist\n   - Employment Law Specialist\n4. Each agent uses **GPT-4.1-mini** for specialized legal analysis\n5. Results compiled into comprehensive legal deliverables\n\n---\n\n### 👥 **Meet Your AI Legal Team**\n\n| Agent | Purpose | Model | Output |\n|-------|---------|-------|--------|\n| ⚖️ **CLO Agent** | Legal strategy & risk management | O3 | Strategic legal oversight |\n| 📄 **Contract Specialist** | Drafting, review, negotiation | GPT-4.1-mini | Contract documents |\n| 🛡️ **Compliance Officer** | Regulatory compliance, audits | GPT-4.1-mini | Compliance frameworks |\n| 🔒 **IP Specialist** | Patents, trademarks, copyrights | GPT-4.1-mini | IP protection strategies |\n| 🔐 **Privacy Lawyer** | GDPR, CCPA, data protection | GPT-4.1-mini | Privacy policies |\n| 🏢 **Corporate Lawyer** | M&A, governance, securities | GPT-4.1-mini | Corporate documents |\n| 👨‍💼 **Employment Lawyer** | HR policies, labor law | GPT-4.1-mini | Employment agreements |\n\n---\n\n### 💡 **Use Cases**\n\n- **Contract Lifecycle**: Draft → Review → Negotiate → Execute → Monitor\n- **Compliance Programs**: Policy creation → Risk assessment → Audit preparation\n- **IP Protection**: Patent applications → Trademark registration → Copyright notices\n- **Privacy Compliance**: GDPR assessments → Privacy policies → Data mapping\n- **Corporate Governance**: Board resolutions → Shareholder agreements → Bylaws\n- **Employment Law**: Policy manuals → Contract templates → Dispute resolution\n\n---\n\n### 💸 **Cost Optimization**\n\n- **O3 for CLO**: Complex legal strategy only\n- **GPT-4.1-mini for specialists**: 90% cost reduction\n- **Parallel processing**: Multiple legal workstreams\n- **Template library**: Reuse proven legal documents\n\n---\n\n### ⚠️ **Important Legal Notice**\n\nThis AI workflow provides:\n- ✅ Legal document templates\n- ✅ Compliance checklists\n- ✅ Risk assessments\n- ✅ Legal research summaries\n\nThis AI workflow does NOT provide:\n- ❌ Legal advice\n- ❌ Attorney-client privilege\n- ❌ Court representation\n- ❌ Professional legal liability\n\n**Always consult qualified legal professionals for binding legal matters.**\n\n---\n\n### 🏷️ **Tags**\n\n#LegalTech #ContractAutomation #ComplianceTech #LegalAI #LegalOps\n#IntellectualProperty #PrivacyLaw #CorporateLaw #EmploymentLaw #LegalInnovation\n#n8n #OpenAI #MultiAgentSystem #LegalDocument #RiskManagement #LegalStrategy"
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "Think": {
      "ai_tool": [
        [
          {
            "node": "CLO Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Compliance Officer": {
      "ai_tool": [
        [
          {
            "node": "CLO Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Contract Specialist",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Compliance Officer",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model3": {
      "ai_languageModel": [
        [
          {
            "node": "Intellectual Property Specialist",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model4": {
      "ai_languageModel": [
        [
          {
            "node": "Privacy & Data Protection Lawyer",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model5": {
      "ai_languageModel": [
        [
          {
            "node": "Corporate Law Specialist",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model6": {
      "ai_languageModel": [
        [
          {
            "node": "Employment Law Specialist",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Contract Specialist": {
      "ai_tool": [
        [
          {
            "node": "CLO Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model CLO": {
      "ai_languageModel": [
        [
          {
            "node": "CLO Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Corporate Law Specialist": {
      "ai_tool": [
        [
          {
            "node": "CLO Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Employment Law Specialist": {
      "ai_tool": [
        [
          {
            "node": "CLO Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "CLO Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Intellectual Property Specialist": {
      "ai_tool": [
        [
          {
            "node": "CLO Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Privacy & Data Protection Lawyer": {
      "ai_tool": [
        [
          {
            "node": "CLO Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}