Combining Triggers and Tasks to Automate Workflows