Skip to content

πŸ“˜ n8n object conventions and folder structure

πŸ““ Core object types in the n8n execution model

  • 🧩 Nodes β†’ Configuration objects
  • πŸ”„ Workflows β†’ Executable workflow objects
  • 🧬 Subflows β†’ Reusable workflow objects

πŸ“” Naming convention for workflows and subflows

All workflows and subflows must follow the naming convention defined in this document to ensure consistency, traceability, platform ownership, and environment separation across the n8n ecosystem.


πŸ“‘ Naming pattern

<Core object types>-<platform>-<env>-<object-type>-<functionality>

- <platform> identifies the business or technical platform the workflow belongs to
- <env> represents the target environment
- <object-type> represents the workflow classification
- <functionality> describes the business or technical purpose

πŸ“¦ Recommendation for creating an Azure DevOps repository

Repo: 🧩 <Core object types>-<platform>-<env>-<object-type>-<functionality>

.
β”œβ”€β”€ node-type-name/
|   β”œβ”€β”€ standard folders and files/
|   └── standard_folders_and_files.abc
└── README.md                           # Project overview with links to official documentation in docs/.

Table 1️⃣: Supported environments

Environment Description
dev Development environment used for active development and experimentation.
test Environment used for functional and integration testing.
qa Quality assurance environment for validation and acceptance testing.
uat User acceptance testing environment.
prod Production environment executing live business processes.

Table 2️⃣: Platforms

Platform Description
analitica Data analytics and reporting workflows, including data ingestion, transformation, and metrics generation.
colabora Collaboration and communication workflows, including notifications, approvals, and messaging integrations.
transversal Cross-functional workflows reused across multiple platforms (e.g. email sending, retries, formatting).
logycalibrary Catalog of artifacts and distribution layer.

Table 3️⃣: Object types

Object type Description
shared Reusable workflows providing common or technical functionality across platforms.
template Reference workflows used as starting points for new implementations.
process End-to-end business process workflows.
integration System-to-system integration workflows between internal or external platforms.
monitoring Workflows responsible for observability and operational health.
security Workflows enforcing security, governance, and compliance controls.
alerting Workflows generating alerts or notifications based on predefined conditions.

Table 4️⃣: Workflow naming convention and examples

Emoji Platform Environment Object type Convention name example <Core object types>-<Naming pattern> Description
🧩 transversal dev shared workflow-transversal-dev-shared-http-retry Reusable shared workflow providing common retry logic.
πŸ“„ analitica dev template workflow-analitica-dev-template-ingestion-processes Workflow template for analytics ingestion processes.
πŸ§ͺ analitica test process workflow-analitica-test-process-dataset-refresh Analytics workflow refreshing datasets in test environments.
πŸ“Š analitica prod monitoring workflow-analitica-prod-monitoring-pipeline-health Monitoring workflow validating analytics pipeline health.
πŸ”„ colabora qa integration workflow-colabora-qa-integration-teams-notifications Integration workflow sending notifications to collaboration tools.
🚨 colabora prod alerting workflow-colabora-prod-alerting-failed-approvals Alerting workflow for failed approval processes.
πŸ” security prod security workflow-security-prod-security-input-validation Workflow enforcing security validations in production.
πŸ›‘οΈ monitoring prod monitoring workflow-monitoring-prod-monitoring-execution-audit Workflow providing execution audit and traceability.

πŸ—‚οΈ Recommendations for folders according to LOGYCA standard and local development

πŸ›‘οΈ Folder Structure & Security Classification

  • πŸ”“ docs/ (Public Documentation)
    Contains functional, user-facing, and non-sensitive documentation.
    This folder may be published to a documentation portal or static website.

  • πŸ”’ All other folders (Confidential / Restricted)
    Contain technical, operational, or executable artifacts that may include sensitive information.
    These folders must not be published and should be accessible only to authorized personnel.

This separation enforces a security-by-design approach and reduces the risk of accidental exposure of confidential assets.

.
β”œβ”€β”€ .vscode/                                            # VS Code tasks for virtualenv setup and Python debugging.
β”œβ”€β”€ node_code_python_simulator/                         # Code that simulates n8n's JSON input schemes for local execution.
β”‚   β”œβ”€β”€ internal/                                       # Input conventions used by n8n.
β”‚   β”œβ”€β”€ shared/                                         # Helpers, schemes, and other code to prevent repeating functions or statements.
β”‚   └── requirements.txt                                # Not currently allowed on n8n Cloud.
β”œβ”€β”€ nodes/
β”‚   β”œβ”€β”€β”€ node-<Naming pattern>/
β”‚   β”‚    β”œβ”€β”€ docs/
β”‚   β”‚    ...
β”‚   β”‚    ...
β”‚   └── README.md
β”œβ”€β”€ subflows/
β”‚   β”œβ”€β”€ subflow-<Naming pattern>/
β”‚   β”‚   β”œβ”€β”€ docs/                                       # Documentation written in Markdown of the code.
β”‚   |   |   β”œβ”€β”€ CHANGELOG.md                            # All notable changes to this workflow are documented in this file.
β”‚   |   |   β”œβ”€β”€ dependencies/
β”‚   |   |   |   β”œβ”€β”€ credentials.md                      # Credential usage and purpose.
β”‚   |   |   |   β”œβ”€β”€ systems.md                          # External systems involved.
β”‚   |   |   |   β”œβ”€β”€ subflows.md                         # Referenced workflows or subflows.
β”‚   |   |   |   β”œβ”€β”€ runtime.md                          # n8n runtime assumptions.
β”‚   |   |   |   β”œβ”€β”€ packages.md                         # Available libraries for code nodes.
β”‚   |   |   |   β”œβ”€β”€ triggers.md                         # Triggering mechanisms.
β”‚   |   |   |   β”œβ”€β”€ data-contracts.md                   # Input/output expectations.
β”‚   |   |   |   β”œβ”€β”€ configuration.md                    # Non-secret configuration.
β”‚   |   |   |   └── constraints.md                      # Operational limits and assumptions.
β”‚   |   |   β”œβ”€β”€ contracts/                              # Data contracts defining input/output structures and schemas.
β”‚   |   |   |   └── user-input-schema.md                # JSON Schema defining expected user input payload structure.
β”‚   |   |   |   └── api-response-schema.md              # JSON Schema defining standardized API response structure.
β”‚   |   |   β”œβ”€β”€ rules/                                  # Declarative business and validation rules independent of execution.
β”‚   |   |   |   β”œβ”€β”€ email-validation-rules.md           # Documentation of email validation rules.
β”‚   |   |   |   └── numeric-validation-rules.md         # Numeric validation constraints (ranges, limits, thresholds).
β”‚   |   |   β”œβ”€β”€ metadata-sticky-notes/                  # Design-time notes embedded in the workflow (human-readable context).
β”‚   |   |   |   β”œβ”€β”€ decisions.md                        # Architectural and business decisions (lightweight ADRs).
β”‚   |   |   |   β”œβ”€β”€ map.md                              # Mapping between workflow nodes and their associated metadata files.
β”‚   |   |   |   └── references.md                       # Governance, ownership, versioning, and external references.
β”‚   |   |   β”œβ”€β”€ images/                                 # Images of the documentation, if available.
β”‚   |   |   └── README.md                               # Documentation index and navigation guide.
|   |   β”œβ”€β”€ artifacts/                                  # Exportable, versionable, and debuggable automation artifacts.
β”‚   |   |   β”œβ”€β”€ workflows/                              # Exported n8n workflows and subflows (JSON).
β”‚   |   |   β”‚   └── name_YYYYMMDD.json                  # Export workflow with date-based version control if needed.
β”‚   |   |   β”œβ”€β”€ code-nodes/                             # Code executed inside n8n Code nodes.
β”‚   |   |   β”‚   └── script.js                           # JavaScript file format.
β”‚   |   |   β”‚   └── script.py                           # Python file format.
β”‚   |   |   β”œβ”€β”€ testing/                                # Artifacts for validation and testing.
β”‚   |   |   |   β”œβ”€β”€ postman/                            # Postman collections and environments.
β”‚   |   |   |   |   └── add-user.json
β”‚   |   |   |   |   └── get-user.json
β”‚   |   |   |   └─── README.md                          # Testing usage guide.
β”‚   β”‚   └── README.md                                   # Redirect to the main documentation in docs/README.md.
β”œβ”€β”€ workflows/
β”‚   β”œβ”€β”€β”€ workflow-<Naming pattern>/
β”‚   β”‚    β”œβ”€β”€ docs/
β”‚   β”‚    ...
β”‚   β”‚    ...
└─  └── README.md

πŸ“Œ This table provides documentation shortcuts. Executable artifacts (JSON, scripts) are documented through Markdown files only.

Docs Path Documentation
/ README.md
artifacts/code-nodes/ JavaScript script.js
artifacts/code-nodes/ Python script.py
artifacts/testing/ (coming soon) README.md
artifacts/testing/postman/ (coming soon) add-user.md
artifacts/workflows/ (coming soon) name_YYYYMMDD.md
docs/dependencies/ packages.md
docs/dependencies/ (coming soon) credentials.md
docs/dependencies/ (coming soon) systems.md
docs/dependencies/ (coming soon) subflows.md
docs/dependencies/ (coming soon) runtime.md
docs/dependencies/ (coming soon) triggers.md
docs/dependencies/ (coming soon) data-contracts.md
docs/dependencies/ (coming soon) configuration.md
docs/dependencies/ (coming soon) constraints.md
docs/contracts/ (coming soon) user-input-schema.md
docs/contracts/ API Result of LOGYCA or another use case
docs/metadata-sticky-notes/ (coming soon) decisions.md
docs/metadata-sticky-notes/ (coming soon) map.md
docs/metadata-sticky-notes/ references.md
docs/rules/ email-validation-rules.md
docs/rules/ (coming soon) email-validation-rules-schema.md
docs/rules/ (coming soon) numeric-validation-rules.md
docs/ (coming soon) README.md
docs/ CHANGELOG.md