Almost all actions you make in the game will affect the immune system, but killing cells, being eaten by a macrophage, and making large amounts of units are the best ways to trigger an Immune response.