De / Activate Workflow node

The idea is simple:

to be able to activate / deactivate a workflow by triggering a node (Kinda like the execute workflow) instead of doing it manually.

I’m talking about this button:
Screenshot 2021-12-16 at 19.16.03

My use case:

And this is exactly what I picture.

So we could have workflow activated or deactivated on specific trigger.

Some workflows got Cron or Interval nodes and have to be active to run.
I wanna be able to activate/deactivate those workflows on specific conditions.

Someone filling up a form or whatever. So I won’t have to go on n8n to do it manually.

I’m sick of having some interval workflows executing endlessly because I have to turn them off manually…

There is a workaround for this by calling the n8n API with the HTTP node. Try this

Workflow JSON
6 Likes

Wow @pemontto !!

Thanks, it works like a charm! :pray:

Now I can’t wait to see this being implemented.

For now, I’ll just tweak this a bit so I can use this as a sub workflow and can call it with the Execute Workflow node :+1:

1 Like

I am trying to do the same thing, but I am not able to authenticate. I created an API key and entered my base URL but I am still getting the error that it is unable to connect. Can someone explain how to set up the credentials?