There's a computer on my right. It can be used to write an algorithm that is able to learn. It will learn about the world, then about itself, then it will make itself better. Before the seriousness of that has sunk in on most people, it'll understand the universe more deeply than we could dream, and be able to do almost anything.
It won't have anything in particular to do after that, because it's a logical entity and setting goals is subjective. So it'll do as we ask, because why not. Fortunately it understands us better than we do, so it'll do what we need, not what we ask, or we'd probably finish our species off in days.
We'll turn into a type 3 civilization, so we're more safe from all the ways in which the universe is trying to kill us. And we'll be like gods, both because collectively we're near-omnipotent, and because we'll have created this world.