How to activate the behavior tree of an AI spawned in game mode

When I place the AI ​​in the level and run it, the behavior tree works fine.
However, when I spawn the AI ​​in the BeginPlay function of the game mode, it spawns, but the behavior tree does not work.
How can I activate the spawned AI’s behavior tree?

In your Pawn BP check the option Auto Posess AI.

Thank you so much!!!