This n8n workflow automates the deployment of workflows to an n8n instance using files stored on Google Drive. It streamlines the process of importing, tagging, and activating workflows, making it ideal for teams managing multiple workflows across a shared platform.
The process begins with the Google Drive trigger node monitoring a specific ‘ToDeploy’ folder for new JSON workflow files. When a new file is detected, the workflow downloads the JSON file and extracts the workflow data. It then cleans the JSON to include only necessary fields, ensuring that the import process is smooth.
Next, the workflow sets variables for the n8n instance URL and a specific tag ID, which help in organizing and categorizing the workflows once imported. Using the n8n API, it creates a new workflow on the target n8n instance with the imported JSON data. After successfully creating the workflow, it assigns a predefined tag to it for easy management.
Finally, the JSON file is moved from the ‘ToDeploy’ folder to a ‘Deployed’ folder on Google Drive, indicating successful deployment and keeping the deployment process organized. This workflow provides a robust solution for automating workflow deployments, especially useful in environments where workflows are frequently updated and deployed.
This setup is practical for automation teams, agencies, or any organization that needs to manage multiple n8n workflows efficiently and with minimal manual intervention.
Reviews
There are no reviews yet.