---
title: "Standard bot constants (Operator Panel)"
description: "Texts and labels the bot takes from constants when connecting to an operator, closing a chat, and showing dialog buttons."
---

# Standard bot constants (Operator Panel)

When working with the Operator Panel, the bot shows the client texts from **bot constants** for the current language (`lang_code`). Below are the constants most often used by the [Connect to operator](/en/actionjail/reference/actions/operator_panel__connect_to_operator_with_msg.md) action and related chat events.

Configure them in the bot constructor (constants / translations section) for each language the scenario uses.

## Client messages

| Constant | Purpose | Typical content |
|----------|---------|-----------------|
| `chat_created_msg` | After creating a dialog with an operator | “Please wait while a specialist connects…” |
| `chat_operator_connected` | An operator joined the dialog | “joined the dialog” (role and name are appended) |
| `auto_connected` | Operator auto-connect (`auto_connect_operator: true`) | If missing — `chat_created_msg` is often used |
| `chat_closed_by_operator` | Chat closed by the operator | “Chat closed by operator” |
| `chat_closed_by_timeout` | Chat closed due to inactivity | “Chat closed due to timeout” |

## Role names

| Constant | Purpose |
|----------|---------|
| `op_role_supervisor` | Label for the “Supervisor” role |
| `op_role_operator` | Label for the “Operator” role |
| `op_role_admin` | Label for the “Administrator” role |

## Buttons and commands

| Constant | Purpose |
|----------|---------|
| `close_chat_button_text` | Text of the end-conversation button (`add_button: true`) |
| `return_button_text` | Text of the return button (`add_return_button: true`) |
| `close_chat_command` | Chat-close command (if set together with `add_button`) |

## Related docs

- [Action `operator_panel__connect_to_operator_with_msg`](/en/actionjail/reference/actions/operator_panel__connect_to_operator_with_msg.md)
- [Actions reference](/en/actionjail/reference/actions-reference.md)
- [Live operator in the dialog](/en/scenariobuilder/explanation/connect-to-operator-node.md)
