: This paper present a novel technique for constructing autonomous agents using a case-based reasoning system. The reasoning model incorporates a K-SIM algorithm for the identification of the appropriate information to construct the agent plan, in execution time, using variational calculus. The proposed methodology has been used to create several agent based systems. The paper describes the methodology and outlines a case study