# Applying the UI Component

{% hint style="warning" %}
**Important:** Ensure that you have your player set up with Emerald AI before proceeding as this is required for the UI system to work properly.
{% endhint %}

## Applying the UI Component

If you haven't already done so, you will need to add the UI Component to your AI. You can do this by searching for the Emerald UI script and dragging it onto your AI.

<figure><img src="https://4021441153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv03IiZPaMe8fX49a9MnO%2Fuploads%2FE8h8ibjMHsDUqiyYbUzQ%2FAssignUIComponent(600).gif?alt=media&#x26;token=0477a420-398f-4db4-9df4-e0775da80c05" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://black-horizon-studios.gitbook.io/emerald-ai-wiki/emerald-components-optional/ui-component/applying-the-ui-component.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
