We discuss an approach for modeling human activities in complex real environments, considering the delivery of services as a func- tion of the semantic features of the environment and of the interaction between the users and their social networks. We propose an architecture supporting such a model, and discuss a case study about cooperative learning in a cultural heritage site.