Now, broadly, I think (in my capacity as an armchair biologist) what we care about here is an nervous system, or something like it that is capable of fast communication and complex feedback loops that can be built into complex "computation". Interestingly, nervous systems aren't present in sponges, which are most likely the basal animal group (and which are immobile), but are present in all other animals. I'm therefore speculating that "able to develop a nervous system" could be the filter we care about for behavioural complexity.
Being non-photosynthetic (so more advantage to being able to move around and find food), not having cell walls (so potentially more able to be motile, and form flexible structures), as well as just whether there are existing cellular pathways that control ion gradients in a way that can be co-opted for communication (which are present in sponges) all seem like plausible things that could predispose a multicellular organism to develop nerves, but if it is a filter, it could well also be that it's really hard to develop something as complicated as nerves, and an early animal got very lucky.
Reminds me of a documentary I once watched, watching a timelapse of a vine growing upwards. It grows spiraling, and it looks like it is "looking" for where the walls are, adjusting its trajectory whenever it touches a wall.
It's fascinating, and for me it definitely does have some quality of "intelligence" to it.
Do we know what were the necessary atributes of those early multicellular organisms without which animals wouldn't be possible?