Npc random behaviour using behaviour trees

I want to create a system where the ai can perform random behaviour in the enviroment and can interact with stuff on its own and when it gets near to an other ai it should act like it started a conversation. how can i achieve such a thing in unreal engine 5.1