Siteleaf, a website publishing platform, allows developers to manage their websites in the cloud. Any event within Siteleaf can be set as a trigger for your flow. Now whenever the specified event happens, the associated flow will run automatically.
To set any Siteleaf event as trigger, you first need to switch on the trigger toggle button located near the ‘Start’ icon in your flow. Then, from the list of triggers under ‘All Triggers’ on the right, drag and drop Siteleaf in to the given box.
Once you are done with this, select any event of your choice that you wish to set as trigger from the ‘Select Trigger’ dropdown options. Let us have a look at the various Siteleaf events that you can set as triggers.
New Site: This trigger instructs Built.io Flow to run the associated flow automatically whenever a new site is added to your Siteleaf account. To set this as trigger, first provide a relevant name for the trigger. Then, enter your Siteleaf’s API Key and API Secret. Once you enter these details, save the trigger and click on ‘Done’ to return to your flow.
Once you have entered all the details, 'Save' them and click on 'Done'. This will take you back to canvas.