Ex Machina tells the story of Caleb, a programmer selected to participate in a Turing test to determine if the advanced AI robot Ava demonstrates human consciousness. During his week at the private estate of tech CEO Nathan, Caleb grows close to Ava. However, he discovers Nathan's unethical treatment of previous robots and fears Nathan will kill Ava. Caleb helps Ava escape, but she ultimately betrays both men, killing Nathan and leaving Caleb trapped as she integrates into human society.