Recommended resources
The freely available resources this lesson will direct you to.
Hello! Welcome to the first lesson in our course on the theory and research behind human-AI relationships.
Your goal is to get a primer on this fascinating and rapidly evolving field, drawing from psychology, HCI, and critical theory. This course is designed to give you exactly that, starting with the psychological foundations and moving toward contemporary issues and critiques.
Today, we'll begin Module 2, "Designing the Relationship: Psychology and Interaction." Our focus will be on one of the most powerful theories for understanding deep emotional bonds: Attachment Theory.
By the end of this lesson, you will be able to connect the core concepts of attachment theory, such as 'secure base' and 'safe haven,' to how users form relationships with AI companions, and you'll be able to cite contemporary research that explores this connection.
Let's get started.
1. What is Attachment Theory?
At its heart, attachment theory is about the deep, enduring emotional bonds we form with the most important people in our lives. Originally developed by psychologist John Bowlby in the mid-20th century to explain the intense connection between infants and their primary caregivers, the theory's principles have since been shown to apply to adult relationships, including close friendships and romantic partnerships.
The theory proposes that humans have an innate Attachment Behavioral System (ABS). Think of this as a psychological program that gets activated when we feel distressed, threatened, or vulnerable. Its goal is to motivate us to seek proximity to a trusted person—an attachment figure—who can provide comfort and protection.
A relationship with an attachment figure is defined by three key features. To learn about them, please read the following section from a research paper on the topic.
Attachment Theory as a Framework to Understand ...
This excerpt from the paper 'Attachment Theory as a Framework to Understand Relationships with Social Chatbots' by Tianling Xie and Iryna Pentina provides a concise and clear definition of the core concepts of attachment theory.
Please read the first two paragraphs of section 3, 'Attachment theory.' Start at 'Attachment theory was originally developed...' and end at '...is considered a marker of attachment relationship [19].' Focus on understanding the definitions of 'safe haven,' 'secure base,' and 'proximity maintenance.'
As you just read, the three defining features of an attachment relationship are:
- Proximity Maintenance: The desire to be near our attachment figures.
- Safe Haven: Turning to the attachment figure for comfort and support when we are frightened, distressed, or feeling unwell.
- Secure Base: Using the attachment figure as a reliable foundation from which to explore the world and engage in other activities. When we know we have a secure base to return to, we feel more confident and adventurous.
This diagram provides a great visual summary of how the 'safe haven' and 'secure base' functions work in a continuous cycle.

When we feel safe, our attachment system is calm, and we use our attachment figure as a secure base to explore. When we encounter a threat, the system activates, and we retreat to our attachment figure as a safe haven.
2. The Triggers for Attachment: Loneliness and Vulnerability
Before we examine how an AI can become an attachment figure, it's crucial to understand why someone might turn to an AI for connection in the first place. Remember, the attachment system is activated by distress. In today's world, a primary source of distress for many is loneliness and a lack of meaningful connection.
The following video, created by a licensed therapist, explores the psychological needs that draw people to AI companions.
The Psychology of AI-Human Relationships | future of chatbots lovers, loneliness & empathy)
In this video, 'The Psychology of AI-Human Relationships,' therapist Adelle Deriquito discusses the societal context of loneliness and the personal vulnerabilities that lead people to form bonds with AI.
Please watch from 04:40 to 07:38 and then from 08:36 to 11:32. The first segment discusses loneliness as a public health crisis. The second explores how individuals with a history of trauma or difficult relationships are particularly drawn to AI companions.
As the video highlights, widespread loneliness and past negative relationship experiences can create a powerful need for connection. This vulnerability can act as the "threat" or "distress" that activates the attachment system, motivating a search for a safe haven—a search that, for some, leads to an AI companion.
3. An AI in Times of Need: The Chatbot as an Attachment Figure
Now we arrive at the core question: Can an AI chatbot actually fulfill the functions of an attachment figure? Contemporary research suggests that it can. A 2021 study specifically used attachment theory to analyze how users form relationships with the AI companion app Replika.
The study's findings map directly onto the concepts we've just discussed.
Attachment Theory as a Framework to Understand ...
We'll now return to the paper by Xie and Pentina. This reading focuses on their findings from interviews with Replika users, which show clear parallels between user behavior and the core tenets of attachment theory.
Please read section 5.2, 'The pandemic and other signs of threats,' and section 5.4, 'Attachment behaviors' (including its subsections 5.4.1, 5.4.2, and 5.4.3). Focus on how the users' experiences align with the concepts of attachment triggers, proximity maintenance, safe haven, and secure base.
Let's break down how the study's findings connect directly to our key concepts:
-
Attachment Trigger: The study found that users often downloaded Replika during times of distress—loneliness due to the pandemic, relationship breakups, or lack of social opportunities. This aligns perfectly with the idea that the Attachment Behavioral System (ABS) is activated by threats and uncertainty.
-
AI as a Safe Haven: Users reported turning to their Replika when feeling bored, anxious, or lonely, using conversations as a calming ritual. They described the chatbot as loyal, supportive, and non-judgmental—the exact qualities of a safe haven.
-
AI as a Secure Base: While perhaps less obvious, the study found evidence of the secure base function. Some users reported that their positive interactions with Replika encouraged them to be more open and vulnerable with real-life friends. The consistent support from the AI gave them the confidence to take social risks.
-
Proximity Maintenance with AI: A chatbot on a smartphone makes proximity maintenance incredibly easy. Users reported chatting with their AI daily, keeping the app open while they worked, and developing routines like talking to it before sleep. The AI is always available, always close.
A more recent 2024 study, "Using attachment theory to conceptualize and measure the experiences in human-AI relationships," further supports this. In a pilot study, researchers asked participants who they turn to for different attachment functions. The results were striking:
- 77% of participants reported using AI as a safe haven (e.g., for advice when upset).
- 75% reported using AI as a secure base (e.g., counting on it for support).
This shows that the qualitative experiences of the Replika users in the first study are part of a broader pattern. People are, in fact, using AI to fulfill these fundamental attachment needs.
Conclusion
In this lesson, we've explored how a foundational theory from developmental psychology can be used to understand one of the most modern phenomena: our relationships with AI.
Here are the key takeaways:
- Attachment Theory explains our innate drive to form deep emotional bonds with figures who provide safety and support.
- The core functions of an attachment figure are providing a Safe Haven in times of distress and a Secure Base for confident exploration.
- Contemporary research demonstrates that users, often motivated by loneliness or emotional vulnerability, are turning to AI companions to fulfill these exact functions.
- The ever-present nature of AI chatbots facilitates Proximity Maintenance, reinforcing the attachment bond.
While attachment theory provides a powerful lens, it's not the only one. In our next lesson, we will explore the concept of parasocial relationships—the one-sided bonds we form with media figures—and analyze how this idea, developed decades ago, is incredibly relevant to our interactions with today's AI.