The liberalization of energy markets and shift towards intensive distributed use has provoked a change in the operating paradigm of electricity distribution networks. The continuity and the reliability of the distribution networks in the context of these new paradigms require structural and functional changes. The concept of Smart Grid allows the adaptation of distribution networks to the new context. This paper proposes an architecture organized to support the power transmission system, which auto management and control. The architecture is a multi-agent one, which uses the flow algorithm for a more efficient routing. Their main aim is stocking the entire electrical grid and distributing the energy effectively and efficiently between the various producers and consumers.