# Slack

The «Сам Решу» agent in your Slack

Рабочий мессенджер: агент отвечает в личке с ботом и в каналах Slack, куда бота пригласили

## Integration scenarios

### Replies in direct messages and channels
The agent answers in direct messages with the bot, and in a channel the bot was invited to it answers a message that mentions the bot in that message's thread.

### Buttons and approvals
A question or an approval request arrives as a message with buttons, and the decision is one press right in Slack.

### Task reports in a channel
A scheduled task's result arrives in the channel the bot was invited to, without reminders.

## How to connect

**Before you connect**

- A Slack workspace
- The right to install apps in the workspace, or an admin's approval

### Press «Connect»
A Slack window opens. Pick the workspace the agent should work in, if you have several.

### Allow the app in the workspace
Slack shows the app's permissions, press «Allow». If an admin approves installs, Slack sends them a request, and the connection completes once approved.

### Message the bot or invite it to a channel
The bot appears under «Apps» in Slack: send it a direct message. For the agent to work in a channel, invite the bot with /invite @samreshu and mention it in a message.

## FAQ

### How do I connect Slack?
Press «Connect», pick the workspace in the Slack window and allow the «Сам Решу» app. There is no bot to create and no keys to copy.

### What if an admin approves app installs?
Slack sends the admin an install request. The connection completes once it is approved.

### Where does the agent answer in Slack?
In direct messages with the bot and in channels the bot was invited to with /invite @samreshu. In a channel the agent receives a message when the bot is mentioned and answers in that message's thread.

### Can the agent ask for an approval right in Slack?
Yes: a question or an approval request arrives as a message with buttons, and the decision is one press.

### What happens if the app is removed from the workspace?
The agent stops receiving and sending messages in that workspace. To bring it back, connect Slack again.

[Open Slack](https://slack.com/apps)
