# Yandex Marketa

Integration allows you to receive customer feedback and questions, prepare and publish confirmed answers, classify appeals and process events of the seller’s office.

## Obtaining data for connection

1. In the seller's office Yandex Marketa, open **Settings> API and modules> API-Key**.
2. Create an API-Key and enable **Conversation with customers**.
3. Copy the key: Once the window is closed, it may no longer be displayed.
4. Find the **Business ID** of the seller's office.

Add rights to orders, returns and goods only when the bot actually uses the relevant operations.

## Connecting to ChatRex

1. Open **Integrations** and select **Yandex Market**.
2. Insert **API-Key**.
3. Enter **Business ID** and press **Connect**.
4. Wait for key and status check **Connected**.
5. Copy the webhook URL that appears in the connection settings.

## API notifications

1. In Yandex Marketa, open **Settings> APIs and modules> API notifications**.
2. Press **Connect notifications**.
3. Choose the cabinet and the desired types of events: new reviews, comments, questions and other events used.
4. Insert HTTPS webhook URL from ChatRex.
5. Save the setting and wait for a successful `PING` check.

Without API notifications, the bot will be able to request data by actions, but new events will not arrive in ChatRex immediately after they appear.

## What's available

- reviews and questions about goods;
- drafts and confirmed publication of responses;
- classification and transmission of complex appeals to the operator;
- orders and returns in the presence of rights;
- internal recommendations for product cards;
- Sending permitted events to the CRM if routing is enabled separately.

## Actions bot

A description of the fields, publication restrictions, and recommended scenarios can be found in [**Actions Yandex Marketa**](<../../actions/integrations/yandex-market.md>).

## Verification

1. Get a raw feedback or question.
2. Create a draft answer.
3. Check the text and publish it only after explicit confirmation.
4. Create a test event or wait for a new appeal and check for it in ChatRex.

## Shutdown

Turn off integration in ChatRex, then delete or turn off the created API notification in the Yandex Market a account. If necessary, revoke API-Key.
