This is part of why I think we should reconsider the copyright situation with AI generated output. If we treat the human who set the bot up as the author then this would be no different than if a human had taken these same actions. Ie if the bot makes up something damaging then it's libel, no? And the human would clearly be responsible since they're the "author".
But since we decided that the human who set the whole thing up is not the author, then it's a bit more ambiguous whether the human is actually responsible. They might be able to claim it's accidental.