How to install and configure AI features step by step

First you install the plugin following Install plugins on a self-hosted site with GitHub - discourse/discourse-ai

Then you configure an OpenAI LLM as Configure API Keys for OpenAI