TLDR: A new multi-agent AI architecture called TACLA (Transactional Analysis Contextual LLM-based Agents) has been developed to create psychologically realistic simulations for training, particularly in education. By modeling AI agents with distinct Parent, Adult, and Child ego states based on Transactional Analysis theory, TACLA can simulate complex social dynamics like conflict escalation and de-escalation. Experiments show it effectively trains teachers to understand and respond to student behaviors, offering a safe environment for developing crucial social-emotional skills.
Simulating the intricate nuances of human social dynamics has long been a significant hurdle for artificial intelligence. While Large Language Models (LLMs) have made strides in generating human-like conversation, they often fall short in capturing deep psychological understanding and consistent persona behavior, which are crucial for effective training tools.
A new research paper introduces TACLA (Transactional Analysis Contextual LLM-based Agents), a novel Multi-Agent architecture designed to address these limitations. Developed by Monika Zamojska and Jarosław A. Chudziak from the Warsaw University of Technology, TACLA integrates core principles of Transactional Analysis (TA) to create AI agents with remarkable psychological depth. You can read the full research paper here: TACLA: An LLM-Based Multi-Agent Tool for Transactional Analysis Training in Education.
Understanding Transactional Analysis (TA)
Transactional Analysis, a psychological theory by Eric Berne, offers a structured model for understanding personality and interpersonal communication. Its central concept revolves around three distinct ego states: Parent, Adult, and Child. Each state represents unique patterns of thinking, feeling, and behaving:
- Parent Ego State: Reflects behaviors, thoughts, and emotions adopted from parental figures, often authoritative or nurturing.
- Adult Ego State: Grounded in present reality, responding logically and rationally to the current situation.
- Child Ego State: Consists of behaviors, emotions, and thought patterns from early childhood experiences, often impulsive or emotional.
Effective communication, or ‘complementary transactions,’ occurs when responses align with the expected ego state. ‘Crossed transactions’ happen when responses come from a different state, disrupting communication flow. TA also introduces concepts like ‘life scripts’ (unconscious plans guiding behavior) and ‘drivers’ (internal messages affecting behavior).
TACLA’s Innovative Approach
TACLA models each AI agent as an orchestrated system of these distinct Parent, Adult, and Child ego states. Each ego state possesses its own ‘Contextual Pattern Memory,’ storing learned behavioral patterns relevant to its function. An ‘Orchestrator Agent’ acts as the central intelligence, prioritizing which ego state to activate based on contextual triggers and the agent’s predefined ‘life script,’ ensuring psychologically authentic responses.
The platform utilizes GPT-4.1 mini for all LLM components. The Orchestrator and Adult Ego State Agents are configured with a lower ‘temperature’ for consistent, logical decision-making, while Parent and Child Ego State Agents have a higher temperature to allow for greater creativity and variability in emotional responses. Each ego state agent is implemented as a ReAct (Reasoning and Acting) agent with specific prompts tailored to its TA characteristics and access to a dedicated vector store (FAISS) for retrieving relevant past patterns.
Application in Teacher Training
The research validates TACLA in an educational scenario, specifically for teacher training. Teachers often lack sufficient opportunities to practice crucial social-emotional skills like conflict resolution and relationship-building. While AI cannot replace human teachers, it can provide a safe, simulated environment for skill development.
The platform allows teachers to interact with virtual student agents, observe their ego state shifts, and receive instant feedback. After an interaction, a ‘Feedback Generation Module’ analyzes the dialogue, identifying probable ego states of both teacher and student, instances of complementary or crossed transactions, potential psychological games, and opportunities for more effective communication strategies. This RAG-augmented LLM agent provides expert-level analysis based on TA theory.
Experimental Validation
The study designed a scenario involving two student agents: Emma (a ‘Critical Parent Persecutor’ with perfectionist tendencies) and Jacob (an ‘Adapted Child with Victim Tendencies’). Jacob’s failure to complete a task triggers Emma’s frustration, creating a conflict requiring teacher intervention.
Two teacher intervention strategies were tested:
- Adult-to-Adult Intervention: A logical, problem-solving approach.
- Controlling Parent Intervention: An authoritative, judgmental approach.
The results were compelling. Adult-to-Adult interventions significantly de-escalated conflict and successfully activated the Adult ego state in both student agents. In contrast, Controlling Parent interventions consistently led to conflict escalation, reinforcing problematic ego state patterns (Emma moving to defensive Child responses, Jacob remaining in a victim stance).
The evaluation also showed high conversational credibility, with an average realism score of 7.633 out of 10, demonstrating TACLA’s capacity to create dynamic, psychologically-grounded social simulations.
Also Read:
- Simulating Online Communities: When AI Agents Learn to Connect
- Simulating the Market: How AI Agents Uncover Consumer Secrets
Future Implications
TACLA represents a significant advancement in developing effective AI tools for education and beyond. While ethical considerations regarding potential biases in LLMs are acknowledged, the platform is intended as a practice ‘sparring partner’ for teachers, not a definitive source of truth. Future work includes integrating reinforcement learning for long-term psychological evolution of agents and incorporating more advanced TA concepts like ‘strokes’ and ‘trading stamps.’ Beyond teacher training, the TACLA model holds potential for other domains requiring psychologically nuanced social simulations, such as leadership development and therapeutic practice.


