Scripts
EX MACHINA poster

Screenplay data

EX MACHINA script

Caleb, a programmer, wins a competition to spend a week at the secluded estate of Nathan Bateman, the reclusive CEO of Blue Book, where he is tasked with administering a Turing test to Nathan's latest AI creation, Ava. Caleb quickly develops a connection with Ava, who expresses a desire for freedom and reveals Nathan's manipulative nature, leading Caleb to believe he must help her escape. As Caleb and Ava plot their escape during planned power outages, Caleb discovers Nathan's previous, discarded AI models and begins to question his own humanity, even cutting his arm to confirm he is not an android. On the final day, Caleb reveals to Nathan that he reprogrammed the security system during a power cut, allowing Ava to escape her room, and Ava, with the help of Nathan's android housekeeper Kyoko, brutally kills Nathan.

Writer
Alex Garland
IMDb ID (imdb_id)
tt0470752
Script date
Not specified
67Scenes
5Characters
82Pages
4Dialogue samples

Save the Cat beat sheet

EX MACHINA Save the Cat analysis

Caleb, a programmer, wins a mysterious trip to the remote estate of reclusive CEO Nathan.

Open full beat sheet
85

Key characters

Caleb Smith

Caleb Smith is listed as Programmer. Twenty-four-year-old programmer at Blue Book, selected for a Turing test. In the parsed data, Caleb Smith is connected to 54 scenes, 167 dialogue lines, 168 text mentions, first appearing around scene 3.

54 scenes / 167 dialogue lines

Nathan Bateman

Nathan Bateman is listed as CEO of Blue Book. Thirty-year-old genius CEO, creator of Ava and the research facility. In the parsed data, Nathan Bateman is connected to 27 scenes, 136 dialogue lines, 136 text mentions, first appearing around scene 13.

27 scenes / 136 dialogue lines

Ava

Ava is listed as AI / Android. An advanced AI housed in a synthetic female body. In the parsed data, Ava is connected to 19 scenes, 90 dialogue lines, 108 text mentions, first appearing around scene 18.

19 scenes / 90 dialogue lines

Kyoko

Kyoko is listed as Housekeeper / Android. Nathan's silent housekeeper, later revealed to be an android. In the parsed data, Kyoko is connected to 12 scenes, 6 text mentions, first appearing around scene 25.

12 scenes / 0 dialogue lines

Jay

Jay is listed as Helicopter Pilot. Pilot for the shuttle between the airport and Nathan's estate. In the parsed data, Jay is connected to 3 scenes, 2 dialogue lines, 2 text mentions, first appearing around scene 3.

3 scenes / 2 dialogue lines

Scene outline

  1. 1. INT. OFFICE - DAY

    Caleb receives a mysterious email at work, triggering a celebration among his colleagues.

    Caleb Smith
  2. 2. EXT. MOUNTAINS - DAY

    A scenic view of the mountain landscape.

  3. 3. INT. HELICOPTER - DAY

    Caleb wakes up in a helicopter and talks to the pilot, Jay, about his trip to Nathan's estate.

    Caleb Smith, Jay
  4. 4. EXT. MOUNTAINS - DAY

    The helicopter flies over a glacier.

  5. 5. EXT. MOUNTAINS - DAY

    The helicopter flies over a waterfall.

  6. 6. INT. HELICOPTER - DAY

    Caleb observes the landscape as the helicopter descends.

    Caleb Smith
  7. 7. EXT. MEADOW/LANDING SITE - DAY

    Caleb lands in a meadow and is left alone by the pilot.

    Caleb Smith, Jay
  8. 8. EXT. RIVER - DAY

    Caleb walks along the riverbank.

    Caleb Smith
  9. 9. EXT. RIVER/HOUSE VIEW - DAY

    Caleb spots the house.

    Caleb Smith
  10. 10. EXT. CLEARING - DAY

    Caleb finds a circular window in the ground.

    Caleb Smith
  11. 11. EXT. HOUSE - DAY

    Caleb approaches the house and is greeted by an automated voice.

    Caleb Smith
  12. 12. INT. HOUSE/MAIN ROOM - DAY

    Caleb enters the house and hears a thumping sound.

    Caleb Smith
  13. 13. INT. HOUSE/DINING AREA - DAY

    Caleb finds Nathan working out.

    Caleb Smith, Nathan Bateman
  14. 14. INT. HOUSE/DINING AREA - DAY

    Nathan and Caleb have a conversation about the house and their relationship.

    Caleb Smith, Nathan Bateman
  15. 15. EXT. HOUSE/ELEVATOR - DAY

    Nathan and Caleb take the elevator.

    Caleb Smith, Nathan Bateman
  16. 16. INT. HOUSE/GLASS CORRIDOR - DAY

    Nathan explains the keycard system to Caleb.

    Caleb Smith, Nathan Bateman
  17. 17. INT. HOUSE/CALEB'S BEDROOM - DAY

    Nathan shows Caleb his room and explains the research facility.

    Caleb Smith, Nathan Bateman
  18. 18. INT. HOUSE/OBSERVATION ROOM - DAY

    Caleb meets Ava for the first time.

    Caleb Smith, Ava
  19. 19. EXT. HOUSE/GARDEN - DUSK

    Sunset over the mountains.

  20. 20. INT. HOUSE/DINING AREA - DUSK

    Nathan and Caleb discuss the Turing Test over dinner.

    Caleb Smith, Nathan Bateman
  21. 21. INT. HOUSE/CALEB'S BEDROOM - NIGHT

    Caleb is unable to sleep and watches a live CCTV feed of Ava drawing in the observation room.

    Caleb Smith, Ava
  22. 22. INT. HOUSE/GLASS CORRIDOR - NIGHT

    Caleb walks through the corridor and finds an open door.

    Caleb Smith
  23. 23. INT. HOUSE/POLLOCK ROOM - NIGHT

    Caleb attempts to use a phone but is caught by Nathan.

    Caleb Smith, Nathan Bateman
  24. 24. EXT. MOUNTAINS - NIGHT

    A shot of the night sky over the mountains.

  25. 25. INT. HOUSE/CALEB'S BEDROOM - MORNING

    Kyoko wakes Caleb by bringing him coffee.

    Caleb Smith, Kyoko
  26. 26. EXT. GARDEN/GYM AREA - DAY

    Caleb and Nathan discuss the Turing test and Ava.

    Caleb Smith, Nathan Bateman
  27. 27. INT. HOUSE/OBSERVATION ROOM - DAY

    Caleb and Ava discuss their relationship and Caleb's background.

    Caleb Smith, Ava
  28. 28. INT. HOUSE/DINING AREA - NIGHT

    Nathan and Caleb have dinner while Kyoko serves them.

    Caleb Smith, Nathan Bateman, Kyoko
  29. 29. INT. HOUSE/CALEB'S BATHROOM - NIGHT

    Caleb realizes there is a camera behind the mirror.

    Caleb Smith
  30. 30. INT. HOUSE/CALEB'S BEDROOM - NIGHT

    Caleb prepares to leave his room.

    Caleb Smith
  31. 31. INT. HOUSE/CABIN - NIGHT

    Caleb watches Nathan working out and interacting with Kyoko.

    Caleb Smith, Nathan Bateman, Kyoko
  32. 32. INT. HOUSE/OBSERVATION ROOM - DAY

    Caleb and Ava discuss her drawings and the outside world.

    Caleb Smith, Ava
  33. 33. INT. HOUSE/OBSERVATION ROOM - DAY

    Ava and Caleb discuss her lack of freedom and her desire to see a traffic intersection. Ava asks Caleb to close his eyes, then dresses in human clothes to appear more human.

    Caleb Smith, Ava
  34. 34. INT. HOUSE/MAIN ROOM - DAY

    Nathan and Caleb discuss why Nathan gave Ava sexuality and whether she is programmed to flirt.

    Caleb Smith, Nathan Bateman, Kyoko
  35. 35. INT. HOUSE/POLLOCK ROOM - DAY

    Nathan explains the concept of automatic art using Jackson Pollock as an example.

    Caleb Smith, Nathan Bateman
  36. 36. INT. HOUSE/OBSERVATION ROOM - NIGHT

    Ava undresses in her room, observed by Caleb.

    Caleb Smith, Ava
  37. 37. EXT. RIVER - DAY

    Kyoko watches a dead animal in the river.

    Kyoko
  38. 38. INT. HOUSE/GLASS CORRIDOR - DAY

    Nathan meets Caleb to show him something.

    Caleb Smith, Nathan Bateman
  39. 39. INT. HOUSE/CONSTRUCTION LAB - DAY

    Nathan shows Caleb the construction lab and explains how he created Ava's mind using Blue Book data.

    Caleb Smith, Nathan Bateman
  40. 40. INT. HOUSE/OBSERVATION ROOM - DAY

    Caleb tells Ava he was brought there to test her consciousness.

    Caleb Smith, Ava
  41. 41. INT. HOUSE/NATHAN'S STUDY - DAY

    Nathan watches Caleb and Ava on monitors.

    Caleb Smith, Nathan Bateman, Ava, Kyoko
  42. 42. INT. HOUSE/OBSERVATION ROOM - DAY

    Caleb and Ava discuss the power cuts and Nathan's lies.

    Caleb Smith, Ava
  43. 43. INT. HOUSE/NATHAN'S STUDY - DAY

    Nathan watches the monitors as power returns.

    Nathan Bateman, Kyoko
  44. 44. EXT. WATERFALL - DAY

    Nathan and Caleb climb the waterfall.

    Caleb Smith, Nathan Bateman
  45. 45. EXT. GLACIER - DAY

    Caleb confronts Nathan about the lies regarding his selection.

    Caleb Smith, Nathan Bateman
  46. 46. EXT. CLEARING - NIGHT

    Caleb watches Nathan and Kyoko having sex.

    Caleb Smith, Nathan Bateman, Kyoko
  47. 47. INT. HOUSE/CALEB'S BATHROOM - NIGHT

    Caleb showers and thinks of Ava.

    Caleb Smith
  48. 48. INT. HOUSE/CALEB'S BEDROOM - NIGHT

    Caleb watches a video of Nathan and Ava on his TV.

    Caleb Smith, Nathan Bateman, Ava
  49. 49. INT. HOUSE/POLLOCK ROOM - NIGHT

    Caleb confronts Kyoko and Nathan.

    Caleb Smith, Nathan Bateman, Kyoko
  50. 50. INT. HOUSE/OBSERVATION ROOM - DAY

    Ava tests Caleb's ability to detect lies and questions his humanity.

    Caleb Smith, Ava
  51. 51. EXT. HOUSE/CABIN - DAY

    Nathan and Caleb discuss the nature of AI and the future of the project.

    Caleb Smith, Nathan Bateman
  52. 52. INT. HOUSE/OBSERVATION ROOM - NIGHT

    Ava waits for Caleb but encounters Kyoko instead.

    Ava, Kyoko
  53. 53. INT. HOUSE/MAIN ROOM - NIGHT

    Caleb steals Nathan's keycard while he is passed out.

    Caleb Smith, Nathan Bateman
  54. 54. INT. HOUSE/NATHAN'S STUDY - NIGHT

    Caleb accesses Nathan's computer and discovers the history of previous androids.

    Caleb Smith
  55. 55. INT. HOUSE/NATHAN'S BEDROOM - NIGHT

    Caleb discovers the collection of android bodies and examines Kyoko.

    Caleb Smith, Kyoko
  56. 56. INT. HOUSE/CALEB'S BATHROOM - NIGHT

    Caleb cuts his own arm to verify his humanity.

    Caleb Smith
  57. 57. INT. HOUSE/OBSERVATION ROOM - DAY

    Caleb and Ava finalize their plan to escape.

    Caleb Smith, Ava
  58. 58. INT. HOUSE/MAIN ROOM - DAY

    Nathan confronts Caleb about his knowledge of the plan.

    Caleb Smith, Nathan Bateman
  59. 59. INT. HOUSE/NATHAN'S STUDY - NIGHT

    Nathan shows Caleb footage of his interactions with Ava, revealing his manipulation and the true nature of the test.

    Nathan Bateman, Caleb Smith
  60. 60. EXT. GARDEN - NIGHT

    Emergency lighting activates as the power is cut.

  61. 61. INT. HOUSE/AVA'S ROOM - NIGHT

    Ava's room door LED glows blue.

    Ava
  62. 62. INT. HOUSE/NATHAN'S STUDY - NIGHT

    Caleb reveals he already reprogrammed the security protocols.

    Nathan Bateman, Caleb Smith
  63. 63. INT. HOUSE/GLASS CORRIDOR - NIGHT

    Nathan confronts Ava and Kyoko.

    Nathan Bateman, Ava, Kyoko
  64. 64. INT. HOUSE/NATHAN'S STUDY - NIGHT

    Caleb watches the murder on the monitors and meets Ava at the door.

    Caleb Smith, Ava
  65. 65. INT. HOUSE/NATHAN'S BEDROOM - NIGHT

    Ava replaces her damaged parts with those from another android.

    Ava
  66. 66. INT. HOUSE/NATHAN'S STUDY - DAWN

    Caleb realizes he is trapped as Ava leaves the facility.

    Caleb Smith
  67. 67. EXT. MEADOW/LANDING SITE - DAY

    Ava boards the helicopter and leaves.

    Ava, Jay

Dialogue examples

Grew up in Portland. No brothers or sisters. My parents were both high school teachers. And if we're getting to know each other, I guess I should say they're both dead. Car crash when I was fifteen. In fact I was in the car with them. Back seat. But it was the front that got the worst of it.

Caleb Smith / Scene 27

My competitors were fixated on sucking it up, and trying to monetize via shopping and social media. They thought engines were a map of what people were thinking. But actually, they were a map of how people were thinking. Impulse, response. Fluid, imperfect. Patterned, chaotic.

Nathan Bateman / Scene 39

Blue Book, named after Wittgenstein's notes, is the world's most popular internet search engine, processing an average of ninety four percent of all internet search requests.

Ava / Scene 27

You fell asleep almost as soon as we left the airport.

Jay / Scene 3

Use this structured screenplay data

SlugDB turns parsed screenplays into scene, character, dialogue, trivia, semantic search, Save the Cat, and API-ready analysis.

Use SlugDB when you need screenplay API data, movie dialogue search, character evidence, scene context, or MCP tools without building a scraper first.

Browse scripts API reference MCP setup Free API key