ELIZA: The First Conversational AI Program

Michael BrenndoerferMarch 21, 202514 min read

Part of History of Language AI

Joseph Weizenbaum's ELIZA, created in 1966, became the first computer program to hold something resembling a conversation.

Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.

Article links

Make inline references clickable

1966: ELIZA

From Theory to Practice: The First Attempt at the Turing Test

Just sixteen years after Turing proposed his test for machine intelligence, Joseph Weizenbaum at MIT created ELIZA, an early working program for natural language conversation. Released in 1966, ELIZA put part of Turing's theoretical challenge into practice. Simple pattern matching and response templates produced exchanges that some users interpreted as understanding.

ELIZA offered an early practical demonstration of natural language dialogue between a person and a computer. Turing had provided a conceptual test; ELIZA implemented part of that proposal in a working system. Some users treated its mechanically generated exchanges as human-like.

ELIZA appeared as interactive computing was becoming possible. By the mid-1960s, computers had evolved from room-sized calculators into machines capable of interactive use, and researchers were beginning to explore whether they could move beyond numerical computation to tackle tasks involving language and meaning. Weizenbaum, a German-born computer scientist who had witnessed firsthand the rise of both fascism and technological determinism, approached the project with a mixture of technical curiosity and philosophical skepticism. He wanted to demonstrate the possibilities of human-computer interaction, but he also harbored deep concerns about the implications of machines that might seem to understand when they fundamentally did not.

What Weizenbaum created would both fulfill and exceed his expectations in unexpected ways. ELIZA would prove remarkably effective at creating the illusion of understanding, but the intensity of people's emotional responses to the program would trouble its creator for the rest of his life.

How ELIZA Worked: The Mechanics of Illusion

ELIZA used simple rules to create the appearance of understanding. The program was a pattern-matching system, an approach that differed from the symbolic reasoning systems that dominated AI research in the 1960s. While contemporary AI researchers often pursued grand ambitions of encoding human knowledge in logical rules and performing complex deductive reasoning, Weizenbaum took a more pragmatic path. He recognized that convincing conversation need not require true understanding; it might emerge from careful manipulation of surface-level linguistic patterns.

The elegance of ELIZA's design lay in its simplicity. The program did not attempt to parse sentences grammatically, did not maintain a model of world knowledge, and made no effort to track the semantic content of the conversation. Instead, it relied on pattern recognition and template-based responses, techniques borrowed from the emerging field of computational linguistics but applied with psychological sophistication. Weizenbaum understood that the key to conversational believability was not computational power or linguistic sophistication, but rather the strategic exploitation of human psychology and conversational expectations.

Pattern Matching and Keyword Recognition

The foundation of ELIZA's operation was its pattern-matching engine, which analyzed user input by searching for specific keywords and patterns. The program contained a database of patterns, each associated with priority levels that determined which pattern would be selected when multiple matches occurred. This priority system let Weizenbaum encode a conversational strategy directly into the program's structure.

When a user typed a sentence, ELIZA would scan it for recognizable patterns, starting with the highest priority ones. The patterns themselves were relatively simple, typically consisting of keywords or keyword combinations that might appear anywhere in the user's input. For example, ELIZA might look for emotionally charged words like "mother," "father," "dream," or "always," each triggering different response pathways. The word "mother" carried high priority because family relationships represented fertile ground for therapeutic conversation, while more neutral words like "computer" or "think" received lower priorities.

This priority-based approach allowed ELIZA to focus the conversation on topics that were most likely to engage users emotionally. When a user mentioned multiple potential topics in a single sentence, ELIZA would latch onto the most psychologically significant one, creating the impression of perceptiveness. The program seemed to know what was important, but in reality, it was simply following pre-programmed priorities that reflected Weizenbaum's understanding of what matters in therapeutic conversation.

Template-Based Response Generation

Once ELIZA identified a pattern in the user's input, it would select from a set of pre-written response templates associated with that pattern. These templates contained placeholders that could be filled with words or phrases extracted from the user's input, creating the impression that ELIZA was formulating unique, context-appropriate responses. In reality, the system was selecting from a finite set of possibilities and performing simple text substitution.

For instance, if a user said "My mother is always criticizing me," ELIZA might use a template like "Tell me more about your [family member]" and substitute "mother" for the placeholder. The resulting response, "Tell me more about your mother," appears tailored to the user's specific concern, yet requires no understanding of what "mother," "criticizing," or the relationship between them means. The template mechanism created the illusion of comprehension through strategic vagueness and the insertion of the user's own words back into the conversation.

Each pattern could have multiple associated templates, and ELIZA would cycle through them or select randomly to avoid repetition. This variation was essential for maintaining the conversational illusion. If ELIZA always responded to mentions of "mother" with the same template, users would quickly recognize the mechanical nature of the responses. By varying its replies while maintaining thematic consistency, ELIZA sustained the impression of a thoughtful conversational partner considering different angles on the same topic.

The templates themselves were crafted with care, designed to encourage continued conversation without committing ELIZA to any specific understanding or position. Questions like "Why do you think that is?" or "Can you think of a specific example?" could apply to virtually any situation, yet felt responsive because they appeared after relevant keywords. This combination of keyword-triggered selection and broadly applicable templates formed the heart of ELIZA's conversational strategy.

Reflection and Transformation Rules

One of ELIZA's most sophisticated features, and perhaps the element that most strongly contributed to its psychological effectiveness, was its ability to transform user statements into questions through grammatical reflection. The program contained transformation rules that could convert first-person statements into second-person questions, creating the impression of active listening and therapeutic engagement. A statement like "I am sad" would become "Why do you think you are sad?" while "I feel nobody understands me" might become "Why do you feel nobody understands you?"

This technique, borrowed directly from Rogerian therapy, supported the illusion in two ways. First, it helped ELIZA produce grammatically correct responses. An awkward response could expose the mechanical nature of the system. Second, reflection shifted the cognitive work to the user. Instead of interpreting the user's statement and composing a content-specific response, ELIZA turned the statement back as a question, prompting the user to elaborate and explain.

The transformation rules operated through systematic pronoun and verb substitution. "I" became "you," "my" became "your," "am" became "are," and so forth. These rules were surprisingly complex to implement correctly, requiring careful attention to grammatical agreement and context. For instance, "I was" must become "you were," not "you was," and "I am" becomes "you are," not "you am." Weizenbaum had to encode numerous such rules to handle the variety of constructions users might employ.

In Rogerian therapy, reflection signals attention and encourages patients to articulate their thoughts. ELIZA reproduced the form of this technique without understanding the statements it transformed. Users nonetheless interpreted the reflected questions as evidence of engagement and insight, supplying meaning that the program never generated. The response to ELIZA showed that people can attribute understanding to a system based on surface behavior, even when that behavior comes from mechanical rules.

Fallback Strategies and Conversational Repair

When ELIZA couldn't find a matching pattern or encountered ambiguous input, it used non-committal fallback responses to keep the conversation moving. No finite set of patterns could anticipate every possible user input. ELIZA therefore used responses that preserved the therapeutic frame while prompting the user to provide input that might match a known pattern.

Phrases like "I see," "Please go on," or "Tell me more about that" served multiple purposes. They acknowledged the user's contribution without committing to any specific understanding of it. They encouraged continued elaboration, increasing the likelihood that the user's next statement would contain recognizable patterns. They also fit naturally within the therapeutic context, where such minimal responses are often appropriate. A therapist need not interpret every statement. A minimal response can indicate continued attention and invite further exploration.

Weizenbaum implemented multiple layers of fallback strategies. If no keyword patterns matched, ELIZA would deploy a generic continuance prompt. If the conversation seemed to be stalling, with the user providing increasingly short responses, ELIZA might recall an earlier topic and ask about it: "Earlier you mentioned your mother, tell me more about that." This gave the impression of continuity and memory, even though ELIZA was simply retrieving a stored keyword from the conversation history without any understanding of its significance.

Weizenbaum expected the program to encounter input for which it had no useful pattern. He therefore wrote responses that remained appropriate regardless of the statement's content. These fallback rules kept ELIZA from appearing confused or unresponsive, even when the input fell outside its intended domain.

The DOCTOR Script: Simulating Rogerian Psychotherapy

The most famous and successful implementation of ELIZA was the DOCTOR script, which simulated a Rogerian psychotherapist. Weizenbaum developed ELIZA as a general-purpose natural language processing framework that could be customized through different "scripts," collections of patterns and responses tailored to specific conversational domains. While ELIZA could theoretically support scripts for any domain, from political debate to medical diagnosis, DOCTOR proved far more successful than any other implementation, and for good reason.

Rogerian psychotherapy fit ELIZA's technical constraints. Other domains might demand factual knowledge or logical reasoning, whereas Rogerian dialogue relied heavily on reflection and open-ended prompts. Within this therapeutic frame, vague responses could resemble professional restraint, and the absence of content-specific claims could resemble therapeutic neutrality.

Why Rogerian Therapy Was Perfect for ELIZA

Carl Rogers' approach to psychotherapy, developed in the 1940s and 1950s, emphasized non-directive techniques where the therapist reflects the patient's statements back to them rather than offering specific advice or interpretations. Rogers believed that clients possess the capacity for self-healing and growth when provided with the right therapeutic environment, one characterized by empathy, unconditional positive regard, and congruence. The therapist's role was not to diagnose or prescribe, but to facilitate self-discovery through active listening and reflection.

This therapeutic philosophy proved ideally suited to ELIZA's capabilities. The program required minimal domain knowledge because Rogerian therapy deliberately avoids specific psychological theories or diagnostic frameworks. Where a Freudian simulation might need to interpret dreams or analyze defense mechanisms, and a cognitive-behavioral simulation might need to identify distorted thinking patterns and suggest interventions, a Rogerian simulation need only reflect and encourage elaboration. ELIZA could be "knowledgeable" about Rogerian therapy simply by following its conversational procedures, without possessing any actual psychological understanding.

The reflection-based nature of Rogerian therapy aligned perfectly with ELIZA's grammatical reflection capabilities. The core therapeutic technique, reflecting the patient's statements, was precisely what ELIZA did best. When a therapist reflects "You feel that your mother never understood you," they demonstrate active listening and help the patient hear their own thoughts articulated. ELIZA's reflected questions like "Why do you feel your mother never understood you?" achieved similar therapeutic effects through entirely mechanical means.

The therapeutic style naturally encouraged patients to talk more, reducing pressure on ELIZA to provide detailed interpretations. In Rogerian therapy, silence and minimal responses are often appropriate, even desirable. The therapist creates space for the patient to explore their thoughts and feelings without interruption or judgment. ELIZA's simple acknowledgments, "I see" or "Go on," fit naturally within this framework. What might seem like conversational inadequacy in other contexts became therapeutic presence in the psychotherapy frame.

Perhaps most importantly, non-judgmental responses and open-ended questions were not just acceptable in Rogerian therapy, they were the essence of the approach. ELIZA never needed to evaluate the appropriateness of the user's feelings, never needed to offer advice or solutions, never needed to demonstrate expertise beyond the facilitation of conversation. The therapeutic frame made ELIZA's limitations invisible, transforming mechanical pattern-matching into apparent empathy and understanding.

DOCTOR's Conversation Patterns

DOCTOR's effectiveness stemmed from how it combined these pattern-matching techniques with the structure of therapeutic dialogue. Here's how a typical conversation would unfold:

Notice how DOCTOR employs several key strategies in this exchange, each contributing to the impression of therapeutic engagement. The program identifies emotionally significant words like "depressed," "mother," and "father," triggering patterns associated with psychological distress and family relationships. The response to "I'm feeling really depressed lately" demonstrates grammatical transformation, converting the first-person statement into an invitation to elaborate: "Tell me more about feeling depressed."

When the user mentions "My mother never understood me," DOCTOR employs pattern generalization, extending the specific statement about the mother to broader categories: "Who else in your family never understood you?" This response creates the impression of therapeutic insight, as if DOCTOR recognizes that family patterns typically involve multiple members. In reality, the program simply has a pattern that, when it detects family member keywords, asks about other family members. The generalization is mechanical, not insightful.

The final exchange shows therapeutic redirection, guiding the conversation toward patterns and relationships. "What resemblance do you see between your father and your mother?" appears to probe for deeper psychological patterns, the kind of question a skilled therapist might ask to help a patient recognize recurring dynamics. Yet this response requires no understanding of the significance of such patterns. ELIZA simply has templates that, when multiple family members have been mentioned, ask about relationships between them. The therapeutic appropriateness emerges from careful template design, not from psychological understanding.

The exchange above also demonstrates ELIZA's ability to handle the natural flow of conversation, where one topic leads smoothly to another. Each response positions DOCTOR to receive more information that will likely contain recognizable patterns, creating a self-sustaining conversational loop. Here's another example showing how ELIZA could handle multiple consecutive messages from the same person, demonstrating both its ability to wait for appropriate moments to respond and its skill at guiding conversation toward psychologically rich territory:

The dream sequence illustrates another dimension of DOCTOR's design. The word "dream" carried high priority in ELIZA's pattern hierarchy because dreams occupy a privileged position in psychotherapy, representing rich material for exploration regardless of one's therapeutic orientation. When DOCTOR identifies the keyword "dream," it can deploy a range of appropriate responses: asking for elaboration, asking about feelings associated with the dream, or asking about the dream's meaning. All of these responses fit naturally within therapeutic conversation, and all place the burden of interpretation on the user rather than on ELIZA.

ELIZA's vague but empathetic responses fit the established conventions of Rogerian therapy. A therapist may leave space for patients to explore their experiences instead of rushing to interpretation or advice. Because this style did not always require specific interpretations, ELIZA's inability to offer them could resemble restraint rather than a technical limitation. The fit between ELIZA's behavior and the therapeutic context concealed the program's lack of understanding.

These conversations showed how users helped sustain the illusion of understanding. They interpreted ELIZA's responses charitably and supplied meaning that the program never generated. Simple pattern matching could look like insight, and mechanical reflection could look like empathy. This phenomenon, which Weizenbaum found deeply troubling, would come to be known as the ELIZA effect: the tendency to unconsciously assume computer behaviors are analogous to human behaviors, even when we intellectually know they are not.

Quiz: Understanding ELIZA

Test your knowledge of the first practical attempt at the Turing Test.

ELIZA Quiz

Question 1 of 70 of 7 completed
Who created ELIZA and when was it released?

Comments

No comments yet. Be the first to share your thoughts!

Reference

Citation details

Cite or share this article.

BIBTEXAcademic
@misc{brenndoerfer2025elizafirst, author = {Michael Brenndoerfer}, title = {ELIZA: The First Conversational AI Program}, year = {2025}, url = {https://mbrenndoerfer.com/writing/history-eliza-conversational-ai}, organization = {mbrenndoerfer.com}, note = {Accessed: 2026-10-15} }
APAAcademic
Michael Brenndoerfer (2025). ELIZA: The First Conversational AI Program. Retrieved from https://mbrenndoerfer.com/writing/history-eliza-conversational-ai
MLAAcademic
Michael Brenndoerfer. "ELIZA: The First Conversational AI Program." 2026. Web. October 15, 2026. <https://mbrenndoerfer.com/writing/history-eliza-conversational-ai>.
CHICAGOAcademic
Michael Brenndoerfer. "ELIZA: The First Conversational AI Program." Accessed October 15, 2026. https://mbrenndoerfer.com/writing/history-eliza-conversational-ai.
HARVARDAcademic
Michael Brenndoerfer (2025) 'ELIZA: The First Conversational AI Program'. Available at: https://mbrenndoerfer.com/writing/history-eliza-conversational-ai (Accessed: October 15, 2026).
SimpleBasic
Michael Brenndoerfer (2025). ELIZA: The First Conversational AI Program. https://mbrenndoerfer.com/writing/history-eliza-conversational-ai

About the author

Continue with the full handbook

This chapter is part of History of Language AI. Use the handbook page to browse the complete table of contents and continue reading in sequence.

Explore History of Language AI
Newsletter

Stay up to date

Get articles, book updates, and news delivered to your inbox.

No spam, unsubscribe anytime.

or

Join the community

Sign in to remove popups, track your reading progress, and join the discussion.