G4NSJ – Receiver RF gain control. What is it for? AGC slow fast off for AM or SSB?

G4NSJ HOME PAGE

What is the RF gain control for on a communications receiver? What does the AGC do? Should it be set to slow, fast or off? Which is best for AM or SSB reception?