Best Folder Structure and Naming Convention for n8n Projects
Best Folder Structure and Naming Convention for n8n Projects
Organizing your n8n project well from the start will help you scale, onboard new developers faster, and maintain clarity over time. This guide outlines a clean folder structure and naming convention for self-hosted or collaborative n8n projects.
π Recommended Folder Structure
Hereβs a basic directory layout for your n8n project (especially useful when exporting workflows and managing multiple automations):
n8n-projects/
βββ README.md
βββ workflows/
β βββ crm/
β β βββ add-leads.json
β β βββ follow-up-emails.json
β βββ marketing/
β β βββ daily-newsletter.json
β β βββ twitter-scheduler.json
β βββ internal-tools/
β βββ employee-onboarding.json
βββ credentials/
β βββ README.md
βββ shared-snippets/
β βββ error-handler.json
β βββ log-to-database.json
βββ .env.example
π Naming Conventions
πΉ Workflows
Use the format: action-target.json
Examples:
send-welcome-email.json
scrape-news-api.json
create-github-issue.json
For subfolders, group by domain or department:
crm/
,marketing/
,support/
, etc.
πΉ Nodes
Use descriptive names inside the workflow for each node. Avoid generic ones like βSet1β or βHTTP Request 2β.
Examples:
- β
Get User Info from Stripe
- β
Format Response for Slack
- β
HTTP Request 3
β Best Practices
- Keep one major workflow per file
- Use consistent casing (kebab-case recommended)
- Export often and store in Git for version control
- Write a comment in workflows explaining the goal of the automation
π§ͺ Bonus: Git-Friendly Naming
- Use lowercase and hyphens (
-
) to avoid issues with case-sensitive file systems - Avoid spaces and special characters
- Include date suffix if necessary for versioning (e.g.
sync-hubspot-contacts-2025-07.json
)
π README Template (Optional)
You can include a README.md
in each folder to describe the workflows it contains.
Example:
# CRM Workflows
This folder contains workflows used in the CRM process:
- `add-leads.json`: Captures leads from web form
- `follow-up-emails.json`: Sends automated emails based on lead score
π§ Summary
A well-organized folder and naming structure saves time, reduces bugs, and improves collaboration. By following this guide, you make your n8n project easier to maintain, extend, and share.
π Need Help Cleaning Up Your n8n Workspace?
If your workspace is disorganized or hard to scale, I offer:
- Folder restructuring
- Naming convention implementation
- Workflow documentation
π Contact me here to streamline your automation stack.