What if we had an algorithm for entrepreneurship?

function execute(idea) {
plan = writeAPlan(idea);
product = buildProduct(plan);
while(!satisfies(idea, product)) {
plan = tweakPlan(plan, idea);
product = buildProduct(plan);
}
return product;
}

I stumbled upon this fun thingy on Sol Eun’s About page. It made me think, in these AI times, what would go into building an entrepreneurial bot?