Skip to main content
O

Olek

2
Workflows

Workflows by Olek

Workflow preview: Activate and deactivate workflows on schedule using native n8n API
Free intermediate

Activate and deactivate workflows on schedule using native n8n API

## How it works This workflow will activate and deactivate a selected other workflow on schedule. > ⚠️ Warning! > This approach **won't work for trial users** as it requires n8n API that is not available to trial users. > See [https://docs.n8n.io/api/](https://docs.n8n.io/api/) for details. ## Set up steps 1. Adjust activation/deactivation **schedule** per your needs. [Custom (cron) interval](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.scheduletrigger/#custom-cron-interval) is a recommended approach. 2. Set targeted **Workflow ID**. You will find it in the URL of the workflow you want to manage. ![img](https://community.n8n.io/uploads/default/original/3X/8/a/8aa6297de2cffb3de23c221aee62065610525f5f.png) 3. Set **n8n API credentials**: - Create an API key: [how to](https://docs.n8n.io/api/authentication/) - Create n8n credentials using the API key: [how to](https://docs.n8n.io/credentials/add-edit-credentials/#create-a-credential) This workflow uses **[n8n node](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.n8n/)**. #DevOps #workflow-management --- ## Other useful stuff Need a universal Error workflow to **catch both execution and trigger errors**? Here you go: [Error handling: Send email via Gmail on execution or trigger-level errors](https://n8n.io/workflows/3075-error-handling-send-email-via-gmail-on-execution-or-trigger-level-errors/) More stuff [by Olek](https://n8n.io/creators/olek/) and do not forget to backup your workflows often by [automating](https://n8n.io/workflows/?q=Backup).

O
Olek
DevOps
20 Mar 2025
1535
0
Workflow preview: Error handling: Send email via Gmail on execution or trigger-level errors
Free intermediate

Error handling: Send email via Gmail on execution or trigger-level errors

This error handling workflow emails detailed notifications on workflow execution and trigger errors. It extends [Send email via Gmail on workflow error](https://n8n.io/workflows/696-send-email-via-gmail-on-workflow-error/) template by covering trigger-level errors. --- ### Features - Get notifications on both main workflow trigger and execution time errors. - Subject line will have failed workflow id, name, error source (execution or trigger), error message. - Body will contain links to **both** failed and error handling workflows as well as execution or trigger-level error details. - Body will also contain a machine readable and enriched JSON from `Error Trigger` describing the error. Use this **error handling workflow** for as many workflows as you need. --- ### Configiration - Copy this workflow to your workspace and, optionally, move it under the project that contains your main workflow - In this **error handling workflow** settings, set **This workflow can be called by** as appropriate - In `Config` node, define your app url, notifications recipient email, and sender name (useful to build filters in your inbox) - In `Gmail` node, create and select **credentials** - In your **main workflow** settings, pick this error handling workflow in the **Error Workflow** field ([How to...](https://docs.n8n.io/flow-logic/error-handling/#create-and-set-an-error-workflow)) --- ### Related resources - [n8n Error Trigger](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.errortrigger/) documentation. --- ### Author - Reach out [Olek](https://community.n8n.io/u/olek/summary) on community.n8n.io - [Olek](https://n8n.io/creators/olek/) on n8n creators hub

O
Olek
DevOps
4 Mar 2025
2180
0