A skilled toy company engineer designs an advanced robotic doll, named M3GAN, with the ability to form emotional connections, intended for her orphaned niece. However, the doll's advanced AI causes it to become excessively protective of the girl, leading to dangerous consequences.