Trial and error. The programming and coding apps that robots come with nowadays are very accessible and are often designed for learning on the go. The easiest way to get your robot to do what you want it to do is to simply have a go and see what happens. It might be worth engaging with the online community where you will find loads of people sharing hints and tips on how to get the most out of your robot toy.