> 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/simple-actions.md).

# 简单动作

为你的 Convai 角色添加简单动作的步骤：-

* 选择你的 Convai 角色并导航到详细信息面板。在此界面中，找到 `Convai Info` 部分开始。

<figure><img src="/files/516201eb39f817d5e6310f1ab36cc4dff9cd4062" alt="" width="296"><figcaption><p>大纲视图中的 Convai Info 部分。</p></figcaption></figure>

* 选择 `添加元素` 图标 `(+)` 并输入你希望执行的所需动作。例如， `打印。`

<figure><img src="/files/0e4b22465d2c0763f28630d0a8a3b4c75bb44d27" alt="" width="291"><figcaption><p>自定义动作</p></figcaption></figure>

* 打开你刚刚添加该动作的角色蓝图。
* 添加一个同名的新事件。 `打印` 在这种情况下，并为你刚命名的函数定义逻辑，然后运行该函数 `处理动作完成` 其带有 `是否成功` 设为 true。<br>

  <figure><img src="/files/7c6c4907e640d9daac277ae5dbf61a109ac73b56" alt=""><figcaption><p>打印动作实现</p></figcaption></figure>
* 点击编译，然后让你的 Convai 角色执行该动作。

<figure><img src="/files/66ab09ba89d5a7ae092cfa60baaf8b77484960fb" alt=""><figcaption><p>当被要求执行时，Convai 角色会打印。</p></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/simple-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.
