Mallory Jansen is staying in the ABC family, with a very special role on Marvel’s Agents of S.H.I.E.L.D.

TVLine has learned exclusively that the onetime Galavant queen is trading her ill-gotten crown for a belly full of circuit boards, playing the robot Aida during Season 4 of the ABC series (premiering Tuesday, Sept. 20 at 10/9c).

Previously announced S.H.I.E.L.D. castings include Jason O’Mara as the new Director, Gabriel Luna as Robbie Reyes aka Ghost Rider and Parminder Nagra as a powerful political figure who is outspoken about her distrust of Inhumans.

In addition to her reign as Madalena, Jansen’s TV credits include Young & Hungry and Baby Daddy.