# AI-Agent

This section mainly introduces how to add digital humans in spatial scenes, with the following two methods available for adding digital humans:

## Adding digital humans via AI generation <a href="#adding-digital-humans-via-ai-generation" id="adding-digital-humans-via-ai-generation"></a>

Click on "Create Project With AI"

<figure><img src="https://927781369-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHrVdUcaH53vO66ubVk8a%2Fuploads%2FP4yiDy28E5TMChaNmEhC%2FAI01.png?alt=media&#x26;token=c759bb20-28f6-4c56-a5fa-a0e8f694f5a9" alt=""><figcaption></figcaption></figure>

Click to enter the UI interface, set the "Name", "Size", and "Prompt" for the AI-created Space.

<figure><img src="https://927781369-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHrVdUcaH53vO66ubVk8a%2Fuploads%2FaOqZfGp6H7K4bUhDLjlc%2FAI02.png?alt=media&#x26;token=3fcab50c-cd84-418d-affe-31be904192a1" alt=""><figcaption></figcaption></figure>

Set the "AI Avatar Background" for the AI Avatar, then click "Create".

<figure><img src="https://927781369-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHrVdUcaH53vO66ubVk8a%2Fuploads%2FCl6sWsXho4eFHGdpUu9B%2FAI03.png?alt=media&#x26;token=322cd61a-206e-4485-9f13-a9c0894870d8" alt=""><figcaption></figcaption></figure>

Press the F5 key to run your space. When your avatar approaches the AI digital human, an "chat ICON" will appear on the interface.

<figure><img src="https://927781369-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHrVdUcaH53vO66ubVk8a%2Fuploads%2FQgbDjcxZVCFLzjV9ElQO%2FAI04.png?alt=media&#x26;token=f947be09-863c-4380-ad5f-95bb799d32f3" alt=""><figcaption></figcaption></figure>

Click on it to start communicating with the digital human based on the background information you entered for the AI digital human.

## Adding Digital Human To Your Space <a href="#adding-digital-human-to-your-space" id="adding-digital-human-to-your-space"></a>

To add digital humans to your space, enter the space scene you created and click on "Character" --> "Universal" to display many AI digital human models.

<figure><img src="https://927781369-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHrVdUcaH53vO66ubVk8a%2Fuploads%2Fm1S78PUviMcT01tGAZwo%2FAI06.png?alt=media&#x26;token=da9edbdf-2e31-463d-87cc-677495f8819a" alt=""><figcaption></figcaption></figure>

There are numerous AI digital humans for you to choose from.

<figure><img src="https://927781369-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHrVdUcaH53vO66ubVk8a%2Fuploads%2FoRcowGrEwSwWBY93HxJ4%2FAI07.png?alt=media&#x26;token=ba71d92e-bfff-4ea9-bd57-87fa5b4c6301" alt=""><figcaption></figcaption></figure>

Select the digital human you want in "Universal", then click on the location within the space scene where you want to place them; if the position is off, you can locate the "Move" icon in the "Toolbox" to adjust it.

<figure><img src="https://927781369-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHrVdUcaH53vO66ubVk8a%2Fuploads%2FQWzc0yiAakz0Ib52NN5s%2FAI08.gif?alt=media&#x26;token=5a4f0073-3a59-4356-86e1-8b888c77771e" alt=""><figcaption></figcaption></figure>

In the "Project Manager", locate the AI digital human you added (usually at the bottom), left-click to pop up the "Properties" UI.

<figure><img src="https://927781369-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHrVdUcaH53vO66ubVk8a%2Fuploads%2FoC7ZjKir9m03wnlsXUX5%2FAI09.png?alt=media&#x26;token=be628236-8d53-4429-9001-2d0c582dbbe9" alt=""><figcaption></figcaption></figure>

In the "Properties" UI, click on "AI Chat", then click on the "Edit ICON".

<figure><img src="https://927781369-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHrVdUcaH53vO66ubVk8a%2Fuploads%2FC7j14k0B8ngg70l853tS%2FAI10.png?alt=media&#x26;token=01660203-6d5e-4236-91e5-6b832745eb31" alt=""><figcaption></figcaption></figure>

An AI Chat interface pops up, fill in the information according to the interface prompts, and click on "Set" when finished.

<figure><img src="https://927781369-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHrVdUcaH53vO66ubVk8a%2Fuploads%2Fy5iZf7a47Nox8MN8g6ur%2FAI11.png?alt=media&#x26;token=4d779b0b-c791-4463-8547-e6d6abc25eff" alt=""><figcaption></figcaption></figure>

Press the F5 key to run the space scene, and you can start communicating with the digital human based on the background information you entered for the AI digital human. When you're out of ideas, AI Chat will be a great assistant!


---

# 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://metasy.gitbook.io/metasy-studio-tutorial/tutorial-contents/installation-and-getting-started/ai-agent.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.
