In this example, when a change happens, we have the server automatically detect it with the "Trigger a custom event when database changes" event and run the workflow.
To see exactly how it is set up, go to the "Backend workflows" page and examine the "first-name-changed" event.