# Operations Based on the Presence of Certain Words

* Open your Convai Character blueprint and click on `Class Settings` and then on `ConvaiChatbot` component.&#x20;
* Under the `Details` section scroll down to the `Events` section and add `On Transcription Received` event.&#x20;

<figure><img src="/files/tsxmeApq7CAN7XlCVyKp" alt=""><figcaption><p>Add On Transcription Received Event to Event graph. </p></figcaption></figure>

* Once we have the transcription of player input, we can perform a substring search on it.

<figure><img src="/files/YaKzuskIy2perWbp1cTy" alt=""><figcaption><p>Substring search on transciption. </p></figcaption></figure>

{% hint style="info" %}
The Print String at the end is just an example. You can add your logic after the substring match.&#x20;
{% endhint %}

&#x20;


---

# 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://docs.convai.com/api-docs/plugins-and-integrations/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.
