Trigger external api if workflow is changed

Describe the issue/error/question

I created workflow on n8n. I want to store workflow data in my source code in the form of file so that if n8n server crashes I will be having backup.

Is there a way to trigger webhook or something if there is any changes in workflow so that I will have most updated json in my source code. ?

What is the error message (if any)?

Please share the workflow

(Select the nodes and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow respectively)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database you’re using (default: SQLite):
  • Running n8n with the execution process [own(default), main]:
  • Running n8n via [Docker, npm, n8n.cloud, desktop app]:

Hi @harshit, there is no “workflow” has changed trigger, but you could consider just backing up your workflows to GitHub in regular intervals. This will allow you to track changes easily. Check out this example workflow from @Jon: Back Up Your n8n Workflows To Github | n8n workflow template