> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gladecore.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Step 1: Configure your Player Character

> Getting your character set up to use our plugin only takes a few simple steps. Feel free to also take a look at our Demo Character for a fully configured example.

1. **Add the Glade Core Component**:
   * Open your player character Blueprint.
   * Click + Add in the Components panel and search for `GladeCoreComponent`. Add it to the character. This will automatically add all the necessary sub-components that are configurable within this component.
   <Frame>
     <img src="https://mintcdn.com/gladestudio/2LGHj5aP9G1PlE7r/images/unreal/UE_AddGladeCoreComponentToCharacter.png?fit=max&auto=format&n=2LGHj5aP9G1PlE7r&q=85&s=1f7021a6a5474f4df1a920ec1110d6a9" alt="UE Add Glade Core Component To Character" width="383" height="270" data-path="images/unreal/UE_AddGladeCoreComponentToCharacter.png" />
   </Frame>
2. **Configure the LLM Component**:
   * In the Components panel, select the GladeCore `LLMComponent` that was just added.
     * Under the Chat category, assign your `UChatInputWidget` Blueprint to the `ChatInputWidgetClass` property.
     * Under the LLM category, you will find the `LLMServiceManager` instance. This is where you configure the core AI service.
   <Frame>
     <img src="https://mintcdn.com/gladestudio/2LGHj5aP9G1PlE7r/images/unreal/UE_GladeCoreComponent-LLMComponent.png?fit=max&auto=format&n=2LGHj5aP9G1PlE7r&q=85&s=c715a14e1887909030ba8330638d94e4" alt="UE Glade Core Component LLM Component" width="677" height="298" data-path="images/unreal/UE_GladeCoreComponent-LLMComponent.png" />
   </Frame>
   * Select the appropriate template handler based on the model you are using. By default, use `Auto Detect Template Handler`, which inspects the loaded GGUF filename and automatically applies the correct chat template. See [here](/files/supported-models) for a list of models we support and the corresponding templates to use.
   <Frame>
     <img src="https://mintcdn.com/gladestudio/7nkxtFUHBGCkfO_V/images/unreal/UE_LLMComponentTemplateHandler_AutoDetect.png?fit=max&auto=format&n=7nkxtFUHBGCkfO_V&q=85&s=b86ce46664d6d5e0b340cc5f33dd30bf" alt="UE LLM Component Template Handler Auto Detect" width="621" height="208" data-path="images/unreal/UE_LLMComponentTemplateHandler_AutoDetect.png" />
   </Frame>
3. **GPU Layer Offloading**
   * In the `LLMServiceManager`, the `GPU Layers` integer controls how many model layers are offloaded to the GPU. This lets you tune VRAM usage vs. performance.
   * **Values**:
     * **999 (default):** All layers on GPU - maximum performance, requires enough VRAM for the full model
     * **0:** CPU only - no GPU used, slowest but works on any machine
     * **1-N:** Partial offload - first N layers on GPU, remainder on CPU (useful for limited VRAM)

## **Example: LLM Component**

Below is an example image of a configured `LLMComponent` using Piper for TTS.

<img src="https://mintcdn.com/gladestudio/Vn5ruDBoQYriEYyn/images/unreal/UE_LLMComponentExample.png?fit=max&auto=format&n=Vn5ruDBoQYriEYyn&q=85&s=81393caa14be1c36c8dbe181681c489d" alt="LLM Component Example Pn" width="1006" height="925" data-path="images/unreal/UE_LLMComponentExample.png" />

## **Example: Speech Chat Component**

Below is an example image of a configured Speech Chat Component.

<img src="https://mintcdn.com/gladestudio/h2bO1bOlECnU2Pg4/images/unreal/UE_SpeechChatComponentExample.png?fit=max&auto=format&n=h2bO1bOlECnU2Pg4&q=85&s=31e057c24be90c0cacaccd3dea256a7f" alt="Speech Chat Component Example Pn" width="705" height="271" data-path="images/unreal/UE_SpeechChatComponentExample.png" />

## **Example: Enable or Disable STT and TTS**

Below is an example image of where to enable or disable Speech to Text and Text to Speech.

<img src="https://mintcdn.com/gladestudio/h2bO1bOlECnU2Pg4/images/unreal/UE_EnableDisableTTS_STT.png?fit=max&auto=format&n=h2bO1bOlECnU2Pg4&q=85&s=c258dc777f966cca4a9a8a5f1468f10b" alt="Enable Disable TTS STT Pn" width="675" height="220" data-path="images/unreal/UE_EnableDisableTTS_STT.png" />
