# CRM chat actions

Actions on an Open Channels dialog linked to a lead, deal, company or contact: add an employee to the chat or remove one, write to the client, create a lead from an inquiry.

Bitrix24 API: `imopenlines.crm.*`
Scope: `imopenlines`

## Operations

- [Add an employee to a CRM chat](./crm/members-create.md) — `POST /v1/openlines/crm/chats/users`
- [Remove an employee from a CRM chat](./crm/members-delete.md) — `DELETE /v1/openlines/crm/chats/users`
- [Send a message to the client](./crm/messages.md) — `POST /v1/openlines/crm/messages`
- [Create a lead from an inquiry](./crm/lead.md) — `POST /v1/openlines/dialogs/:chatId/lead`

## Typical scenario

1. Find the dialogs of a CRM card and their `chatId`: [`GET /v1/openlines/crm/chats`](/docs/openlines/crm-chats).
2. Add an employee to the dialog: [`POST /v1/openlines/crm/chats/users`](./crm/members-create.md).
3. Write to the client in the selected dialog: [`POST /v1/openlines/crm/messages`](./crm/messages.md).

## See also

- [CRM chat members](/docs/openlines/crm/members)
- [Chats by CRM card](/docs/openlines/crm-chats)
- [Open Channels](/docs/openlines)
