i. The lone pair of electrons on nitrogen atom facilitates complexation of ammonia with transition metal ions.
Thus,
Ammonia is a good complexing agent as it forms complex by donating its lone pair of electrons.

ii. This reaction is used for the detection of metal ions such as Cu2+ and Ag+.