n8n

How to Automate n8n Tag Based Folder Management?

Need a fast way to tidy your n8n workspace? This setup groups workflows into the right folders based on tags your team picks in a simple form. It helps admins keep projects clean and easy to navigate.

On each form submission, the system signs in to your n8n API, lists your tags, and checks your owned projects. It searches for a folder that matches the chosen tag, removes duplicates, and creates a new folder if none is found. It then pulls all workflows with that tag and moves them into the selected folder. The flow uses a form trigger, HTTP requests, the n8n node, batch loops, and filters to handle many items at once without extra work.

You only need your n8n base URL and an account that can read projects, create folders, and move workflows. Expect strong time savings on workspace cleanups and quicker onboarding for new teammates. Use it for tag migrations, folder standards, and regular tidy ups across projects.

What are the key features?

  • Form trigger collects selected tags and inputs from users for each run
  • HTTP login to n8n API and reuse session to call tags, projects, and folders endpoints
  • Owned projects filter ensures only your projects are updated
  • Folder search with dedupe and limit picks a single folder per tag
  • Automatic folder creation when no matching folder is found
  • Name normalization to keep folder names clean and consistent
  • Batch processing to loop through many tags and workflows safely
  • Get workflows by tag using the n8n node and move them to the target folder
  • Clear success response at the end so users know the job finished

What are the benefits?

  • Reduce manual sorting from hours to minutes by auto filing workflows into folders
  • Automate up to 90 percent of repetitive organizing work using tags from a form
  • Improve folder accuracy by removing duplicate matches and enforcing one folder per tag
  • Handle 10 times more workflows using batch loops without slowing down
  • Keep workspace structure consistent across projects with the same rules

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. Open the node named 'set credentials' and enter your n8n base URL without a trailing slash, plus the username and password used for your n8n instance.
  3. In the 'login n8n' HTTP Request node, confirm the URL points to your base URL plus /rest/login and that the email and password fields map to the values from 'set credentials'.
  4. Open the 'get tags' HTTP Request node and make sure it uses the same base URL and includes the query withUsageCount set to false.
  5. In the 'my-projects' HTTP Request node, verify the URL points to /rest/projects/my-projects and headers match your environment.
  6. Open the 'get workflows' n8n node. In the credential dropdown, click Create new credential. Follow the on screen instructions to connect your n8n account and grant access. Use a clear name for the credential.
  7. Open the 'On form submission' trigger and review the fields. Copy the Production URL if you want to share the form with your team. Submit a test once to generate sample data.
  8. Check the 'Filter owned projects' conditions to ensure it matches how your instance marks owned projects. Adjust if needed.
  9. Review 'Get folders' and confirm the filter is using the folder name from the tag. Keep the search and sort settings as provided to find the most recent match.
  10. Run a test: submit the form with one or two tags that exist on your workflows. Watch the execution and confirm folders are selected or created and workflows are moved.
  11. If you see 401 or 403 errors, verify the base URL, the login credentials, and that your account can read projects and create folders. If no folders are found, confirm the tag values match your naming rules.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.