# Slack

## Connection Requirements

{% stepper %}
{% step %}

### IP

IP address of the Slack Host.
{% endstep %}

{% step %}

### Port

Port number (optional, default: 443).
{% endstep %}

{% step %}

### token

The username which is going to be used by OctoXLabs CSAM PLATFORM Asset to fetch data from Slack.

{% hint style="info" %}
🔵 "api.slack.com/apps"\
In order to use adapter you have to create an app. From create new app. details. Go to Permissions and find the User Token Scopes. Select Add an OAuth Scope and add these permissions: users:read users:read.email. After adding the new permission you need to click on the Reinstall to :workspace name here:. Slack API GUI will prompt you a User OAuth Token. Copy it, and paste it to our token field.
{% endhint %}

* users:read
* users:read.email
  {% endstep %}

{% step %}

### SSL

Use SSL for connection (optional, default: Encrypted).
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
⚠️ Attention\
Please perform a **connection test** to ensure there is a valid connection to the host.\
When the discovery operation is finalized, you will be able to see the details on the **Assets** page.
{% 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.octoxlabs.com/adapters/adapters/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.
