From 00e9a32240fff41b7fbb64b50697701db07c7b8b Mon Sep 17 00:00:00 2001 From: vishal-av Date: Tue, 21 Jan 2025 18:47:03 +0530 Subject: [PATCH] Updated Configure Slack with the Webhook --- .../trigger-pipelines-using-slack-events.md | 30 +++++++++++++------ 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/docs/platform/triggers/trigger-pipelines-using-slack-events.md b/docs/platform/triggers/trigger-pipelines-using-slack-events.md index 088bd04ba1..1e4a85f45f 100644 --- a/docs/platform/triggers/trigger-pipelines-using-slack-events.md +++ b/docs/platform/triggers/trigger-pipelines-using-slack-events.md @@ -64,14 +64,26 @@ Click on **Continue**. Click on **Create Trigger** ### Configure Slack with the Webhook - -This section explains how to configure Slack with your webhook to enable real-time notifications. Follow these steps to integrate the webhook and set it up for bot events in your chosen channel - -1. Navigate to your Slack account. -2. Under Settings, go to **Event Subscriptions**. -3. Turn on **Enable Events** -4. In the **Webhook URL** field, paste the webhook URL you configured earlier. The URL will be auto-verified to ensure it's valid. -5. After the URL is verified, configure the webhook under the **Subscribe to Bot Events** section. -6. Add the desired channel. +This section explains how to configure Slack with your webhook to enable real-time notifications. + +Follow these steps to integrate the webhook and set it up for bot events in your chosen channel: + +1. Go to the [Slack website](https://api.slack.com/) on your browser. +2. After logging in, click on **Your Apps** located in the top-right corner of the page. +3. On the **Your Apps** page: + - Select an existing app where you want to configure your webhook. + - To create a new app, click **Create New App**. + 1. Choose **From a manifest** if you want to use a manifest file to define the app's basic info, such as scope and settings: + - Select the workspace where you want the app to be used. + - Update the JSON content based on your requirements, such as the app's name, settings, etc. + - Click **Create App**. + 2. Choose **From scratch** to manually add the app name and workspace through the UI. +4. In the **Your Apps** page, under **Features** in the left navigation bar, go to **Event Subscriptions**. +5. Turn on **Enable Events**. +6. In the **Request URL** field, paste the webhook URL you configured earlier. The URL will be automatically verified to ensure it is valid. +7. Under the **Subscribe to Bot Events** section, add the events that should trigger the webhook. Click **Save Changes**. +8. Navigate to your Slack application and open the channel where you want the webhook to trigger events. In the channel settings, go to the **Integrations** tab and add the app you just created. + +For more information, visit the [Slack Documentation](https://api.slack.com/apis/events-api). Now that Slack is configured, any relevant Slack event in the configured channel will trigger the pipeline. \ No newline at end of file