The gastrointestinal tract facilitates food digestion, with the gut microbiota playing pivotal roles in nutrient breakdown and absorption. However, the microbial molecules and downstream signaling pathways that activate food digestion remain unexplored. Here, by establishing a food digestion system in C.elegans, we discover that food breakdown is regulated by the interaction between bacterial outer membrane proteins (OMPs) and a neural-immune pathway. E.coli OmpF/A activate digestion by increasing the neuropeptide NLP-12 that acts on the receptor CCKR. NLP-12 is homologous to mammalian cholecystokinin, known to stimulate dopamine, and we found that loss of dopamine receptors or addition of a dopamine antagonist inhibited OMP-mediated digestion. Dopamine and NLP-12-CKR-1 converge to inhibit PMK-1/p38 innate immune signaling. Moreover, directly inhibiting PMK-1/p38 boosts food digestion. This study uncovers a role of bacterial OMPs in regulating animal nutrient uptake and supports a key role for innate immunity in digestion.