Automating activities with workflows