Our results demonstrate separate sites of action for the EGL-30 (Gαq) signaling pathway in behavioral and immune responses to infection and argue against a model in which EGL-30 (Gαq) signaling acts in a single cell to produce further secreted signals that go on to trigger behavioral and immune responses to infection. Here, GNAQ is linked to infection.