In order to promote a more dynamic and flexible communication between the learner and the system, we integrate five kinds of adaptive agents in emotional framework. We focus on human facial characteristics to develop general-purpose agents that can recognize human emotion and create emotional framework with the implications of peer-to-peer technology. Emotions play an important role in cognitive processes and specially in learning tasks. Online learning is no exception. Detecting a learner's emotional reaction for a given situation is an essential element for every e-learning system. In this paper a system for identifying facial expressions by using facial features is presented, it can recognizes 6 basic emotional expressions (happiness, sadness, surprise, fear, anger, and disgust).