Taylor Swift tried to block Microsoft from using the moniker Tay to a chatbot that turned into a depraved racist troll vessel, according to a new book from Microsoft President Brad Smith.

In March 2016 Microsoft introduced a new chatbot in the U.S. that was built to speak with young adults and teens on social media. According to Smith’s book Tools and Weapons, co-written by Microsoft communications director Carol Ann Browne, the company originally introduced the bot as XiaoIce in the China market, where it was used by millions and incorporated into banking, news, and entertainment platforms.

“The chatbot seems to have filled a social need in China, with users typically spending fifteen to twenty minutes talking with XiaoIce about their day, problems, hopes, and dreams,” Smith and Browne wrote. “Perhaps she fills a need in a society where children don’t have siblings?”