The textbook N=1 supergravity has an F-term potential depending on a superpotential W (zi) and a Kähler potential \( K\left({z}^i,{\overline{z}}^{\overline{i}}\right) \) , with the scalar potential \( V\left({z}^i,{\overline{z}}^{\overline{i}}\right) \) = eK(|DW|2 − 3|W|2). In this approach, it is not always easy to find the potential \( V\left({z}^i,{\overline{z}}^{\overline{i}}\right) \) with the required properties. We show that in supergravity with a nilpotent superfield and with any Kähler potential \( K\left({z}^i,{\overline{z}}^{\overline{i}}\right) \) one can obtain any desired potential \( V\left({z}^i,{\overline{z}}^{\overline{i}}\right) \) by a proper choice of the Kähler metric of the nilpotent superfield. This construction is particularly suitable for cosmological and particle physics applications, which may require maximal freedom in the choice of kinetic terms and scalar potentials.