> For the complete documentation index, see [llms.txt](https://docs.convai.com/api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin-beta-overview/getting-started/setup.md). Agents can also search and read this documentation through its [MCP server](https://docs.convai.com/api-docs/~gitbook/mcp).

# 设置

配置凭据，并选择你想如何测试 Convai：示例或你自己的场景。

## 简介

安装完成后，配置 Convai API 密钥，然后通过以下任一方式验证集成：

* Convai 的 **示例场景**，或使用你自己的 **自定义场景设置**

## 概述

* **配置 API 密钥** *（必需）*

{% content-ref url="/pages/d2850f9a80d2e4d01e73f7443606f1a372fc0a29" %}
[配置 API 密钥](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin-beta-overview/getting-started/setup/configure-api-key.md)
{% endcontent-ref %}

* **导入并运行示例场景** *（最快的验证方式）*

{% content-ref url="/pages/879353f362c48bb5bba26c156ac1adad76b9a361" %}
[导入并运行示例场景](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin-beta-overview/getting-started/setup/import-and-run-sample-scenes.md)
{% endcontent-ref %}

* **自定义场景设置** *（集成到你的场景中）*

{% content-ref url="/pages/e0ad75ed70b30998d9aad999e815e78edb79416d" %}
[自定义场景设置](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin-beta-overview/getting-started/setup/custom-scene-setup.md)
{% endcontent-ref %}

* **添加聊天 UI** *（可选，文本输入和对话记录）*

{% content-ref url="/pages/ad50efa50c0b86db931678eb67333e50b359075c" %}
[添加聊天 UI（转录 UI）](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin-beta-overview/getting-started/setup/add-chat-ui-transcript-ui.md)
{% endcontent-ref %}

* **为角色添加口型同步** *（可选，实时面部动画）*

## 推荐流程

1. 配置 API 密钥
2. 导入并运行示例场景
3. （可选）设置自定义场景
4. （可选）添加聊天 UI
5. （可选）为角色添加口型同步

### 总结

现在可以配置项目并运行首次对话测试了。请先从 **配置 API 密钥**.

{% hint style="info" %}
**需要帮助吗？** 如有疑问，请访问 [**Convai 开发者论坛**](https://forum.convai.com/).
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unity-plugin-beta-overview/getting-started/setup.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
