In Text Generation WebUI, a plain chat talks to a model with no identity. A character card gives the model one: a name, a personality, and an opening line, so every reply comes from that character instead of from a generic assistant. Cards are how the app does roleplay, fiction, and any conversation where who is speaking matters. This is different from the plain first chat and from instruct mode — it uses chat mode and the Character tab.
Define the character
Open the Character tab and fill in the fields the Chat tab docs describe. The Context string appears at the top of the prompt: most often it describes the bot’s personality and adds a few example messages to guide the model towards the desired reply length and format. Your name appears at the beginning of each user reply (by default, “You”), and the Character’s name appears at the beginning of each bot reply. The Greeting string appears as the bot’s opening message whenever the history is cleared.
For a practice character, use a fictional lighthouse keeper:
| Field | Practice value |
|---|---|
| Character’s name | Mara |
| Context | Mara is a lighthouse keeper who checks the lamp at noon every day and knows the harbour timetable by heart. She speaks plainly and briefly. |
| Greeting | Hello! I am Mara, keeper of the harbour light. |
| Your name | You |
Character cards are also files you can keep and share: they are JSON files describing a persona, behaviour, and dialogue style, placed under characters/<name>.json, or PNG files whose metadata embeds the same JSON (V2 cards). A setup guide notes you can drag and drop a V2 PNG into the Character gallery tab to import it, and the project’s own Chat Tab docs describe the Character gallery as a built-in extension: click a character there and it is automatically selected in the Character tab.
Talk to the character in chat mode
Go to the Chat tab, set Mode to chat, and make sure Mara is the selected character. Chat mode is used for talking to the character defined under the Character tab, using a simple chat prompt — the docs show it with an example character, Chiharu Yamada, a young computer engineer, whose persona opens the prompt and whose name starts every bot reply. Start a new chat: Mara’s greeting should appear first. Then ask: “When do you check the lamp?”
| Check | What you should see | If you do not see it |
|---|---|---|
| Greeting | The new chat opens with “Hello! I am Mara, keeper of the harbour light.” | You are in instruct mode, or the greeting was left blank — check the Character tab |
| Reply | The reply starts with “Mara:” and says the lamp is checked at noon | The reply reads like a generic assistant — check that Mode is chat and Mara is the selected character |
| Voice | Replies stay short and plain, as the Context asked | The Context is too vague — add the plain-and-brief instruction to it, as in the practice value |
Expected result. We checked Text Generation WebUI’s own Chat Tab docs for the Character tab fields, the greeting, and chat mode, and a third-party setup guide for the JSON and PNG card files and the gallery import. We did not run Text Generation WebUI.
Limits
Chat mode should typically be used only for base models or non-instruct fine-tunes, and should not be used for instruction-following models — those belong in instruct or chat-instruct mode, where the character’s persona is carried by a different prompt format. The Context string never gets truncated, so a very long persona eats into the space left for the conversation itself. A card downloaded from elsewhere carries someone else’s Context and example messages, so read them in the Character tab before you chat — the character is only as trustworthy as the card that defines it. We did not run Text Generation WebUI, so no reply here is a recorded result.
Sources
- Text Generation WebUI Chat Tab docs — chat mode talks to the character defined under the Character tab, Context string describes the bot’s personality, Your name and Character’s name start each reply, Greeting appears when the history is cleared, Chiharu Yamada example, Character gallery extension selects a character in the Character tab
- Text Generation WebUI setup guide (third-party) — character cards are JSON files under characters/<name>.json or V2 PNG files embedding JSON in metadata, drag-and-drop a PNG into the Character gallery tab to import
