"The X Factor" judge will reportedly play Dani, a New York City based struggling artist and a friend of Rachel (played by actress Lea Michele), reports tvline.com.
It is also said that Lovato,21, will appear in six episodes of the show.
"Glee" will mark her first acting role since her Disney Channel series "Sonny with a Chance" that went off air two-years-ago.
In pictures: Bend it like Mumbai yogini Natasha Noel
Photos: Varun, Taapsee, Jacqueline promote 'Judwaa 2' on 'Dance Plus 3'
Instagram's newest sensation: Check out these photos of Bruna Abdullah
Photos: This is how Chitrangda Singh looks without make-up
Photos: Malaika Arora parties wearing see-through lace dress