Can I make AI npcs

so I want to know if it’s possibe to have npcs controlled by ai where u can make them imitate the player and use their voices if possible like that one backrooms game i don’t remember the name of the game but hopfuly someone knows what I mean.