AI doesn't work after packing games

In your project folder, under Source/[Your project name]/ there should be a file called [Your project name].build.cs. This file defines module dependencies for your project. Can you please post the contents of that file and we can see if you’re missing the AI module.