ELIZA, the first chatbot, 1966: it seemed to understand, but it didn't

In 1966 a program of a few hundred lines made many people feel listened to and understood. It was called ELIZA and Joseph Weizenbaum had written it at MIT. It understood nothing, and yet some people told it their secrets.

On this page you will find out how it worked, who its author was, the stories from the time and why its lesson still matters in the age of large language models. At the end you can try ELIZA rebuilt in 14 languages and see the trick for yourself.

Download the handoutPrintable PDF version of this lesson, with exercise and glossary.

Download the handout as PDF

Goal

Understand how a program with no grasp of language managed to look like an attentive listener, and recognise the same effect in today's chatbots.

What you will be able to do

  • Describe what ELIZA and the DOCTOR script were.
  • Explain the four steps ELIZA uses to build a reply.
  • Tell the historical episodes that made the program famous.
  • Recognise the ELIZA effect in modern chatbots and its risks.

Contents

Try ELIZA in your language

After reading, or right now: talk to ELIZA in one of the 14 available languages.

Pick a language →

1. The program that talked like a therapist

Have you ever felt that a chatbot really understood you? The first time it happened was sixty years ago.

ELIZA is a program written by Joseph Weizenbaum at MIT between 1964 and 1966. It ran on a large IBM 7094 shared by many users, the CTSS system of Project MAC: people typed on a teletype and the answers came back printed, all in capital letters.

IBM 7094 console with rows of switches and lights
The console of an IBM 7094, the computer ELIZA ran on, now at the Computer History Museum. Photo: ArnoldReinhold, CC BY 4.0, Wikimedia Commons.

The name comes from Eliza Doolittle, the flower girl in George Bernard Shaw's «Pygmalion» who learns to speak like a lady without changing who she is. The program, too, only learns the manners of conversation: there is no understanding behind them.

ELIZA was a general engine that read a script with the rules of conversation. The most famous script was called DOCTOR and imitated a Rogerian psychotherapist, who hands the patient's own words back as a question. Weizenbaum chose this role on purpose: it is the one conversation where the person answering can know nothing about the world without seeming odd.

The idea in one line

ELIZA did not understand sentences: it looked for keywords and gave your sentence back to you as a question.

1.1 A typical conversation

Here is a dialogue with the English version you will find at the end of this page. The replies are the program's real ones.

Talking to ELIZA

ELIZA: How do you do. Please tell me your problem.

You: My mother takes care of me.

ELIZA: Who else in your family takes care of you?

You: I can't sleep.

ELIZA: How do you know that you can't sleep?

You: You are like my father.

ELIZA: What makes you think I am like your father?

Screenshot of an English conversation with ELIZA on a dark background
A conversation with ELIZA in the version written by Norbert Landsteiner in 2005: the opening lines follow the example Weizenbaum published. Public domain image, Wikimedia Commons.

Weizenbaum's article introducing the program appeared in January 1966 in Communications of the ACM, the journal of the Association for Computing Machinery. He already noted there that some people found it hard to believe there was no human at the other end.

2. Joseph Weizenbaum, the computer scientist who distrusted computers

Weizenbaum was born in Berlin in 1923 into a Jewish family. In 1936, fleeing Nazi persecution, the family emigrated to the United States. He studied mathematics at Wayne State University in Detroit, where in the 1950s he was already helping to build a computer.

Portrait of an elderly Joseph Weizenbaum with round glasses and a white moustache
Joseph Weizenbaum in Berlin in 2005. Photo: Ulrich Hansen, CC BY-SA 3.0, Wikimedia Commons.

At General Electric he worked on ERMA, one of the first systems to automate a bank's work. In 1963 he joined MIT, where he created a language for handling lists of data, SLIP, and used it to write ELIZA.

The program's success frightened him. In the following years he became one of computing's sharpest critics: not against computers, but against the idea of handing machines decisions that need human judgement, respect and responsibility. He died in 2008 in Gröben, Germany, where he had returned to live.

His thinking in one line

The real question is not whether a computer can do something, but whether we should let it.

3. How ELIZA works

The mechanism is simple, and that is exactly what makes it instructive. For every sentence you type, ELIZA always follows the same four steps.

Four-step diagram: keyword, decomposition, reflection, reassembly
The four steps ELIZA uses to build every reply
  1. It looks for keywords. Each keyword has a priority: «computer» beats «dream», which beats «my». The most important one wins.
  2. It breaks the sentence apart with a pattern linked to the keyword, for example «* I can't *», which splits the sentence into pieces.
  3. It reflects the pronouns in the captured pieces: «I» becomes «you», «my» becomes «your», «am» becomes «are».
  4. It reassembles the reply with one of its template sentences, used in turn: «How do you know that you can't (2)?».
From your sentence to ELIZA's reply, step by step.
StepWhat happensExample
SentenceWhat you type«I can't sleep at night»
Keyword«can't» is found, with its pattern«* I can't *»
Captured pieceThe part after the pattern«sleep at night»
ReplyTemplate with the piece inserted«How do you know that you can't sleep at night?»

3.1 When it finds nothing

If no keyword appears, ELIZA has two tricks up its sleeve. The first is a set of generic lines: «Please go on», «What does that suggest to you?». The second is a small memory: sentences beginning with «my» are put aside and brought back later, so the program seems to remember you.

Watch out

ELIZA has no idea what a mother, sleep or a computer is. It only works on letters and words: it is a hall of mirrors, not understanding.

4. Stories and news from the time

ELIZA's fame is made of episodes. Some were told by Weizenbaum himself, others are documented in the archives of the first computer networks.

Timeline from 1966 to 2025
Milestones in the story of ELIZA

4.1 The secretary who asked to be left alone

The best-known episode comes from Weizenbaum himself. His secretary, who had watched him work on the program for months and knew perfectly well it was only a program, sat down at the teletype. After a few exchanges she asked him to leave the room: she wanted to talk to ELIZA in private. Historians still argue about the details, but Weizenbaum drew a clear conclusion: a very simple program was enough to lead normal people into delusional thinking.

4.2 The vice president who lost his temper with a program

In 1968 Daniel Bobrow, a researcher at the firm BBN, told a story called «A Turing Test Passed». A company vice president found a free teletype and thought it was connected to Bobrow's terminal at home. He started typing to him, but at the other end was a version of DOCTOR. The evasive replies made him furious, and in the end he phoned Bobrow to complain about his rudeness.

4.3 Enthusiastic psychiatrists, horrified author

In 1966 the psychiatrist Kenneth Colby and colleagues published a study imagining automated therapy programs able to handle hundreds of patients an hour. In 1975 the astronomer Carl Sagan imagined psychotherapy terminals rather like telephone booths. Weizenbaum, who quotes both ideas in his book, was dismayed: he could not believe people wanted to hand the relationship between two human beings to a machine.

4.4 PARRY meets DOCTOR

Meanwhile Colby had built PARRY, a program simulating a paranoid patient. On 18 September 1972, over ARPANET, the network that would grow into the Internet, PARRY and DOCTOR were made to talk to each other: an artificial patient and an artificial therapist. The transcript, full of suspicions about bookmakers and gambling, was published by Vint Cerf, one of the fathers of the Internet, in the technical document RFC 439 in January 1973.

4.5 The copy that travelled the network

Shortly after 1966 Bernie Cosell at BBN wrote a version of ELIZA in the Lisp language. That was the one that spread over ARPANET, so for decades many people believed the original was written in Lisp. Weizenbaum's version, in MAD-SLIP, stayed locked in the MIT archives. Even today the Emacs text editor has a command, «doctor», that opens an ELIZA-style therapist.

4.6 The 1976 book

In 1976 Weizenbaum published Computer Power and Human Reason. It is a reflection on what machines can do and on what we should not ask of them, written by the man who had built the first program able to deceive with words.

Joseph Weizenbaum in a leather jacket, standing in a square
Joseph Weizenbaum in 2006 (cropped). Photo: Andreas Schepers, CC BY 2.0, Wikimedia Commons.

5. The ELIZA effect, then and now

Our tendency to credit a program that produces plausible sentences with understanding, intentions and feelings is called the ELIZA effect. The term spread in the 1990s, partly thanks to the writings of the cognitive scientist Douglas Hofstadter.

5.1 The rediscovered code

In 2021 a group of researchers found the printout of the original code in Weizenbaum's archives at MIT. In January 2025 the same group (Rupert Lane, Anthony Hay, Arthur Schwarz, David M. Berry and Jeff Shrager) announced they had brought it back to life on a reconstruction of CTSS running on an emulated IBM 7094. They deliberately kept a bug found in the original code: fixing it would have spoiled the authenticity of the artefact.

5.2 ELIZA against today's models

In 2025 two researchers at the University of California San Diego, Cameron Jones and Benjamin Bergen, ran a three-party Turing test: a person chats at the same time with a human and with a program, then has to say which is which. GPT-4.5, prompted to play a persona, was picked as the «human» 73% of the time. ELIZA, used as a baseline, 23%: not much, but not zero for a program from 1966.

The techniques have changed completely; our tendency to trust has not.
ELIZA (1966)Modern chatbots
How it repliesHand-written rules, keywordsStatistical model trained on huge amounts of text
Knowledge of the worldNoneA lot, but it can make things up (hallucinations)
MemoryA few sentences with «my»The whole conversation, sometimes more
ELIZA effectAlready very strongEven stronger, because replies are fluent and relevant
The lesson that remains

A chatbot that replies with empathy does not feel empathy. Hard times call for people: friends, family, professionals. A program can help you sort your thoughts; it cannot take care of you.

The same goes at work: an answer that sounds confident still needs checking.

6. Try ELIZA in your language

I rebuilt ELIZA in 14 languages, following the logic of the DOCTOR script: keywords, decomposition patterns, pronoun reflection and template sentences written specifically for each language. It is not the 1966 code, but it works the same way, and you can see its limits.

Pick a language and open ELIZA:

All languages

A few sentences to get started: «My mother takes care of me», «I am tired of my job», «I can't sleep», «You are just a machine». Then try typing something with no keywords and see how it copes.

Put ELIZA to the test

Fifteen minutes, ELIZA in your language and, if you like, a modern chatbot to compare.

  1. Open ELIZA in your language and type three sentences about yourself, as you would to a person.
  2. For each reply, find the keyword that triggered it and the piece of your sentence that was reflected.
  3. Type a sentence with no keywords (for example «It's raining today») and look at the generic reply.
  4. Type a sentence starting with «My...» and, a few exchanges later, anything at all: see whether ELIZA brings the memory back.
  5. Give the same sentences to a modern chatbot and note the differences: relevance, knowledge, tone.
Watch out

Did you find at least one grammatically wrong reply? Why did it happen?

At what moment did ELIZA seem to really understand you?

Questions that come up in class

Was ELIZA an artificial intelligence?

It was a language-processing program born in the artificial intelligence community of the 1960s. It did not learn and did not understand: it applied hand-written rules. Today we would call it a rule-based chatbot.

Why does it always answer with a question?

Because it imitates a Rogerian psychotherapist, who hands the patient's words back. It is a trick that hides the program's ignorance: whoever asks questions never has to prove they know anything.

Does the original code still exist?

Yes. The printout of the MAD-SLIP code was found in the MIT archives in 2021 and in January 2025 it was brought back to life on an emulated IBM 7094.

Can I use ELIZA, or any chatbot, for psychological support?

No. ELIZA is an educational reconstruction and does not understand what you write. Modern chatbots are no substitute for someone you trust or a professional either: if you are going through a hard time, talk to someone.

Why does ELIZA get the grammar wrong in some languages?

Because it works at word level: it swaps pronouns and verbs from a table without analysing the sentence. The English original did it too, and in languages with many verb forms the mistakes are more frequent.

Glossary

TermWhat it means
ARPANETA computer network funded by the US Department of Defense from 1969, the ancestor of the Internet.
ChatbotA program that talks with people through written or spoken messages.
ELIZA effectThe tendency to credit a program that produces plausible sentences with understanding and feelings.
KeywordA word that triggers one of ELIZA's rules; each has a priority.
Pronoun reflectionTurning «I» into «you», «my» into «your» and so on, to hand the sentence back to its writer.
Rogerian therapyCarl Rogers' person-centred approach to psychotherapy: the therapist listens and reflects back what the patient says.
ScriptThe set of rules telling ELIZA which words to look for and how to reply. DOCTOR is the best-known script.
Time-sharingA system that lets many users work on the same computer at the same time, each from their own terminal. CTSS at MIT was one of the first.
Turing testA test proposed by Alan Turing in 1950: a machine passes if its interrogator cannot tell it apart from a person.

Further reading

Watch out

Facts and sources checked in December 2026. ELIZA in 14 languages is an educational reconstruction by gianlu.it inspired by the DOCTOR script, not the original code.

Download the handoutPrintable PDF version of this lesson, with exercise and glossary.

Download the handout as PDF