In the context of cognitive agent programming frameworks, a main research effort accounts for exploiting goalorientation for specifying and enacting agent interaction. Existing research work focuses almost totally on direct communication models, typically based on speech-acts and FIPA ACL. In this paper we focus instead on mediated interactions, and in particular on interaction taking place in artifactbased environments, where artifacts are first-class mediating tools that are used by cognitive agents in goal-directed way. The investigation is concretely supported by integrating the Jadex platform (enrolling the Belief-Desire-Intention model of agency) with the CARTAGO technology (enabling the design of artifact based environments).