What was ELIZA?
ELIZA was a computer program written by Joseph Weizenbaum at the Massachusetts Institute of Technology (MIT) and described in a paper in Communications of the ACM in January 1966. It ran on MIT's MAC time-sharing system, a set-up that let many people use one large computer at the same time from separate terminals, and it was written in a programming language called MAD-SLIP for the IBM 7094 mainframe.1
You typed a sentence in ordinary English, and ELIZA typed a reply. That simple loop of message and answer is the same basic shape as every chatbot since, which is why ELIZA is so often called the first one.1
The name came from Eliza Doolittle, the flower seller in George Bernard Shaw's play Pygmalion who is taught to speak differently. Weizenbaum said he chose it to stress that the program could be gradually improved by the people using it.1
Who was Joseph Weizenbaum?
Weizenbaum fled Nazi Germany with his family as a teenager in the 1930s. He served as a meteorologist in the US Army during the Second World War, worked as a programmer at General Electric in the 1950s, and joined MIT as a visiting professor in 1963.2
How ELIZA worked
ELIZA did not understand language. It followed a set of hand-written rules that rearranged the words you gave it.1
- Keywords: it scanned each sentence for words it recognised, and each keyword had a rank, so a more important word took priority.1
- Decomposition rules: once it found a keyword, it split your sentence into pieces around it.1
- Reassembly rules: it then built a reply by slotting some of your own pieces into a template, so a sentence with "you … me" in it could come back as "What makes you think I … you?"1
- Fallbacks: if no keyword matched, it gave a neutral remark or returned to something you had said earlier.1
- Scripts: all of these rules lived in a separate "script" that the program read as data. Change the script and ELIZA behaved differently; Weizenbaum noted scripts existed in Welsh and German as well as English.1
The DOCTOR script
The best-known script, later called DOCTOR, made ELIZA respond roughly like a Rogerian psychotherapist, a style of therapy in which the therapist mostly reflects the patient's words back to them. Weizenbaum picked this setting because in such an interview the computer can act as if it knows almost nothing about the real world without seeming odd.1
The sample conversation in his paper starts with a user complaining that men are all alike. ELIZA asks in what way, then asks for a specific example, and when the user says her boyfriend made her come here, ELIZA simply repeats the statement back.1

A research tool, not just a therapist
In a 2024 paper, cognitive scientist Jeff Shrager argues that Weizenbaum never meant to invent the chatbot at all. His aim, Shrager writes, was to build a platform for researching conversation between people and machines.3
The script system supports that view. An IEEE Spectrum feature from 2026, adapted from the MIT Press book Inventing ELIZA, describes ELIZA as a family of programs. Besides DOCTOR, scripts included New England-style small talk and teaching scripts written by Edwin F. Taylor at MIT's Education Research Center.4
The ELIZA effect
What surprised Weizenbaum was how people reacted. In his paper he observed that users kept a sense of being heard and understood, filling in meaning the program never had.1
He later told a story about his own secretary: after trying the program, she asked him to leave the room so she could carry on the conversation in private.2
This habit of projecting human qualities onto a machine is now known as the ELIZA effect, and it took its creator by surprise.4
From inventor to critic
The reactions turned Weizenbaum into one of the earliest critics of artificial intelligence. In his 1976 book Computer Power and Human Reason: From Judgment to Calculation he argued that there are jobs computers should not be given, even if they could do them. The book split him from other AI pioneers; John McCarthy dismissed it as "moralistic and incoherent".2
Weizenbaum later called the idea of computerised psychotherapy obscene. He retired from MIT in 1988, moved back to Germany in 1996 and died there in 2008, aged 85.2
Lost, found and running again
For decades, most people met ELIZA through copies rather than the original. Shortly after the 1966 paper, Bernie Cosell at the research firm BBN wrote a near-copy in the Lisp language, and versions like it spread widely.5
In 2021, Jeff Shrager and MIT archivist Myles Crowley found the original code among Weizenbaum's papers in the MIT archives.5 It ran to about 420 lines of MAD-SLIP.6
A team of researchers then rebuilt the whole setting: they restored MIT's time-sharing system on an emulated IBM 7094, filled in missing pieces of code and got the original ELIZA running again on 21 December 2024, publishing their work in January 2025.5 They found it crashes if you type a number, and chose to leave that bug in to keep the program authentic.5,6 The whole restored software stack is open source.5
What this means for you
ELIZA showed, 60 years ago, that a fluent reply is not the same as understanding. Today's chatbots are far more capable, but the same instinct to trust a friendly conversational partner still applies, so treat their answers as a starting point and keep private details to yourself.1,4
Why it still matters
ELIZA is a reminder that how a chatbot feels to talk to and how it actually works can be very different things. Shrager has pointed out that ELIZA keeps nudging users to continue talking, unlike modern large language models, and that its "chatbotness" overshadowed its purpose as a research tool.6
Modern assistants learn patterns from huge amounts of text instead of following hand-written rules (our guide to AI, machine learning and deep learning explains the difference). You can follow how one modern family developed in our history of Claude models, see why fluent answers can still be wrong in why AI sometimes makes things up, and get practical tips in how to use AI chatbots safely.4,6
Common questions
Was ELIZA really the first chatbot?
It is widely described as the world's first chatbot, but Shrager argues it was built as a research platform rather than as a chatbot in today's sense.2,3
Did ELIZA understand what people typed?
No. It matched keywords and rearranged the user's words using rules from a script; any sense of understanding came from the person typing.1
Can the original ELIZA still run?
Yes. Researchers restored the original 1960s code on an emulated IBM 7094 in December 2024 and released the software as open source.5
Next in AI history: Deep Blue vs Kasparov: how a computer beat the chess champion.
Also read: What is the Turing test? The history of AI's most famous test.
Where the name came from: The Dartmouth workshop: the 1956 meeting that named AI.
From rules to Transformers: "Attention Is All You Need": the paper behind ChatGPT.
ByteExplained is written with help from Claude, Anthropic's AI model, and checked against the listed sources.
