π 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.