Lost circulation problems may result in a significant downtime, a considerable reduction of the rate of penetration, or even well control problems. Despite advances in manufacturing lost circulation materials (LCMs), some formations, like heavily fractured carbonates, have complete losses during drilling. We develop smart LCMs using shape memory polymers (SMPs), and program them thermo-mechanically to satisfy size limitations imposed by bottomhole assemblies (BHA). Elevated downhole temperatures act as an external trigger to recover the permanent shape of LCMs, which could expand ten times larger than the temporary (programmed) dimensions for deployment. Smart LCMs are a combination of various material categories such as granular, fibrous (one-dimensional or 1-D) and planar (two-dimensional or 2-D) configurations that resume to the original shape after exposure to high temperatures. The LCMs form different structures such as flatted pellet, disc-shaped, spider-shaped, and spindled, which, respectively, presents grains, 1-D fibers, 2-D stars, and 2-D lattices after recovery. A combination of the above categories attempt to build three-dimensional (3-D) plugging capabilities across various sized fractures.