<commit_before>---
id: feature_updates_to_slack
title: Feature Updates To slack
---

:::caution
As of **Unleash v4**, this method of doing things is deprecated. If you're looking for ways to integrate with Slack, you should refer to [the Slack add-on guide](../addons/slack.md) instead.
:::

## Create a custom Slack WebHook url: {#create-a-custom-slack-webhook-url}

1. Go to [https://slack.com/apps/manage/custom-integrations](https://slack.com/apps/manage/custom-integrations)
1. Click Incoming WebHooks
1. Click “Add Configuration”
1. This is Slack's help page on how to do this: https://api.slack.com/custom-integrations/incoming-webhooks
   - Choose a channel, follow the wizard, get the custom URL.

## Send data to Slack using an event hook function {#send-data-to-slack-using-an-event-hook-function}

Using the `eventHook` option, create a function that will send the data you'd like into Slack when mutation events happen.

```javascript
const unleash = require('unleash-server');<commit_msg>chore: update deprecation notice.<commit_after>---
id: feature_updates_to_slack
title: Feature Updates To slack
---

:::caution
This guide is deprecated. If you're looking for ways to integrate with Slack, you should refer to [the Slack add-on guide](../addons/slack.md) instead.
:::

## Create a custom Slack WebHook url: {#create-a-custom-slack-webhook-url}

1. Go to [https://slack.com/apps/manage/custom-integrations](https://slack.com/apps/manage/custom-integrations)
1. Click Incoming WebHooks
1. Click “Add Configuration”
1. This is Slack's help page on how to do this: https://api.slack.com/custom-integrations/incoming-webhooks
   - Choose a channel, follow the wizard, get the custom URL.

## Send data to Slack using an event hook function {#send-data-to-slack-using-an-event-hook-function}

Using the `eventHook` option, create a function that will send the data you'd like into Slack when mutation events happen.

```javascript
const unleash = require('unleash-server');
{'fraction_non_alphanumeric': 0.11536523929471033, 'fraction_numerical': 0.004534005037783375, 'mean_word_length': 4.426229508196721, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3393508', 'n_tokens_mistral': 638, 'n_tokens_neox': 610, 'n_words': 221}