> 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/plugins-and-integrations/unreal-engine/guides/operations-based-on-the-presence-of-certain-words.md).

# Operations Based on the Presence of Certain Words

This document explains how to detect words and perform certain operations based on it.

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

<figure><img src="https://413558230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEtUJA212Zc1S9ACc8T4l%2Fuploads%2FzyMcLBkNbr0kBGcYBfow%2FWordDetection.jpg?alt=media&amp;token=5c0fa21d-7d79-4d8d-be6d-ecfe2c6a5dcb" 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="https://413558230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEtUJA212Zc1S9ACc8T4l%2Fuploads%2FkKqWcNlBtMgkux7rE6RZ%2Fimage.png?alt=media&amp;token=2f159093-fc56-4972-b7c6-ff443ce813c8" 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.
{% 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/plugins-and-integrations/unreal-engine/guides/operations-based-on-the-presence-of-certain-words.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.
