The Guppy Fish is built from the Lego Spike Essential educational kit. The movement is achieved by the cam transmission. Also there is the color sensor in front part: you can activate or stop the program by affecting on sensor with parts appropriate colors.
You can purchase step-by-step instruction of the Fish by the link https://roboinstruction.com/downloads/guppy-fish-lego-spike-essential/