> For the complete documentation index, see [llms.txt](https://cyr1en.gitbook.io/commandprompter/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cyr1en.gitbook.io/commandprompter/prompts/chat-prompt.md).

# Chat Prompt

Chat is the default prompt and has no key.

```
/gamemode <&6&lWhat gamemode?{br}0. Survival{br}1. Creative>
```

`{br}` splits the display into separate chat messages. `Prompt-Prefix` is added to the first line, and the configured cancel control is appended to the last line. The clickable cancel control runs `/cmdp cancel` (which all players can use by default as `promptpaper.cancel` defaults to `true` in 3.2.0).

The player's next chat message becomes the answer. Typing the configured `Cancel-Keyword` also cancels the session and does not require command permissions. MiniMessage and legacy color codes are supported in the display text; normal answer sanitation is controlled by `-ds`.

| Capability         | Behavior                                                                                    |
| ------------------ | ------------------------------------------------------------------------------------------- |
| Prompt key         | Empty                                                                                       |
| Line breaks        | `{br}`                                                                                      |
| Display formatting | MiniMessage and legacy codes                                                                |
| Configuration      | [Chat Prompt settings](/commandprompter/configuration/prompts-configuration/chat-prompt.md) |

![](https://i.imgur.com/4oWkMon.png)


---

# 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://cyr1en.gitbook.io/commandprompter/prompts/chat-prompt.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.
