The research described in this paper presents a social system where intelligent management helps control energy consumption in buildings. In this work we used the CAFCLA framework, which makes it possible to combine various technologies that simplify the creation of context-awareness and social computing systems. The created system is capable of influencing user behavior in a way that favors the efficient management of energy resources in the workplace. This is achieved by merging a number of techniques; Wireless Sensor Networks and Real-Time Locating Systems, along with the use of Collaborative Learning and Virtual Organizations of Agents. These artificial intelligence (AI) techniques provide a great potential for the development of serious games that foster the acquisition of good energy saving habits among workers and users in public buildings.