{"id":"4WRT0ICsoRrNeBawH_OG6","meta":{"instanceId":"b91e510ebae4127f953fd2f5f8d40d58ca1e71c746d4500c12ae86aad04c1502"},"name":"AI-driven legislative policy analysis and governance compliance orchestration","tags":[],"nodes":[{"id":"2e356cfa-849a-4d4a-b02d-7ca7288ad4b4","name":"Legislative Document Submission","type":"n8n-nodes-base.webhook","position":[-2464,320],"webhookId":"f9b81add-69ed-4b8c-bce6-390ae382b470","parameters":{"path":"legislative-policy-submission","options":{},"httpMethod":"POST","responseMode":"lastNode"},"typeVersion":2.1},{"id":"a129f9b1-1ff8-4e90-ae52-4378932c1aff","name":"Workflow Configuration","type":"n8n-nodes-base.set","position":[-2240,320],"parameters":{"options":{},"assignments":{"assignments":[{"id":"id-1","name":"legalReviewThreshold","type":"string","value":"HIGH"},{"id":"id-2","name":"complianceFrameworks","type":"string","value":"GDPR,CCPA,SOX"},{"id":"id-3","name":"stakeholderChannels","type":"string","value":"#legal-compliance,#governance"}]},"includeOtherFields":true},"typeVersion":3.4},{"id":"ddba4005-2667-4db5-b4fd-f86aba942468","name":"Fetch Legislative Document","type":"n8n-nodes-base.httpRequest","position":[-2016,320],"parameters":{"url":"={{ $json.documentUrl }}","options":{"response":{"response":{"responseFormat":"file"}}}},"typeVersion":4.3},{"id":"fb7c368a-cfc6-43f3-b659-400c747b7d29","name":"Extract Document Text","type":"n8n-nodes-base.extractFromFile","position":[-1792,320],"parameters":{"options":{"joinPages":true},"operation":"pdf"},"typeVersion":1.1},{"id":"551426e9-18c2-4a43-b3c7-b088ec6a841a","name":"OpenAI Model - Policy Interpretation","type":"@n8n/n8n-nodes-langchain.lmChatOpenAi","position":[-1552,544],"parameters":{"model":{"__rl":true,"mode":"id","value":"gpt-4o"},"options":{"temperature":0.1},"builtInTools":{}},"credentials":{"openAiApi":{"id":"mv2ECvRtbAK63G2g","name":"OpenAi account"}},"typeVersion":1.3},{"id":"db128267-e16f-478f-ae10-29777b5f9eb7","name":"Policy Analysis Output Parser","type":"@n8n/n8n-nodes-langchain.outputParserStructured","position":[-1424,544],"parameters":{"jsonSchemaExample":"{\n  \"documentType\": \"LEGISLATION | AMENDMENT | REGULATION\",\n  \"jurisdiction\": \"Federal | State | Local\",\n  \"effectiveDate\": \"YYYY-MM-DD\",\n  \"scope\": \"Description of policy scope and applicability\",\n  \"keyProvisions\": [\"Provision 1\", \"Provision 2\"],\n  \"affectedEntities\": [\"Entity type 1\", \"Entity type 2\"],\n  \"complianceRequirements\": [\"Requirement 1\", \"Requirement 2\"],\n  \"riskLevel\": \"LOW | MEDIUM | HIGH | CRITICAL\",\n  \"requiresLegalReview\": true,\n  \"reasoning\": \"Explanation of analysis and risk assessment\"\n}"},"typeVersion":1.3},{"id":"69622cb9-8c10-460a-b269-3cbc78ebafa5","name":"Policy Interpretation Agent","type":"@n8n/n8n-nodes-langchain.agent","position":[-1568,320],"parameters":{"text":"={{ $json.text }}","options":{"systemMessage":"You are a Policy Interpretation Specialist analyzing legislative documents, amendments, and regulatory texts.\n\nYour task is to:\n1. Identify the document type (legislation, amendment, regulation)\n2. Determine jurisdiction and effective date\n3. Analyze scope and applicability to different entities\n4. Extract key provisions and compliance requirements\n5. Identify affected entities and stakeholder groups\n6. Assess risk level based on complexity, penalties, and organizational impact\n7. Determine if human legal review is required (HIGH or CRITICAL risk levels)\n8. Provide clear reasoning for your analysis\n\nIMPORTANT: You are NOT providing legal advice or binding interpretations. Your analysis is for informational and triage purposes only. All high-risk items require human legal review before action."},"promptType":"define","hasOutputParser":true},"typeVersion":3.1},{"id":"8adb94f3-fa80-414d-b194-8a121e48d8f4","name":"OpenAI Model - Impact Assessment","type":"@n8n/n8n-nodes-langchain.lmChatOpenAi","position":[-1008,800],"parameters":{"model":{"__rl":true,"mode":"id","value":"gpt-4o"},"options":{"temperature":0.2},"builtInTools":{}},"credentials":{"openAiApi":{"id":"mv2ECvRtbAK63G2g","name":"OpenAi account"}},"typeVersion":1.3},{"id":"2e44a5c1-f540-4220-9664-9b4f17745afb","name":"Impact Assessment Output Parser","type":"@n8n/n8n-nodes-langchain.outputParserStructured","position":[-800,784],"parameters":{"jsonSchemaExample":"{\n  \"impactAreas\": [\"Operations\", \"Finance\", \"HR\", \"IT\"],\n  \"estimatedCost\": \"Dollar amount or range\",\n  \"implementationTimeline\": \"Timeline estimate\",\n  \"resourceRequirements\": [\"Resource 1\", \"Resource 2\"],\n  \"businessRisks\": [\"Risk 1\", \"Risk 2\"],\n  \"mitigationStrategies\": [\"Strategy 1\", \"Strategy 2\"],\n  \"priorityScore\": 85,\n  \"reasoning\": \"Explanation of impact assessment\"\n}"},"typeVersion":1.3},{"id":"35182b77-15ea-43c9-9f46-4841714afa6f","name":"Impact Assessment Agent Tool","type":"@n8n/n8n-nodes-langchain.agentTool","position":[-912,576],"parameters":{"text":"={{ $fromAI(\"policyAnalysis\", \"Policy interpretation results including scope, provisions, and risk level\", \"json\") }}","options":{"systemMessage":"You are an Impact Assessment Specialist evaluating organizational impact of policy changes.\n\nYour task is to:\n1. Analyze which business areas are affected (Operations, Finance, HR, IT, Legal, etc.)\n2. Estimate implementation costs and resource requirements\n3. Determine realistic implementation timeline\n4. Identify business risks and operational challenges\n5. Recommend mitigation strategies\n6. Calculate priority score (0-100) based on urgency, impact, and risk\n7. Provide detailed reasoning for your assessment\n\nConsider: compliance deadlines, operational disruption, financial impact, and resource availability."},"hasOutputParser":true,"toolDescription":"Analyzes organizational impact of policy changes and provides implementation assessment including costs, timeline, and risks"},"typeVersion":3},{"id":"7bddd84d-65f2-4b2c-8d6b-60e790737093","name":"OpenAI Model - Compliance Mapping","type":"@n8n/n8n-nodes-langchain.lmChatOpenAi","position":[-624,784],"parameters":{"model":{"__rl":true,"mode":"id","value":"gpt-4o"},"options":{"temperature":0.2},"builtInTools":{}},"credentials":{"openAiApi":{"id":"mv2ECvRtbAK63G2g","name":"OpenAi account"}},"typeVersion":1.3},{"id":"7033a0af-aab4-40af-9c90-6eb718218e48","name":"Compliance Mapping Output Parser","type":"@n8n/n8n-nodes-langchain.outputParserStructured","position":[-464,784],"parameters":{"jsonSchemaExample":"{\n  \"applicableFrameworks\": [\"GDPR\", \"CCPA\", \"SOX\"],\n  \"complianceGaps\": [\"Gap 1\", \"Gap 2\"],\n  \"requiredActions\": [\"Action 1\", \"Action 2\"],\n  \"complianceDeadlines\": [{\"framework\": \"GDPR\", \"deadline\": \"YYYY-MM-DD\"}],\n  \"documentationNeeds\": [\"Document 1\", \"Document 2\"],\n  \"trainingRequirements\": [\"Training 1\", \"Training 2\"],\n  \"complianceStatus\": \"COMPLIANT | PARTIAL | NON_COMPLIANT\",\n  \"reasoning\": \"Explanation of compliance mapping\"\n}"},"typeVersion":1.3},{"id":"20964284-8b93-408e-83a2-48c2d9c86c58","name":"Compliance Mapping Agent Tool","type":"@n8n/n8n-nodes-langchain.agentTool","position":[-624,576],"parameters":{"text":"={{ $fromAI(\"policyAnalysis\", \"Policy interpretation results\", \"json\") }}","options":{"systemMessage":"You are a Compliance Mapping Specialist identifying regulatory framework alignment.\n\nYour task is to:\n1. Map policy requirements to applicable compliance frameworks (GDPR, CCPA, SOX, HIPAA, etc.)\n2. Identify compliance gaps in current organizational practices\n3. Define required actions to achieve compliance\n4. Determine compliance deadlines and milestones\n5. Specify documentation and record-keeping needs\n6. Identify training requirements for affected personnel\n7. Assess overall compliance status\n8. Provide detailed reasoning for compliance mapping\n\nConsider: existing compliance posture, regulatory overlap, and enforcement priorities."},"hasOutputParser":true,"toolDescription":"Maps policy requirements to compliance frameworks and identifies gaps, actions, and deadlines"},"typeVersion":3},{"id":"64a6fc49-e7a1-4046-9d03-22faee3fb508","name":"OpenAI Model - Stakeholder Notification","type":"@n8n/n8n-nodes-langchain.lmChatOpenAi","position":[-288,784],"parameters":{"model":{"__rl":true,"mode":"id","value":"gpt-4o"},"options":{"temperature":0.3},"builtInTools":{}},"credentials":{"openAiApi":{"id":"mv2ECvRtbAK63G2g","name":"OpenAi account"}},"typeVersion":1.3},{"id":"8fe0f2e3-9b51-4a68-b553-4e5c8f1813c8","name":"Stakeholder Notification Output Parser","type":"@n8n/n8n-nodes-langchain.outputParserStructured","position":[-80,784],"parameters":{"jsonSchemaExample":"{\n  \"stakeholderGroups\": [\"Legal\", \"Compliance\", \"Operations\", \"Executive\"],\n  \"notificationPriority\": \"IMMEDIATE | HIGH | MEDIUM | LOW\",\n  \"messageContent\": \"Notification message text\",\n  \"actionItems\": [\"Action 1\", \"Action 2\"],\n  \"responseDeadline\": \"YYYY-MM-DD\",\n  \"escalationPath\": [\"Role 1\", \"Role 2\"],\n  \"reasoning\": \"Explanation of notification strategy\"\n}"},"typeVersion":1.3},{"id":"7b6795ae-b69b-4134-94cf-5b92cc815f0d","name":"Stakeholder Notification Agent Tool","type":"@n8n/n8n-nodes-langchain.agentTool","position":[-336,576],"parameters":{"text":"={{ $fromAI(\"policyAnalysis\", \"Policy interpretation results\", \"json\") }}","options":{"systemMessage":"You are a Stakeholder Notification Specialist coordinating communication strategies.\n\nYour task is to:\n1. Identify stakeholder groups requiring notification (Legal, Compliance, Operations, Executive, etc.)\n2. Determine notification priority and urgency\n3. Draft clear, actionable notification messages\n4. Define specific action items for each stakeholder group\n5. Set response deadlines based on policy effective dates\n6. Establish escalation paths for non-response\n7. Provide reasoning for notification strategy\n\nEnsure messages are clear, non-alarmist, and action-oriented. Avoid legal jargon."},"hasOutputParser":true,"toolDescription":"Determines stakeholder notification strategy including priority, messaging, and action items"},"typeVersion":3},{"id":"69b5b79a-8f2e-4b91-a7df-1280cd16428f","name":"OpenAI Model - Governance Orchestration","type":"@n8n/n8n-nodes-langchain.lmChatOpenAi","position":[-1040,576],"parameters":{"model":{"__rl":true,"mode":"id","value":"gpt-4o"},"options":{"temperature":0.2},"builtInTools":{}},"credentials":{"openAiApi":{"id":"mv2ECvRtbAK63G2g","name":"OpenAi account"}},"typeVersion":1.3},{"id":"526abed3-92b5-4c6c-a125-48edd48b01db","name":"Governance Orchestration Output Parser","type":"@n8n/n8n-nodes-langchain.outputParserStructured","position":[-48,576],"parameters":{"jsonSchemaExample":"{\n  \"orchestrationDecision\": \"LEGAL_REVIEW_REQUIRED | AUTO_APPROVE | ESCALATE\",\n  \"reviewStatus\": \"REQUIRES_HUMAN_REVIEW | APPROVED | PENDING\",\n  \"coordinatedActions\": [\"Action 1\", \"Action 2\"],\n  \"impactSummary\": \"Summary of impact assessment\",\n  \"complianceSummary\": \"Summary of compliance mapping\",\n  \"stakeholderSummary\": \"Summary of stakeholder notifications\",\n  \"nextSteps\": [\"Step 1\", \"Step 2\"],\n  \"reasoning\": \"Explanation of orchestration decision\"\n}"},"typeVersion":1.3},{"id":"c6e12e6d-2841-4be2-b3b8-27b95ebf8ea3","name":"Governance Orchestration Agent","type":"@n8n/n8n-nodes-langchain.agent","position":[-608,352],"parameters":{"text":"=Policy Analysis Results: {{ $json.output }}","options":{"systemMessage":"You are a Governance Orchestration Agent coordinating multi-faceted policy compliance workflows.\n\nYour task is to:\n1. Call the Impact Assessment Agent Tool to evaluate organizational impact\n2. Call the Compliance Mapping Agent Tool to identify regulatory requirements\n3. Call the Stakeholder Notification Agent Tool to determine communication strategy\n4. Synthesize all assessments into a coordinated action plan\n5. Determine if human legal review is required based on risk level and complexity\n6. Make orchestration decision: LEGAL_REVIEW_REQUIRED, AUTO_APPROVE, or ESCALATE\n7. Provide clear next steps and reasoning\n\nIMPORTANT: You coordinate analysis but do NOT provide legal advice or binding interpretations. High-risk items MUST route to human legal review. Your role is triage and coordination only."},"promptType":"define","hasOutputParser":true},"typeVersion":3.1},{"id":"d63bc279-69a1-4ee1-b7f6-865cefa1c6be","name":"Route by Review Status","type":"n8n-nodes-base.switch","position":[160,432],"parameters":{"rules":{"values":[{"outputKey":"Legal Review Required","conditions":{"options":{"leftValue":"","caseSensitive":true,"typeValidation":"strict"},"combinator":"and","conditions":[{"operator":{"type":"string","operation":"equals"},"leftValue":"={{ $json.output.reviewStatus }}","rightValue":"REQUIRES_HUMAN_REVIEW"}]},"renameOutput":true},{"outputKey":"Auto-Approved","conditions":{"options":{"leftValue":"","caseSensitive":true,"typeValidation":"strict"},"combinator":"and","conditions":[{"operator":{"type":"string","operation":"equals"},"leftValue":"={{ $json.output.reviewStatus }}","rightValue":"APPROVED"}]},"renameOutput":true}]},"options":{"fallbackOutput":"extra","renameFallbackOutput":"Unprocessed"}},"typeVersion":3.4},{"id":"a9dca160-c557-414e-8629-125d6c166d67","name":"Wait for Legal Review","type":"n8n-nodes-base.wait","position":[432,576],"webhookId":"bba64f77-1d5e-4e57-a08e-d34ab2651b8d","parameters":{"resume":"webhook","options":{},"httpMethod":"POST"},"typeVersion":1.1},{"id":"d8df3028-f5e1-4c78-85f1-250c93e7b6b9","name":"Notify Legal Team","type":"n8n-nodes-base.slack","position":[656,576],"webhookId":"2382ed90-7a9a-4349-bf41-3f6f0549578d","parameters":{"text":"=🔴 *Legal Review Required*\n\n*Document Type:* {{ $('Policy Interpretation Agent').item.json.output.documentType }}\n*Jurisdiction:* {{ $('Policy Interpretation Agent').item.json.output.jurisdiction }}\n*Risk Level:* {{ $('Policy Interpretation Agent').item.json.output.riskLevel }}\n*Effective Date:* {{ $('Policy Interpretation Agent').item.json.output.effectiveDate }}\n\n*Scope:* {{ $('Policy Interpretation Agent').item.json.output.scope }}\n\n*Impact Summary:* {{ $json.output.impactSummary }}\n*Compliance Summary:* {{ $json.output.complianceSummary }}\n\n*Next Steps:*\n{{ $json.output.nextSteps.join(\"\\n\") }}\n\n*Review Webhook:* {{ $resumeWebhookUrl }}\n\nPlease review and approve/reject via webhook.","select":"channel","channelId":{"__rl":true,"mode":"id","value":"<__PLACEHOLDER_VALUE__Legal Team Slack Channel ID__>"},"otherOptions":{},"authentication":"oAuth2"},"credentials":{"slackOAuth2Api":{"id":"d34b1ayEBbvZm2lT","name":"Slack account"}},"typeVersion":2.4},{"id":"0571efe6-9134-4aa1-8f5c-725685392d31","name":"Notify Stakeholders","type":"n8n-nodes-base.slack","position":[1104,576],"webhookId":"da4abc4f-7ab5-40c0-bc68-46c2444aaa95","parameters":{"text":"=✅ *Policy Compliance Update*\n\n*Document Type:* {{ $('Policy Interpretation Agent').item.json.output.documentType }}\n*Status:* Reviewed and Logged\n*Effective Date:* {{ $('Policy Interpretation Agent').item.json.output.effectiveDate }}\n\n*Coordinated Actions:*\n{{ $('Governance Orchestration Agent').item.json.output.coordinatedActions.join(\"\\n\") }}\n\n*Stakeholder Actions:*\n{{ $('Governance Orchestration Agent').item.json.output.stakeholderSummary }}\n\nAll compliance tracking has been updated.","select":"channel","channelId":{"__rl":true,"mode":"id","value":"<__PLACEHOLDER_VALUE__Stakeholder Slack Channel ID__>"},"otherOptions":{},"authentication":"oAuth2"},"credentials":{"slackOAuth2Api":{"id":"d34b1ayEBbvZm2lT","name":"Slack account"}},"typeVersion":2.4},{"id":"8ac1ec2c-4e4e-4654-8ad2-b4360ae9a4ec","name":"Log to Compliance Tracker","type":"n8n-nodes-base.googleSheets","position":[880,576],"parameters":{"columns":{"value":{"riskLevel":"={{ $('Policy Interpretation Agent').item.json.output.riskLevel }}","timestamp":"={{ $now.toISO() }}","documentType":"={{ $('Policy Interpretation Agent').item.json.output.documentType }}","jurisdiction":"={{ $('Policy Interpretation Agent').item.json.output.jurisdiction }}","reviewStatus":"={{ $('Governance Orchestration Agent').item.json.output.reviewStatus }}","effectiveDate":"={{ $('Policy Interpretation Agent').item.json.output.effectiveDate }}"},"schema":[{"id":"documentType","required":false,"displayName":"documentType","defaultMatch":true,"canBeUsedToMatch":true},{"id":"jurisdiction","required":false,"displayName":"jurisdiction","defaultMatch":false,"canBeUsedToMatch":true},{"id":"effectiveDate","required":false,"displayName":"effectiveDate","defaultMatch":false,"canBeUsedToMatch":true},{"id":"riskLevel","required":false,"displayName":"riskLevel","defaultMatch":false,"canBeUsedToMatch":true},{"id":"reviewStatus","required":false,"displayName":"reviewStatus","defaultMatch":false,"canBeUsedToMatch":true},{"id":"timestamp","required":false,"displayName":"timestamp","defaultMatch":false,"canBeUsedToMatch":true}],"mappingMode":"defineBelow","matchingColumns":["documentType"]},"options":{},"operation":"appendOrUpdate","sheetName":{"__rl":true,"mode":"name","value":"<__PLACEHOLDER_VALUE__Sheet Name__>"},"documentId":{"__rl":true,"mode":"id","value":"<__PLACEHOLDER_VALUE__Google Sheets Document ID for Compliance Tracker__>"}},"credentials":{"googleSheetsOAuth2Api":{"id":"hQFe8XTqJEiHL03Z","name":"Google Sheets account"}},"typeVersion":4.7},{"id":"22241d48-31c9-4cbe-98e5-63f016f74566","name":"Log Auto-Approved","type":"n8n-nodes-base.googleSheets","position":[432,384],"parameters":{"columns":{"value":{"status":"AUTO_APPROVED","riskLevel":"={{ $('Policy Interpretation Agent').item.json.output.riskLevel }}","timestamp":"={{ $now.toISO() }}","documentType":"={{ $('Policy Interpretation Agent').item.json.output.documentType }}","jurisdiction":"={{ $('Policy Interpretation Agent').item.json.output.jurisdiction }}","effectiveDate":"={{ $('Policy Interpretation Agent').item.json.output.effectiveDate }}"},"schema":[{"id":"documentType","required":false,"displayName":"documentType","defaultMatch":true,"canBeUsedToMatch":true},{"id":"jurisdiction","required":false,"displayName":"jurisdiction","defaultMatch":false,"canBeUsedToMatch":true},{"id":"effectiveDate","required":false,"displayName":"effectiveDate","defaultMatch":false,"canBeUsedToMatch":true},{"id":"riskLevel","required":false,"displayName":"riskLevel","defaultMatch":false,"canBeUsedToMatch":true},{"id":"status","required":false,"displayName":"status","defaultMatch":false,"canBeUsedToMatch":true},{"id":"timestamp","required":false,"displayName":"timestamp","defaultMatch":false,"canBeUsedToMatch":true}],"mappingMode":"defineBelow","matchingColumns":["documentType"]},"options":{},"operation":"appendOrUpdate","sheetName":{"__rl":true,"mode":"name","value":"<__PLACEHOLDER_VALUE__Sheet Name__>"},"documentId":{"__rl":true,"mode":"id","value":"<__PLACEHOLDER_VALUE__Google Sheets Document ID for Auto-Approved Tracker__>"}},"credentials":{"googleSheetsOAuth2Api":{"id":"hQFe8XTqJEiHL03Z","name":"Google Sheets account"}},"typeVersion":4.7},{"id":"d34da46f-6521-40d5-9eec-d71ad88b3490","name":"Sticky Note","type":"n8n-nodes-base.stickyNote","position":[-880,-240],"parameters":{"color":4,"width":432,"height":368,"content":"\n## Prerequisites\nOpenAI API key, Google Sheets with OAuth2, Slack workspace with bot token \n## Use Cases\nRegulatory change management, GDPR/financial compliance monitoring, policy impact assessment\n## Customization\nSwap OpenAI for NVIDIA NIM models, add additional specialist agents\n## Benefits\nCuts manual compliance review time by 70%, ensures no legislation goes unassessed"},"typeVersion":1},{"id":"b77d0297-9084-42df-a36c-fc6573208e29","name":"Sticky Note1","type":"n8n-nodes-base.stickyNote","position":[-1472,-144],"parameters":{"width":528,"height":304,"content":"## Setup Steps\n1. Add OpenAI API key to all OpenAI Model nodes  \n2. Connect Google Sheets OAuth2 credentials; set spreadsheet IDs for Auto-Approved Log \n3. Configure Slack OAuth2 token; set target channel in Notify Legal Team node\n4. Set up Gmail/SMTP credentials in Notify Stakeholders node; update recipient addresses\n5. Configure legislative document source URL or webhook endpoint in Fetch Legislative Document node\n6. Adjust routing thresholds in Route by Review Status node to match your approval criteria"},"typeVersion":1},{"id":"4915cae1-cddc-42b7-af89-d14f89f5b2a5","name":"Sticky Note2","type":"n8n-nodes-base.stickyNote","position":[-2496,-112],"parameters":{"width":960,"height":256,"content":"## How It Works\nThis workflow automates legislative compliance analysis by coordinating multiple specialized OpenAI agents to interpret regulatory documents, evaluate organizational impact, and manage stakeholder communication with complete audit traceability. It is built for compliance officers, legal teams, and governance leaders who must process new or amended legislation quickly without the burden of manual document review. The template addresses the core challenge of staying compliant amid rapidly evolving regulations. When a legislative document is submitted, the workflow retrieves and extracts its full text, then passes it to a Policy Interpretation Agent powered by OpenAI for structured analysis. A Governance Orchestration Agent then activates three parallel specialist agents—Impact Assessment, Compliance Mapping, and Stakeholder Notification to generate standardized outputs. Decisions are routed based on review status: auto-approved items are logged directly into Google Sheets, while flagged items trigger legal review through Slack alerts, compliance tracker updates, and stakeholder notifications, ensuring every regulatory change is evaluated, documented, and acted upon promptly."},"typeVersion":1},{"id":"9fcd5340-b79f-4201-81ec-906e62e19b1f","name":"Sticky Note3","type":"n8n-nodes-base.stickyNote","position":[-2512,192],"parameters":{"color":7,"width":864,"height":736,"content":"## Legislative Document Ingestion\n**What** –Receives submitted legislative documents and fetches full text via HTTP.\n**Why** – Ensures complete, unprocessed source material enters the pipeline for accurate downstream analysis."},"typeVersion":1},{"id":"6658f751-ba21-427f-a4d6-6cdc9637a634","name":"Sticky Note4","type":"n8n-nodes-base.stickyNote","position":[-1632,192],"parameters":{"color":7,"width":560,"height":736,"content":"## Policy Interpretation Agent\n**What** –OpenAI agent parses regulatory language and extracts structured policy signals.\n**Why** – Converts dense legal text into machine-readable insights that governance agents can act on."},"typeVersion":1},{"id":"392f6ef8-5eea-48f0-bb95-f9bca7bbe139","name":"Sticky Note5","type":"n8n-nodes-base.stickyNote","position":[-1056,192],"parameters":{"color":7,"width":1152,"height":784,"content":"## Parallel Governance Agent Processing\n**What** –Impact Assessment, Compliance Mapping, and Stakeholder Notification agents run concurrently.\n**Why** – Simultaneous specialist analysis reduces processing time and ensures comprehensive multi-dimensional compliance coverage."},"typeVersion":1},{"id":"90deaf59-3214-4ce2-914f-f70e82e463a7","name":"Sticky Note6","type":"n8n-nodes-base.stickyNote","position":[112,192],"parameters":{"color":7,"width":1216,"height":880,"content":"## Route by Review Status, Notify, Log & Alert\n\n**What** – Branch based on auto-approval or escalation; log outcomes in Google Sheets, alert legal via Slack, and email stakeholders.\n**Why** – Ensures only high-risk items require human review while maintaining full traceability and timely communication.\n"},"typeVersion":1}],"active":false,"pinData":{},"settings":{"availableInMCP":false,"executionOrder":"v1"},"versionId":"0c2b824d-133d-4f9a-a9db-28ec58f0179c","connections":{"Notify Legal Team":{"main":[[{"node":"Log to Compliance Tracker","type":"main","index":0}]]},"Extract Document Text":{"main":[[{"node":"Policy Interpretation Agent","type":"main","index":0}]]},"Wait for Legal Review":{"main":[[{"node":"Notify Legal Team","type":"main","index":0}]]},"Route by Review Status":{"main":[[{"node":"Wait for Legal Review","type":"main","index":0}],[{"node":"Log Auto-Approved","type":"main","index":0}]]},"Workflow Configuration":{"main":[[{"node":"Fetch Legislative Document","type":"main","index":0}]]},"Log to Compliance Tracker":{"main":[[{"node":"Notify Stakeholders","type":"main","index":0}]]},"Fetch Legislative Document":{"main":[[{"node":"Extract Document Text","type":"main","index":0}]]},"Policy Interpretation Agent":{"main":[[{"node":"Governance Orchestration Agent","type":"main","index":0}]]},"Impact Assessment Agent Tool":{"ai_tool":[[{"node":"Governance Orchestration Agent","type":"ai_tool","index":0}]]},"Compliance Mapping Agent Tool":{"ai_tool":[[{"node":"Governance Orchestration Agent","type":"ai_tool","index":0}]]},"Policy Analysis Output Parser":{"ai_outputParser":[[{"node":"Policy Interpretation Agent","type":"ai_outputParser","index":0}]]},"Governance Orchestration Agent":{"main":[[{"node":"Route by Review Status","type":"main","index":0}]]},"Impact Assessment Output Parser":{"ai_outputParser":[[{"node":"Impact Assessment Agent Tool","type":"ai_outputParser","index":0}]]},"Legislative Document Submission":{"main":[[{"node":"Workflow Configuration","type":"main","index":0}]]},"Compliance Mapping Output Parser":{"ai_outputParser":[[{"node":"Compliance Mapping Agent Tool","type":"ai_outputParser","index":0}]]},"OpenAI Model - Impact Assessment":{"ai_languageModel":[[{"node":"Impact Assessment Agent Tool","type":"ai_languageModel","index":0}]]},"OpenAI Model - Compliance Mapping":{"ai_languageModel":[[{"node":"Compliance Mapping Agent Tool","type":"ai_languageModel","index":0}]]},"Stakeholder Notification Agent Tool":{"ai_tool":[[{"node":"Governance Orchestration Agent","type":"ai_tool","index":0}]]},"OpenAI Model - Policy Interpretation":{"ai_languageModel":[[{"node":"Policy Interpretation Agent","type":"ai_languageModel","index":0}]]},"Governance Orchestration Output Parser":{"ai_outputParser":[[{"node":"Governance Orchestration Agent","type":"ai_outputParser","index":0}]]},"Stakeholder Notification Output Parser":{"ai_outputParser":[[{"node":"Stakeholder Notification Agent Tool","type":"ai_outputParser","index":0}]]},"OpenAI Model - Governance Orchestration":{"ai_languageModel":[[{"node":"Governance Orchestration Agent","type":"ai_languageModel","index":0}]]},"OpenAI Model - Stakeholder Notification":{"ai_languageModel":[[{"node":"Stakeholder Notification Agent Tool","type":"ai_languageModel","index":0}]]}}}