An Amazon spokesperson said: “We have content guidelines governing which books can be listed for sale, and we have proactive and reactive methods that help us detect content that violates our guidelines, whether AI-generated or not.

“We invest significant time and resources to ensure our guidelines are followed, and remove books that do not adhere to those guidelines.”

An SNP spokesperson said none of the books were accredited biographies of Swinney, Yousaf or Sturgeon and that “many of the claims” in them were untrue.

They added: “People should be aware of the risk of misinformation and disinformation online.”

Both the Scottish and UK governments have spoken of the positive impact AI technology could have on efforts to improve public services – such as the NHS.

However, writers and publishers have expressed fears about the impact of generative AI programs, such as ChatGPT, on the creation of new literature and books.

And with Scottish Parliament elections looming in May 2026, there have also been warnings about AI fuelling disinformation potentially being used to disrupt elections.