How to make AI character to choose between different target locations?

I am new to unreal engine.I want an AI character to reach one target location and at that point, i have created an array of all possible locations AI can go and AI character should choose one among them.How can i make that possible?

Any help appreciated and thanks in advance.

Depends. How do you want to decide where to go?

If randomly, then just select a random element of the array and MoveTo there.

If you want an AI-like logic, considering surroundings and different parameters, then you should look into Behavior Trees and the Environment Query System.

yea, or node based if they are linked somehow. But most likely you will need to involve a behavior tree or some hard-coded blueprint logic.