{
  "meta": {
    "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
      ],
      "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": {
          "name": "<your 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": {
          "name": "<your 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": {
          "name": "<your 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": {
          "name": "<your 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": {
          "name": "<your 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": {
          "name": "<your 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": {
          "name": "<your 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": "## \u2696\ufe0f **CLO AGENT WITH LEGAL TEAM - AI WORKFLOW**\n\n**\ud83d\udd25 Powered by OpenAI O3 & GPT-4.1-mini Multi-Agent System**\n\n#LegalTech #LegalAutomation #n8nWorkflows #OpenAI #LegalAI\n\n---\n\n### \ud83d\udcdd **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\u2014delivering professional legal support with AI efficiency.\n\n**\u26a0\ufe0f DISCLAIMER: This AI provides legal information, not legal advice. Always consult licensed attorneys for legal matters.**\n\n---\n\n### \u2699\ufe0f **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### \ud83d\udc65 **Meet Your AI Legal Team**\n\n| Agent | Purpose | Model | Output |\n|-------|---------|-------|--------|\n| \u2696\ufe0f **CLO Agent** | Legal strategy & risk management | O3 | Strategic legal oversight |\n| \ud83d\udcc4 **Contract Specialist** | Drafting, review, negotiation | GPT-4.1-mini | Contract documents |\n| \ud83d\udee1\ufe0f **Compliance Officer** | Regulatory compliance, audits | GPT-4.1-mini | Compliance frameworks |\n| \ud83d\udd12 **IP Specialist** | Patents, trademarks, copyrights | GPT-4.1-mini | IP protection strategies |\n| \ud83d\udd10 **Privacy Lawyer** | GDPR, CCPA, data protection | GPT-4.1-mini | Privacy policies |\n| \ud83c\udfe2 **Corporate Lawyer** | M&A, governance, securities | GPT-4.1-mini | Corporate documents |\n| \ud83d\udc68\u200d\ud83d\udcbc **Employment Lawyer** | HR policies, labor law | GPT-4.1-mini | Employment agreements |\n\n---\n\n### \ud83d\udca1 **Use Cases**\n\n- **Contract Lifecycle**: Draft \u2192 Review \u2192 Negotiate \u2192 Execute \u2192 Monitor\n- **Compliance Programs**: Policy creation \u2192 Risk assessment \u2192 Audit preparation\n- **IP Protection**: Patent applications \u2192 Trademark registration \u2192 Copyright notices\n- **Privacy Compliance**: GDPR assessments \u2192 Privacy policies \u2192 Data mapping\n- **Corporate Governance**: Board resolutions \u2192 Shareholder agreements \u2192 Bylaws\n- **Employment Law**: Policy manuals \u2192 Contract templates \u2192 Dispute resolution\n\n---\n\n### \ud83d\udcb8 **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### \u26a0\ufe0f **Important Legal Notice**\n\nThis AI workflow provides:\n- \u2705 Legal document templates\n- \u2705 Compliance checklists\n- \u2705 Risk assessments\n- \u2705 Legal research summaries\n\nThis AI workflow does NOT provide:\n- \u274c Legal advice\n- \u274c Attorney-client privilege\n- \u274c Court representation\n- \u274c Professional legal liability\n\n**Always consult qualified legal professionals for binding legal matters.**\n\n---\n\n### \ud83c\udff7\ufe0f **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
          }
        ]
      ]
    }
  }
}