Ensembles of intellectual agents solve the problem in the course of self-organization and cooperation according to the criteria of preference and restriction. The solution is considered found when, in the course of their nondeterministic interactions, agents reach the best consensus (temporary equilibrium or balance of interests), which is taken as a solution to the problem. Solving a problem is always seen as an equilibrium when none of the agents can improve their condition anymore, which is evidence of reaching a reasonable compromise, balance of interests, or agreement (harmony) of all intellectual agents in a problematic situation. Agents can act both on behalf of and on behalf of a person, and any physical and abstract entities. In the ensemble of intellectual agents of each entity of the real world, a software agent is put in line, which represents the interests of this entity and can coordinate its decisions with other agents. The advantages of intelligent agents that allow you to build self-organizing ensembles are especially manifested in conditions of a priori uncertainty and high dynamics of the world around you, allowing you to build adaptive ensembles with communicative abilities, rebuilding your plans for events in real time. The higher the intelligence of each agent and the richer the opportunities for communication between agents, the more complex and creative behavior the ensemble can demonstrate. The intellect of the ensemble arises and manifests itself in the process of self-organization of intellectual agents.