# Connect Slack Private Channels to OneLens

This article will guide you through the process of granting One Lens access to your private Slack channels for setting up workflows and receiving insights and alerts.

To enable this, you'll follow a four-step process:

1. [Add OneLens bot in the Private Slack Channel](#add_the_onelens)
2. [Verify the Connection by Creating a Workflow](#verification)

## Step-by-Step Guide

### Add the OneLens Bot to the Private Channel <a href="#add_the_onelens" id="add_the_onelens"></a>

{% hint style="info" %}
**Note:** You must be a member of the private Slack channel to invite the OneLens bot. If you can’t invite it, contact your Slack admin to check your permissions.
{% endhint %}

{% stepper %}
{% step %}
Return to your Slack dashboard and select the private channel you wish to grant access to One Lens.
{% endstep %}

{% step %}
Click on the three dots on the right side and select **Open Channel Details**.

<img src="/files/ZFLBLLcFH5rh4W2BpItW" alt="" width="563">
{% endstep %}

{% step %}
Go to **Integrations** and click on **Add an app**. Choose One Lens. You should see a message indicating that OneLens has been added to your selected channel.

<div><img src="/files/tCNmbAnh9o09R9fon1Id" alt="" width="548"> <img src="/files/Giqi5sZEaqjzT7bwoAxT" alt="" width="539"></div>

<img src="/files/Dq2uhpFQabqJPur7wnPj" alt="" width="563">
{% endstep %}

{% step %}
Open the private channel and then click on the Channel name to get the channel Details.

Copy the slack private channel ID present at the bottom of it.&#x20;

<figure><img src="/files/kRLSJl9xWKiVHZAU34qG" alt="" width="375"><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

### Verification

To verify that the private channel has been granted access, let us create a sample workflow for anomaly alerts in your private Slack channel.

{% stepper %}
{% step %}
Navigate to the workflows.
{% endstep %}

{% step %}
Click on **Create** to start a new workflow.
{% endstep %}

{% step %}
Write a workflow name and click **Create Workflow**.

<figure><img src="/files/42zx5IVAaniQstrVmftN" alt="" width="375"><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Select the trigger that will initiate the workflow. You can choose from multiple trigger types such as:

* **Anomaly Detection**
* **Tickets**
* **Cost Alerts**
* **Resource Events**

<figure><img src="/files/SGOjqUDqFey6JlhU0qOP" alt="" width="375"><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Once a trigger is selected, configure the conditions that should be met for the workflow to run.
{% endstep %}

{% step %}
Click **Save Changes**.
{% endstep %}

{% step %}
Go to **Add step** and choose **Slack**.

<figure><img src="/files/IBasnwMVdPqn79j6kwn2" alt="" width="375"><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Click on **Send Slack alerts to a channel.**
{% endstep %}

{% step %}
Choose the connection as **Default**.
{% endstep %}

{% step %}
In the **Channel** section, you should see your private channel. Choose it.

<figure><img src="/files/GuqUREC60P9Z2d1INDvp" alt="" width="375"><figcaption></figcaption></figure>

{% hint style="warning" %}
In case you do not see your private channel, use the **Channel ID** to find it.&#x20;

![](/files/h7vPUUXF5bBMi9quYPv3)
{% endhint %}
{% endstep %}

{% step %}
Write an additional message if desired and preview your mock data.
{% endstep %}

{% step %}
Click **Save Changes**.
{% endstep %}

{% step %}
Click **Publish** to finalize your workflow.
{% endstep %}
{% endstepper %}

Congratulations! Your workflow is now set up. Any anomalies detected by One Lens will be added to your private Slack channel.


---

# 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.onelens.cloud/facts-and-faqs/faqs/connect-slack-private-channels-to-onelens.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.
