# Using Agents in Slack

### Before You Start

Make sure you:

* Have access to the Slack workspace
* Created an agent in JetAdmin

### Setup

{% stepper %}
{% step %}

#### **Connect Slack Workspace**

Click **Connect Slack** and authorize access
{% endstep %}

{% step %}

#### Invite JetAdmin Bot

In your Slack channel, run:

```
/invite @Jet Admin
```

{% endstep %}

{% step %}

#### Connect Agent to Channel

Use the command:

```
/jet add_agent <agent_id>
```

<figure><img src="/files/OccwYN7UFLvDNW2wSD2C" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Once connected, users in the channel can interact with the agent directly.
{% endhint %}
{% endstep %}
{% endstepper %}

{% hint style="success" %}

### Supported Slack Conversations

Agents currently support:

* Public channels
* Private channels (if invited)
* Direct messages
  {% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.jetadmin.io/agents/using-agents-in-external-tools/using-agents-in-slack.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
