> 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/unity-plugin/utilities/convai-ui-prefabs.md).

# Pre-built UI Prefabs

We provide several UI options to display character and user's transcript out of the box that players can use with the Convai Plugin. You can use and customize these prefabs.

The ConvaiNPC and ConvaiGRPCAPI scripts look for GameObjects with Convai Chat UI Handler as a component, and send any transcripts to the script so that it can be displayed on screen.

## Types of UI

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

### ChatBox

**Prefab Name**: Convai Transcript Canvas - Chat

Both the user's and the character's transcripts are displayed one after other in a scrollable chat box.

<figure><img src="/files/0k6KKqAumX2UXN0iFFJM" alt=""><figcaption></figcaption></figure>

### Subtitle

**Prefab Name**: Convai Transcript Canvas - Subtitle

The user and character transcripts are displayed in the bottom like subtitles.

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

### Question-Answer

**Prefab Name**: Convai Transcript Canvas - QA

The user's transcript is displayed in the top where as the character's transcript is displayed in the bottom.

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

### Mobile Optimised UI Styles

**Prefab Name**: Convai Transcript Canvas - Mobile Subtitle

Identical to [#subtitle](#subtitle "mention") UI. Includes a button that can be pressed and held for the user to speak. Ideal for portrait orientation of screen.

<figure><img src="/files/jzmPofP2RTDEA748TWk3" alt="" width="328"><figcaption></figcaption></figure>

**Prefab Name**: Convai Transcript Canvas - Mobile QA

<figure><img src="/files/yLUjV8bJCHAEf7B7aX4K" alt="" width="331"><figcaption></figcaption></figure>

**Prefab Name**: Convai Transcript Canvas - Mobile Chat

<figure><img src="/files/Wcw3oZmd3u9iyuv3lqd7" alt="" width="327"><figcaption></figcaption></figure>

## [Convai Chat UI Handler Component](/api-docs/plugins-and-integrations/unity-plugin/utilities/transcript-ui-system.md)

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

### Functions to Know

<table><thead><tr><th width="265"></th><th></th></tr></thead><tbody><tr><td>SendCharacterText</td><td>A public function that sends a string of text to be displayed as character transcript along with the name of the character who said it.</td></tr><tr><td>SendUserText</td><td>A public function that sends a string of text to be displayed as user transcript.</td></tr></tbody></table>


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.convai.com/api-docs/plugins-and-integrations/unity-plugin/utilities/convai-ui-prefabs.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
