ToC Figure. Screening for cancer at early stages could improve disease prognosis and quality of life. Nevertheless, screening remains challenging for gastrointestinal cancers due to the limited accessibility. We report a robotic pill capable of delay opening of the collection chamber, sampling biomarkers (e.g. proteins and bacteria) from liquid samples and robust robotic control, including guidance through predetermined routes and docking against fluid flow.