How to create background ecosystem like nightmare for environmental story telling?

I want to create an ecosystem similar to Little Nightmares where the main character walks along a path while background characters engage in activities. As a beginner in Unreal Engine 5, I’m curious whether the characters in the background are animations or controlled by AI. Thanks in advance for any guidance!