[a lot of citations needed]
Yes, some invertebrates have been found to execute fairly rigidly preprogrammed behavior patterns, and some reptiles as well, IIRC. But others seem to be capable of much more adaptive behaviors. And mammals? Exactly what evidence do we have that cats and dogs and horses and elephants are just mindless automata? To make such a claim certainly requires extraordinary evidence.