HIFI instrument onboard the Herschel satellite provided an unprecedented number of detections of rotational transitions of ammonia in circumstellar envelopes of evolved stars including massive red supergiants, Asymptotic Giant Branch (AGB), and post-AGB stars. The chemistry of ammonia formation in the circumstellar envelopes of evolved stars is poorly understood. The mechanisms proposed for its formation are processes behind the shock front, photochemistry in the inner part of the clumpy envelope, and formation on dust grains. We present results of the non-local thermodynamical equilibrium (non-LTE) radiative transfer modeling of ammonia transitions, mainly of the ground-state rotational one NH3 JK = 10 – 00 at 572.5 GHz, in selected AGB stars, aiming at the quantitative estimation of the NH3 abundance. The model of ammonia includes IR radiative pumping via v2 = 1 vibrational band at 10 μm.