> 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/operations-based-on-the-presence-of-certain-words.md).

# 基于某些词语存在的操作

* 打开你的 Convai Character 蓝图并点击 `类设置` 然后点击 `ConvaiChatbot` 组件。
* 在……下方 `详细信息` 部分中向下滚动到 `事件` 部分并添加 `收到转录内容时` 事件。

<figure><img src="/files/ebd5affe37a2ea52f5e2316050a096d2d998298a" alt=""><figcaption><p>将 On Transcription Received 事件添加到事件图表中。</p></figcaption></figure>

* 一旦我们获得玩家输入的转录文本，就可以对其进行子字符串搜索。

<figure><img src="/files/02e51f6a33a6549f72190d477b3982d690eda697" alt=""><figcaption><p>在转录文本上进行子字符串搜索。</p></figcaption></figure>

{% hint style="info" %}
末尾的 Print String 只是一个示例。你可以在子字符串匹配之后添加你的逻辑。
{% 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 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/operations-based-on-the-presence-of-certain-words.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.
