> 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/unreal-engine/guides/actions-guide/stage-2-custom-actions/adding-descriptions-to-actions.md).

# 为动作添加描述

### 概述

本文档详细介绍了为 Convai 角色中的动作添加描述的流程，以提升 AI 对动作的理解和执行。动作描述提供上下文信息，有助于实现更准确、更符合上下文的行为。

### 为什么要添加动作描述？

动作描述会为 AI 提供上下文提示，帮助根据游戏玩法和对话场景判断何时以及如何触发动作，并通过更准确的 AI 响应提升游戏体验。

### 如何为动作添加描述

1. **识别动作**：确定需要描述的动作，例如“**坐下**”或“**蹲下**".
2. **添加描述的格式**：使用以下格式 `动作名称 <描述>` 来添加描述。描述应清晰简洁，并为 AI 提供明确指示。
3. **示例**:
   * **坐下：**

     ```
     sit down <使用此动作让角色坐下，适用于休息、治疗或与 NPC 进行对话。非常适合安全区域或交互点>
     ```
   * **蹲下：**

     ```
     crouch <此动作会降低角色的姿态，适用于潜行或通过低矮空间>
     ```
   * **攻击敌人：**

     ```
     attack enemy <当玩家选择攻击敌方单位时触发此动作>
     ```
   * **发送邮件：**

     ```
     send email <启动此动作，让用户撰写并发送电子邮件>
     ```

### 实施动作描述

1. **导航到 Convai Info 部分**：在编辑器中选择你的 Convai 角色，并打开 Convai Info 部分。<br>

   <div data-full-width="false"><figure><img src="/files/81c34c7c082dca4ba96681bab5493bc756b1afb7" alt="" width="296"><figcaption></figcaption></figure></div>
2. **添加带描述的动作**：点击添加元素（+）图标，按前述格式输入动作及其描述。

<figure><img src="/files/aa3e3e2b8c03fbee72dcea3154ac5c6f03112c9f" alt=""><figcaption></figcaption></figure>

### 其他提示

* **清晰具体的描述**：确保描述简明扼要，并准确说明动作触发条件。
* **使用英文。**


---

# 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 dynamically by asking a question.

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

```
GET https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unreal-engine/guides/actions-guide/stage-2-custom-actions/adding-descriptions-to-actions.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.
