AI is only the most recent re-telling of the ancient story of the "golem". The idea has been around way before Tolkien wrote it into his LOTR series. A golem was something that a magician would create in order to perform mundane tasks, thus presumably freeing the magician to spend his day on esoteric pursuits. In all the legends it always ends badly with the golem running amok and destroying a village, killing children, etc.
The problem is always that once we have more free time to study the non-mundane we don't. We instead invent new mundane modalities and fail to become any wiser.
AI is a brain golem and since we inevitably create in our own image it will only ever be as good (or bad) as we are as individuals. I wouldn't worry too much about a permanent takeover but the village might burn to the ground before we realize the error.
I'm all in...
As I suspect much technology has been long ago invented and forgotten as the collapse of civilizations before the inconceivable floods that raised sea level a hundred meters millenia ago, flying carpets, magic wands, crystal balls, and golem all bear resemblance to current technological development.
Given the advent of battlefield robots, and the incredible congruity with legends of golem with robotics, this is but fuel for my speculations.