Here the authors show that bacterial infection and asthma induction induce sensory neuron production of distinct neurotransmitters to dampen B cell responses but differentially target IgG and IgE, respectively, to specifically modulate the symptoms. This evidence concerns the gene IGHE and asthma.