# Connect to Moy Klass

Integration allows the bot to receive from the CRM "Moy Klass" up-to-date information about programs, groups, classes and employees, as well as find students, write them in groups and set tasks.

## What do you need?

- CRM account Moy Klass
- API key with access to the necessary data;
- The right to read and change students, records and tasks.

Store the API key as a password. Do not add it to the prompt, knowledge base, messages or screenshots.

## Connection

1. Open **Integrations** in the left-hand ChatRex menu.
2. Press **Connect integration**.
3. Go to **Data Sources**.
4. Find the **Moy Klass** card and press **Connect**.
5. In the window that opens, go to the **Connection installation** tab.
6. Insert the API key in the **API key from Moy Klass** field.
7. Press **Connect**.

After successful connection, the status **Connected** will appear in the integration card.

## Connection check

1. Open **Integrations**.
2. Find **Moy Klass**.
3. Make sure the status column says **Connect** and the integration switch is on.
4. Click **Configure** and check the status in the **Connect** tab.

If ChatRex tells you to reconnect, get a valid API key and reconnect the integration.

## Shutdown

Open **Configure>Configure>Configure>Connect** and press **Break connection**. After disabling, the bot will not be able to receive and change the data "Moy Klass", and integration actions will become unavailable.

## Next step.

After connecting, add the bot the necessary operations. All available variants and the recommended sequence are described in the article [**ActionsMoy Klass**](<../../actions/integrations/moyklass.md>).

!!!warning
Before starting, check the actions on the test student. Searching by phone should be done before creating a new card – this helps not to create duplicates.
!!!
