> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-wbdocs-1882.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Configurer les alertes Slack

> Créez et configurez une application Slack pour recevoir les alertes, notifications et mises à jour de supervision de W&B Server.

Intégrez W\&B Server à [Slack](https://slack.com/).

<Note>
  Regardez une [vidéo montrant comment configurer les alertes Slack sur un déploiement W\&B Dedicated Cloud](https://www.youtube.com/watch?v=JmvKb-7u-oU) (6 min).
</Note>

<div id="create-the-slack-application">
  ## Créer l'application Slack
</div>

Suivez la procédure ci-dessous pour créer une application Slack.

1. Accédez à [https://api.slack.com/apps](https://api.slack.com/apps) et sélectionnez **Créer une application**.

   <Frame>
     <img src="https://mintcdn.com/wb-21fd5541-wbdocs-1882/Sb3q6Nn7xrh8SB3Y/images/hosting/create_an_app.png?fit=max&auto=format&n=Sb3q6Nn7xrh8SB3Y&q=85&s=a80f5013b7f7e5e44a4832e3fb3549fd" alt="Bouton Créer une application" width="1442" height="686" data-path="images/hosting/create_an_app.png" />
   </Frame>

2. Saisissez un nom pour votre application dans le champ **Nom de l'application**.

3. Sélectionnez l'espace de travail Slack dans lequel vous souhaitez développer votre application. Assurez-vous d'utiliser le même espace de travail Slack pour les alertes.

   <Frame>
     <img src="https://mintcdn.com/wb-21fd5541-wbdocs-1882/Sb3q6Nn7xrh8SB3Y/images/hosting/name_app_workspace.png?fit=max&auto=format&n=Sb3q6Nn7xrh8SB3Y&q=85&s=69a1c8ad9e093bda483236ffee53891a" alt="Nom de l'application et sélection de l'espace de travail" width="1160" height="1106" data-path="images/hosting/name_app_workspace.png" />
   </Frame>

<div id="configure-the-slack-application">
  ## Configurer l’application Slack
</div>

1. Dans la barre latérale gauche, sélectionnez **OAth & Permissions**.

   <Frame>
     <img src="https://mintcdn.com/wb-21fd5541-wbdocs-1882/Sb3q6Nn7xrh8SB3Y/images/hosting/add_an_oath.png?fit=max&auto=format&n=Sb3q6Nn7xrh8SB3Y&q=85&s=9a9e64a75619c429ee0ed5c44ab1b417" alt="Menu OAth & Permissions" width="218" height="324" data-path="images/hosting/add_an_oath.png" />
   </Frame>

2. Dans la section Scopes, attribuez au bot le scope **incoming\_webhook**. Les scopes accordent à votre application l’autorisation d’effectuer des actions dans votre espace de travail de développement.

   Pour plus d’informations sur les scopes OAuth pour les bots, Voir le tutoriel Understanding OAuth scopes for Bots dans la documentation de l’API Slack.

   <Frame>
     <img src="https://mintcdn.com/wb-21fd5541-wbdocs-1882/Sb3q6Nn7xrh8SB3Y/images/hosting/save_urls.png?fit=max&auto=format&n=Sb3q6Nn7xrh8SB3Y&q=85&s=7fc223269434662bd23e64bd05b1a86e" alt="Scopes du token du bot" width="656" height="291" data-path="images/hosting/save_urls.png" />
   </Frame>

3. Configurez l’URL de redirection pour qu’elle pointe vers votre installation W\&B. Utilisez la même URL que celle définie comme URL d’hôte dans les paramètres de votre système local. Vous pouvez spécifier plusieurs URL si votre instance utilise différents mappages DNS.

   <Frame>
     <img src="https://mintcdn.com/wb-21fd5541-wbdocs-1882/Sb3q6Nn7xrh8SB3Y/images/hosting/redirect_urls.png?fit=max&auto=format&n=Sb3q6Nn7xrh8SB3Y&q=85&s=61e3703be6dd429668e9a0cf297a585d" alt="Configuration des URL de redirection" width="650" height="321" data-path="images/hosting/redirect_urls.png" />
   </Frame>

4. Sélectionnez **Save URLs**.

5. Vous pouvez aussi spécifier une plage d’adresses IP sous **Restrict API Token Usage** afin d’autoriser l’adresse IP ou la plage d’adresses IP de vos instances W\&B. Limiter les adresses IP autorisées renforce la sécurité de votre application Slack.

<div id="register-your-slack-application-with-wb">
  ## Enregistrez votre application Slack auprès de W\&B
</div>

1. Accédez à la page **System Settings** ou **System Console** de votre instance W\&B, selon votre déploiement

2. Selon la page System sur laquelle vous vous trouvez, suivez l’une des options ci-dessous :

   * Si vous êtes dans **System Console** : accédez à **Settings**, puis à **Notifications**

     <Frame>
       <img src="https://mintcdn.com/wb-21fd5541-wbdocs-1882/Sb3q6Nn7xrh8SB3Y/images/hosting/register_slack_app_console.png?fit=max&auto=format&n=Sb3q6Nn7xrh8SB3Y&q=85&s=12228344cf7209834ef96700ccc85ebd" alt="Notifications de System Console" width="1134" height="477" data-path="images/hosting/register_slack_app_console.png" />
     </Frame>

   * Si vous êtes dans **System Settings** : activez l’option **Enable a custom Slack application to dispatch alerts** pour activer une application Slack personnalisée

     <Frame>
       <img src="https://mintcdn.com/wb-21fd5541-wbdocs-1882/Sb3q6Nn7xrh8SB3Y/images/hosting/register_slack_app.png?fit=max&auto=format&n=Sb3q6Nn7xrh8SB3Y&q=85&s=c03b2c2e4b2aae46e1afeed7fb51cbfe" alt="Option d’activation de l’application Slack" width="667" height="187" data-path="images/hosting/register_slack_app.png" />
     </Frame>

3. Saisissez votre **ID client Slack** et votre **secret Slack**, puis cliquez sur **Save**. Accédez à Basic Information dans Settings pour trouver l’ID client et le secret de votre application.

4. Vérifiez que tout fonctionne en configurant une intégration Slack dans l’application W\&B.
