How to toggle activation workflow by telegram message?

Hey @droppe,

Quickest thing I can think of would be to use the n8n node to activate / deactivate based on the ID, So your telegram workflow would look for /toggle_workflow {id} then it would take the ID and use that in the node…

While typing this out I thought I would make an example and it didn’t take as long as I expected, This workflow will wait for /toggle-workflow and check if the user is correct as a basic form of protection then extracts the ID and uses the n8n node to toggle the workflow.

Update the username in the first If node and as a basic concept this should do the job.

2 Likes