Use this powerful n8n workflow to automatically activate and deactivate specific n8n workflows based on a daily schedule using the internal n8n API for optimized resource management.
Download this n8n workflow template and start using it instantly.
• Users needing strict operational hours for specific n8n workflow automation.
• n8n administrators or DevOps specialists managing internal n8n instance resource usage.
• Technical users looking for advanced n8n templates utilizing the internal API to control system operations.
Many crucial automations only need to run during standard business hours to efficiently handle incoming requests or monitor systems. Running them 24/7 can unnecessarily consume resources or clutter logs outside peak utilization times. This expert n8n workflow provides a robust solution for managing those operational windows. By leveraging the dedicated n8n node and the internal n8n API, this n8n template ensures that your critical business logic is only active when necessary. This precise, programmatic control over any target n8n workflow activity simplifies compliance requirements and optimizes the utilization of your self-hosted or cloud n8n instance. This n8n workflow utilizes two key Schedule n8n trigger points to manage the target lifecycle.
This automation utilizes two distinct, scheduled paths to control the target n8n workflow status:
Activate at 08:00 daily Schedule n8n trigger fires every morning at the designated time (08:00). It sends its data stream to a Merge n8n node, which combines the trigger data with the target workflow ID defined in the Workflow ID Set n8n node. This merged data is then passed to the n8n Activate n8n node, which uses your n8n API credentials to call the internal API and set the targeted n8n workflow to active.Deactivate at 20:00 daily Schedule n8n trigger fires every evening at the designated time (20:00). Similar to the activation path, it merges with the target workflow ID. This stream then instructs the n8n Deactivate n8n node to use the API to set the targeted n8n workflow to inactive.The use of the n8n node for API interaction ensures native, reliable control over other n8n templates within your instance.
n8n Activate and n8n Deactivate n8n node settings.Workflow ID Set n8n node. Update the default value (cGqPi5Uy2u1ShmoO in the example) with the actual ID of the n8n workflow you intend to control. This ID can be found in the URL when viewing the target workflow.Activate at 08:00 daily and Deactivate at 20:00 daily Schedule n8n trigger nodes. If your required operational hours are different from 08:00–20:00, adjust the Cron expressions accordingly. Activate at 08:00 daily (Schedule Trigger n8n trigger): Initiates the activation sequence. Key configuration: Runs daily at 08:00 (0 8 ).
Deactivate at 20:00 daily (Schedule Trigger n8n trigger): Initiates the deactivation sequence. Key configuration: Runs daily at 20:00 (0 20 ).
Workflow ID (Set n8n node): Stores the critical workflowID of the target n8n workflow. This is where you configure the specific automation being managed.
Merge in Workflow ID for activation/deactivation (Merge n8n node): Combines the data output from the Schedule n8n trigger with the target workflowID defined in the Set n8n node, ensuring the subsequent API call targets the correct automation.
n8n Activate (n8n node): Performs the activation of the target n8n workflow using the configured n8n API credential. The operation is set to activate.
n8n Deactivate (n8n node): Performs the deactivation of the target n8n workflow using the configured n8n API credential. The operation is set to deactivate.
Automate unstructured email data transformation (Gmail, Outlook) into structured JSON summaries using a specialized AI agent in this robust n8n workflow. Ideal for data extraction.

Use this essential n8n workflow template for robust error recovery. Automatically trigger on failure, retrieve full execution data, and extract the original Webhook payload for reliable debugging and reprocessing.

Use this n8n workflow to securely access data from your Bubble application's API using the HTTP Request n8n node and custom header authentication. Perfect for building custom n8n templates.

Automate ad library monitoring using this comprehensive n8n workflow. Scrape ads, filter by engagement, analyze video and image creatives using Gemini and GPT (OpenAI/Langchain n8n node), and log results to Google Sheets.

Automate Gmail responses using an advanced n8n workflow leveraging OpenAI, LangChain RAG, and Google Sheets for continuous learning and dynamic prompting. Find the best n8n templates here.


I am a **dataholic** (I trust, everything can be quantified and measured) and an **automation** enthusiast. Q of the day: Why spending 1 hour doing a routinal staff when you could spend 1 day automating it and having fun? PM me on [community.n8n.io](https://community.n8n.io/u/olek/summary) and let me know what do you think about this Q above.







































