> For the complete documentation index, see [llms.txt](https://wiki.staffplusplus.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.staffplusplus.org/features/reporting/chat-channels.md).

# Chat channels

Staff++ has the possibility to open chat channels linked to reports.

### Configuration

```yaml
reports-module:
  chatchannels:
      enabled: false
      open-on: IN_PROGRESS
      close-on: REJECTED;RESOLVED;DELETED
```

With the above configure when a report channel should be automatically opened and closed.\
In the default configuration the channel gets opened as soon as the report is picked up by a staff member. And the chat channel is closed automatically when the report gets resolved, rejected or deleted.

### Permissions

```yaml
chatchannels:
    join: "staff.chatchannels.join.report"
    leave: "staff.chatchannels.leave.report"
    open: "staff.chatchannels.open.report"
    close: "staff.chatchannels.close.report"
```

### Commands

| description                | Description                                                                                                            |
| -------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| /rc \<reportId> \<message> | Send a message to a report channel                                                                                     |
| /join-channel \<channelId> | Join this chatchannel. You will see the messages send on this channel and will be able to send message to this channel |
| /leave-channel \<reportId> | Leave the chat channel                                                                                                 |
| /close-channel \<reportId> | The chat channel will be closed. This forces all players to leave the channel and the channel gets deleted             |

### GUI

There are 2 buttons on the report GUI that allow staff members to open/close/join/leave the chatchannel manually.

![](/files/JK8V4IqHtLhzCf701xD0)


---

# 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://wiki.staffplusplus.org/features/reporting/chat-channels.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.
