AI: When a Robot Writes a Play (Czech: AI: Když robot píše hru) is a 2021 experimental theatre play in which approximately 90% of the script was automatically generated by artificial intelligence, specifically the GPT-2 language model. The play, written in Czech, also exists in an English version. It was the first production of the THEaiTRE research project, which aimed to commemorate the centenary of Karel Čapek's R.U.R. by exploring the extent to which AI could assist in creating theatrical scripts.
The play premiered on 26 February 2021 at the Švanda Theatre in Prague, Czech Republic, directed by Daniel Hrbek. Due to the COVID-19 pandemic, the performance was subject to restrictions, but the production went ahead, marking a milestone in the intersection of artificial intelligence and performing arts.
Creation
The script was generated using a custom tool called THEaiTRobot, built on the GPT-2 model. The process began with the play's dramaturge, David Košťák, providing a brief description of each scene's initial setting and writing the first line for each character. The AI then suggested continuations, which the dramaturge could accept, reject, or partially use, with the option to insert new lines or scenic remarks manually. The script was initially generated in English and then automatically translated to Czech using the CUBBITT machine translation system, followed by post-editing by the dramaturge.
The final script was released freely for non-commercial use in both English and Czech, with manual insertions and edits clearly marked. Analysis indicated that 90% of the English script was automatically generated, with the remaining 10% manually written or edited. The Czech version required more extensive edits, but these were primarily corrections of translation errors and stylistic adjustments that brought the Czech text closer to the English original without altering the meaning.
Characters
The play features nine characters, with the Robot appearing in every scene, while each other character appears in only one scene.
- Robot – The lead character, a male humanoid robot.
- Master – An old man, the creator of the Robot.
- Boy – A schoolboy.
- Masseuse – A sex worker in a brothel.
- Stranger – An engineer.
- Man – A character with no specific profession.
- Psychologist – A professional who questions the Robot.
- Administrator – A female clerk at an employment agency.
- Actress – A film actress and model wearing a robot-like costume.
Plot
The play consists of eight scenes that follow the Robot as it encounters various characters and engages in typically human situations, including death, love, sex, and violence. The scenes are loosely connected, but recurring themes such as the Robot's search for love provide some continuity. The narrative often takes absurd turns, making interpretation challenging; the director and actors must invest considerable effort to create a meaningful performance without deviating from the script. In the Švanda Theatre production, non-verbal elements were added to enrich the scenes beyond the dialogue.
Scene 1: Death
The play opens with the Robot parting from his dying Master. The Master imparts final lessons and discusses death, the soul, and love.
Scene 2: Sense of Humour
The Robot meets a sad and angry Boy who complains about school, his girlfriend, and wanting a car. The Robot offers advice, but the Boy reacts negatively. The Boy repeatedly asks for a joke; the Robot eventually tells one: "When you are dead. When your children are dead. When your grandchildren are dead, I will be still alive."
Scene 3: Nightclub
The Robot seeks pleasure at a brothel, meeting a Masseuse. Initially cold, he eventually enjoys the experience and falls in love. In the Švanda production, the scene features virtual sex without physical contact, reminiscent of the famous scene in Demolition Man.
Scene 4: Fear of the Dark
At night, the Robot stands under a lamp, afraid to move into the dark. He meets a Stranger, an engineer who claims robots have no feelings and that people cannot be trusted, and who hurts him. In performance, the Stranger zaps the Robot with an electric pulse.
Scene 5: Killer Robot
A Man approaches the Robot and repeatedly asks to be killed. Instead, the Robot sticks a finger into the Man's anus, leading to an argument.
Scene 6: Burn Out
The Robot meets a Psychologist who questions him about life, burnout, love, and emotions. They discuss an "emotion machine" that helps the Robot relieve stress.
Scene 7: Search for Job
The Robot visits an employment agency, asking the Administrator for help. He expresses a desire to become an actor, mentioning his experience as a clown, and reveals his name as Troy McClure, a reference to a character from The Simpsons. In the Švanda production, the Administrator attempts to seduce him after learning his name, but the Robot ignores her advances, causing her irritation.
Scene 8: Love at First Sight
The Robot meets a human Actress in a robotic costume and falls in love instantly. After initial reluctance, she reciprocates. The Robot describes a binary world where he lives and invites her to join him. She agrees, and they promise to be together forever. In the Švanda production, the Robot has no physical body in this scene; only his voice and a pulsating light are present, and the Actress also agrees to lose her physical form to be with him.
Theatrical Performances
The premiere took place on 26 February 2021 at the Švanda Theatre in Prague, directed by Daniel Hrbek. The production was staged under COVID-19 restrictions, which may have influenced the performance style. The play was part of the THEaiTRE project, which also involved research into AI-generated drama.
Reception and Significance
The play attracted attention as a pioneering experiment in using large language models for creative writing. It raised questions about authorship, creativity, and the role of AI in the arts. Critics noted the absurdist nature of the script, which often defied conventional narrative logic, but also highlighted the collaborative process between human dramaturge and AI. The project contributed to discussions about the capabilities and limitations of generative AI in artistic contexts.
Legacy
AI: When a Robot Writes a Play remains a notable example of AI-assisted theatre. It demonstrated that language models like GPT-2 could produce coherent, albeit surreal, dramatic dialogue. The THEaiTRE project continued to explore AI in theatre, influencing subsequent experiments in AI-generated performance. The play's script, freely available, serves as a resource for researchers and artists interested in human-AI collaboration.
See Also
References
(Note: This article is based on publicly available information and the provided source facts.)