Creating a workflow automatically