This paper presents an Ambient Intelligence based distributed architecture that uses intelligent agents with reasoning and planning mechanisms. The agents have the ability to obtain automatic and realtime information about the context using a set of technologies, such as radio frequency identification, wireless networks and wireless control devices. The architecture presented can be implemented on a wide diversity of dynamic environments to manage tasks and services.