Demi Lovato's 'Dusk Till Dawn' Character Was Written For Her

C Flanigan/imageSPACE
Demi Lovato onstage during HOT 99.5’s Jingle Ball 2014 at Verizon Center on December 15, 2014 in Washington, D.C.

Robert Rodriguez had been waiting for a chance to work with Demi Lovato since she auditioned for his 2003 movie Spy Kids 3-D: Game Over.

The El Rey Network creator and executive producer of its TV series From Dusk Till Dawn told reporters Thursday the show was a nice fit, so a character was written specifically for the 22-year-old.

Demi Lovato's 'Cool for the Summer' Video Is Here: Watch Her Late Night Summer Rager

Aside from her personal connection to the series, which is her relationship with cast member Wilmer Valderrama, Rodriguez said, "I've always been a big fan of hers and she's on tour a lot, so when she'd come to set to visit I threw out that we'd love to put her in somewhere."

And he wanted to make sure it was an episode he directed because "she has a great personality" and "great acting chops."

Lovato posted photos of herself on set to her Instagram account earlier this month. Rodriguez was cagey about the part, which will be included in the show's second season, premiering Aug. 25 at 9 p.m. ET.

"She was fantastic. She's really got a great screen presence. If there's time for her to come back in the series she can," Rodriguez said at a TV critics gathering.

Demi Lovato 'Heartbroken' Over Death of Her Dog Buddy 

From Dusk Till Dawn is based on the 1996 film of the same name that went on to be a cult favorite. It stars D.J. Cotrona and Zane Holtz as brothers in roles made famous by George Clooney and Quentin Tarantino.