When food is eaten, Sensory Cells in the stomach detect the presence of Peptides. Other sensory receptors detect that the Stomach is distending (I.e., stretching). This causes other Stomach cells to release Gastrin into the blood.
Gastrin travels the blood and finally reaches other cells in the Stomach that produce Gastric Juices (which takes about 1 minute), and stimulates the release of Gastric Juices.
Most digestion of food occurs in the Duodenum. The Acid Chyme seeps in from the Stomach and is first neutralized. Secretin mediates the neutralization by stimulating the release of Sodium Bicarbonate by the Pancreas.
The presence of Amino Acids or Fatty Acids in the Duodenum also triggers the release of Cholecystokinin (CCK) which stimulates the release of digestive enzymes by the Pancreas and Bile by the Gallbladder.
A fourth hormone, Enterogastrone / Gastric Inhibitory Peptide (GIP), slows the process of digestion by inhibiting Stomach peristalsis and acid secretion when Acid Chyme that is rich in Fats (which require additional digestion time) enters the Duodenum.