create an agent workflow