There's an additional question: who holds the copyright on the output of an algorithm? I don't think that is copyrightable at all. The bot doesn't really add anything to the output, it's just a fancy search engine. In the US, in particular, the agency in charge of Copyrights has been quite insistent that a copyright can only be given to the output if a human.
So when an AI incorporates parts of copyrighted works into its output, how can that not be infringement?