Code for the CHI 2026 paper: Scaffolded Vulnerability: Chatbot-Mediated Reciprocal Self-Disclosure and Need-Supportive Interaction in Couples
Echo is a Telegram-based chatbot designed to support meaningful self-disclosure between partners or close friends.
It guides users through structured conversation phases, encourages reflection on each other’s responses, and helps facilitate supportive interaction.
This repository contains the research prototype used in our study.
- Structured conversation phases for guided self-disclosure
- LLM-based responses for warm and adaptive conversational support
- Partner reflection prompts that encourage supportive engagement
- Conversation summarization during or after the interaction
- Telegram group-chat integration for two-person conversations
relational-ai/
├── main.py # Main Telegram bot logic
├── prompts.py # Prompt templates and phase instructions
├── requirements.txt # Project dependencies
├── README.md
└── .env # Local configuration file (not committed)
- Python 3.10+
- A Telegram bot token from
@BotFather - An OpenAI API key
git clone https://github.com/AMAAI-Lab/relational-ai.git
cd relational-aipython -m venv .venv
source .venv/bin/activateOn Windows:
.venv\Scripts\activatepip install -r requirements.txtCreate a .env file in the project root:
OPENAI_API_KEY=your_openai_api_key
TELEGRAM_TOKEN=your_telegram_bot_token
API_MODEL=gpt-4o
TELEGRAM_BOT_NAME=@your_bot_usernamepython main.py- Add the bot to a Telegram group chat with two users.
- Start the bot with:
/startto begin/continueto move to the next phase/pauseto pause the interaction
- Follow the prompts in the group chat.
- This repository provides a research prototype and is not intended as a production deployment.
- The bot assumes a Telegram-based, two-user conversation setting.
- Local message logs may be stored during execution; make sure these are excluded from version control.
@inproceedings{10.1145/3772318.3791370,
author = {Jiang, Zhuoqun and Yeo, ShunYi and Herremans, Dorien and Tangi Perrault, Simon},
title = {Scaffolded Vulnerability: Chatbot-Mediated Reciprocal Self-Disclosure and Need-Supportive Interaction in Couples},
year = {2026},
isbn = {9798400722783},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
url = {https://doi.org/10.1145/3772318.3791370},
doi = {10.1145/3772318.3791370},
abstract = {While reciprocal self-disclosure drives intimacy, digital tools seldom scaffold autonomy, competence, and relatedness—the motivational underpinnings defined by Self-Determination Theory (SDT) that enable deep exchange. We introduce a chatbot employing dual-layer scaffolding to satisfy these needs: first providing enabling affordances (instrumental support) for vulnerability, then mediating affordances (relational support) for responsiveness. In a randomized study (N = 72; 36 couples) comparing Partner Support (PS: both layers), Direct Support (DS: enabling only), and Basic Prompt (BP: questions only), results reveal a critical distinction. While enabling affordances (PS, DS) were sufficient to deepen disclosure, only mediating affordances (PS) reliably elicited partner-provided need support and increased perceived closeness. Furthermore, controlled motivation decreased across conditions, and scaffolding buffered vitality, which remained stagnant in BP. We contribute empirical evidence that SDT-guided mediation fosters connection, offering a practical framework for designing AI-mediated conversations that support, rather than replace, human intimacy.},
booktitle = {Proceedings of the 2026 CHI Conference on Human Factors in Computing Systems},
articleno = {1296},
numpages = {39},
keywords = {Human-human interaction, Self-disclosure, Conversational agent, Social computing, Relational technology},
location = {
},
series = {CHI '26}
}