A research team has developed a liquid metal-based electronic logic device that mimics the intelligent prey-capture mechanism of Venus flytraps. Exhibiting memory and counting properties, the device can intelligently respond to various stimulus sequences without the need for additional electronic components. The intelligent strategies and logic mechanisms in the device provide a fresh perspective on understanding ‘intelligence’ in nature and offer inspiration for the development of ’embodied intelligence’.