Image copyright Getty Images

Taylor Swift tried to sue Microsoft over a chatbot which posted racist messages on Twitter, the president of the tech company has revealed.

Taylor's lawyers made a move on Microsoft in 2016, according to a new biography by its boss Brad Smith.

She was unhappy with the name of its chatbot Tay, meant to interact with 18 to 24-year-olds online, because it was similar to hers.

If you don't remember TayTweets, it's the Twitter chatbot that turned racist.

What was TayTweets?

TayTweets was controlled by artificial intelligence and was designed to learn from conversations held on social media.

But shortly after Tay was launched, it tweeted to say it supported genocide and didn't believe the holocaust happened - among other things.

Microsoft issued an apology and took Tay offline after less than 18-hours of offensive conversations on Twitter.

Media playback is unsupported on your device Media caption Donald Trump and Taylor Swift's political views do not align... as he sums up in this video

Taylor Swift's legal action wasn't about what the chatbot had said online, but instead about the similarity to her own name.

"I was on vacation when I made the mistake of looking at my phone during dinner," Brad Smith writes in his new book, Tools and Weapons, reports the Guardian.

Image copyright Getty Images Image caption Brad Smith is the president of Microsoft

"An email had just arrived from a Beverly Hills lawyer who introduced himself by telling me: 'We represent Taylor Swift, on whose behalf this is directed to you.'

"'The name Tay, as I'm sure you must know, is closely associated with our client'," he adds. "No, I actually didn't know, but the email nonetheless grabbed my attention."

He says the lawyer argued that the name Tay violated federal and state laws and "created a false and misleading association between the popular singer and our chatbot".

Taylor's trademarks

Taylor and her legal team are pretty strict on people who come too close to the singer and her intellectual property rights.

Her name, signature and initials are already trademarks and in 2015 she attempted to trademark lyrics from her album, 1989.

Just before the record was released she successfully filed to make sayings like "this sick beat" and "nice to meet you, where you been" trademarks.

This made sure she was the only person in the world able to use sayings like these on merchandise - and threatened Etsy sellers with legal action in 2015 for using them on their homemade products.

Radio 1 Newsbeat has contacted Taylor Swift's representatives for comment.

Follow Newsbeat on Instagram, Facebook, Twitter and YouTube.

Listen to Newsbeat live at 12:45 and 17:45 weekdays - or listen back here.