Are you a little wary of workflow rules or simply want a little more flexibility to trigger custom functions when you want? A great alternative would be creating custom buttons.
Write your now-expert Deluge code and associate it to a custom button, placed where you want. Think about being able to perform the following actions with a simple click:
Learn more about Custom Buttons and possible use cases