> ## Documentation Index
> Fetch the complete documentation index at: https://docs.base44.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Intégration Slack

> Connectez votre application Base44 à Slack pour qu'elle puisse envoyer des messages en temps réel chaque fois qu'un événement important se produit, comme la création d'une nouvelle tâche ou un changement de statut. C'est une excellente façon de tenir votre équipe informée directement dans Slack sans changer d'outil.

<Info>
  <u>Remarque</u> : l'intégration Slack est disponible à partir du palier Builder.
</Info>

# Configuration étape par étape :

## Partie 1 : du côté Slack

Si vous disposez déjà de votre webhook Slack, vous pouvez passer directement à [Partie 2 - du côté Base44](https://docs.base44.com/Integrations/Slack-integration#part-2%3A-the-base44-side).

<Steps>
  <Step title="Allez sur Slack API Apps">
    <img src="https://mintcdn.com/base44/x7uieDiv9xNLARBF/images/SlackCreateApp.png?fit=max&auto=format&n=x7uieDiv9xNLARBF&q=85&s=665ce65dff5bb32ded5bd5455d46b334" alt="Slack Create App Pn" width="1582" height="812" data-path="images/SlackCreateApp.png" />

    * Rendez-vous sur : [https://api.slack.com/apps](https://api.slack.com/apps)
    * Cliquez sur **Create an App**
    * Cliquez sur **From Scratch**

          <img src="https://mintcdn.com/base44/x7uieDiv9xNLARBF/images/SlackFromScratch.png?fit=max&auto=format&n=x7uieDiv9xNLARBF&q=85&s=c4ca31f4e81b72b99d87851699e5d155" alt="Slack From Scratch Pn" width="1590" height="789" data-path="images/SlackFromScratch.png" />
  </Step>

  <Step title="Donnez-lui un nom">
    <img src="https://mintcdn.com/base44/x7uieDiv9xNLARBF/images/Slack-nameWorkspace.png?fit=max&auto=format&n=x7uieDiv9xNLARBF&q=85&s=8f770788c510c5db160b8e27cd3b737d" alt="Slack Name Workspace Pn" width="1999" height="1003" data-path="images/Slack-nameWorkspace.png" />

    * Par exemple : `Base44 Notifications`
    * Choisissez votre workspace
  </Step>

  <Step title="Configurez Incoming Webhooks">
    <img src="https://mintcdn.com/base44/x7uieDiv9xNLARBF/images/Screenshot2025-08-23at1.39.17PM.png?fit=max&auto=format&n=x7uieDiv9xNLARBF&q=85&s=f692e79c91c3f120b208fcf1da1956af" alt="Screenshot2025 08 23at1 39 17PM Pn" width="1581" height="705" data-path="images/Screenshot2025-08-23at1.39.17PM.png" />

    * Dans la barre latérale, ouvrez **Incoming Webhooks**
    * Basculez **Activate Incoming Webhooks** sur On
  </Step>

  <Step title="Connectez le webhook au workspace">
    <img src="https://mintcdn.com/base44/x7uieDiv9xNLARBF/images/Screenshot2025-08-23at1.41.31PM.png?fit=max&auto=format&n=x7uieDiv9xNLARBF&q=85&s=f704aa5753256f5abe3ae417aa1771ec" alt="Screenshot2025 08 23at1 41 31PM Pn" width="1579" height="704" data-path="images/Screenshot2025-08-23at1.41.31PM.png" />

    * Faites défiler vers le bas sur cette même page
    * Cliquez sur **Add New Webhook to Workspace**
    * Sélectionnez le canal où les messages doivent apparaître
    * Cliquez sur **Allow**
  </Step>

  <Step title="Copiez votre URL de webhook">
    * Votre URL de webhook devrait ressembler à ceci :

      `https://hooks.slack.com/services/T000/B000/XXXXXXXX`
    * Gardez-la à portée de main, vous l'utiliserez dans Base44 lorsqu'il vous demandera le **secret**.
  </Step>
</Steps>

***

## Partie 2 : du côté Base44

Une fois que vous avez votre URL de webhook Slack, vous pouvez la connecter à Base44 de deux manières différentes :

<CardGroup cols={2}>
  <Card icon="sparkle" href="https://docs.base44.com/Integrations/Slack-integration#option-a%3A-ready-made-integration-for-new-apps" title="Option A : intégration prête à l'emploi (recommandée)">
    * Choisissez cette voie si vous démarrez une nouvelle application à partir de zéro.
  </Card>

  <Card icon="bolt" href="https://docs.base44.com/Integrations/Slack-integration#option-b%3A-instant-integration-connecting-slack-to-an-existing-app" title="Option B : intégration instantanée">
    * Choisissez cette voie si vous êtes déjà en train de construire et que vous souhaitez intégrer Slack dans une application existante.
  </Card>
</CardGroup>

***

### Option A : intégration prête à l'emploi (pour les nouvelles applications)

<Steps>
  <Step title="Ouvrez le catalogue d'intégrations">
    * Dans Base44, cliquez sur Integrations

          <img src="https://mintcdn.com/base44/oUaRpzSyJvMVshj9/images/Integrations.png?fit=max&auto=format&n=oUaRpzSyJvMVshj9&q=85&s=16ac71b185167177ef260be7c92b0339" alt="Integrations Pn" width="1570" height="652" data-path="images/Integrations.png" />
    * Sélectionnez **Slack**
    * Sélectionnez **Use this Integration**

          <img src="https://mintcdn.com/base44/x7uieDiv9xNLARBF/images/SlackCatalog.png?fit=max&auto=format&n=x7uieDiv9xNLARBF&q=85&s=b1ba898486c17d838ebdcb378e2b0727" alt="Slack Catalog Pn" width="1869" height="860" data-path="images/SlackCatalog.png" />
  </Step>

  <Step title="Collez votre secret">
    <img src="https://mintcdn.com/base44/x7uieDiv9xNLARBF/images/SlackWebhookIntegration.png?fit=max&auto=format&n=x7uieDiv9xNLARBF&q=85&s=7bdea82b9adb64802cd47999228a53e3" alt="Slack Webhook Integration Pn" width="1878" height="861" data-path="images/SlackWebhookIntegration.png" />

    * Lorsque vous y êtes invité, collez votre `SLACK_WEBHOOK_URL`
  </Step>

  <Step title="Créez votre application">
    * Saisissez votre première invite pour l'échafaudage de l'application
    * Exemple d'invite :

      `Build me a to-do list app "Todo" that will send a message to my Slack channel every time a task is created or the status changes to Done, In Progress, or Deleted.`
  </Step>

  <Step title="Testez votre application">
    <img src="https://mintcdn.com/base44/UsrMcs9B3MEl2R91/images/Base44SlackTest.png?fit=max&auto=format&n=UsrMcs9B3MEl2R91&q=85&s=747a305a3a27c40b96f24a70ec7ecf29" alt="Base44slack Test Pn" width="1999" height="1609" data-path="images/Base44SlackTest.png" />

    * La création ou la mise à jour de vos tâches devrait maintenant publier un message dans votre canal Slack
    * Si rien n'apparaît, vérifiez :
      * Que le webhook appartient au bon canal
      * Que le secret est enregistré correctement
      * Que les publications se font depuis le backend uniquement (pas le navigateur)
  </Step>
</Steps>

***

### Option B : intégration instantanée (connexion de Slack à une application existante)

<Steps>
  <Step title="Ouvrez votre application existante">
    <img src="https://mintcdn.com/base44/x7uieDiv9xNLARBF/images/ToDoListApp.png?fit=max&auto=format&n=x7uieDiv9xNLARBF&q=85&s=22e08d98bb0dedcf86dbc22495e54383" alt="To Do List App Pn" width="1853" height="860" data-path="images/ToDoListApp.png" />

    * Voici l'invite que nous avons saisie dans le chat IA pour créer notre exemple d'application : \
      `Build me a to-do list app called Todo`
  </Step>

  <Step stepNumber={2} title="Demandez au chat IA de connecter votre application à Slack">
    <img src="https://mintcdn.com/base44/UsrMcs9B3MEl2R91/images/Base44UpdateSlacksecret.png?fit=max&auto=format&n=UsrMcs9B3MEl2R91&q=85&s=e1c3c0f0801662cf38c7b351d3e5d80e" alt="Base44update Slacksecret Pn" width="1885" height="860" data-path="images/Base44UpdateSlacksecret.png" />

    * Exemple d'invite pour le chat IA :

      `Connect this app to Slack using an Incoming Webhook. Ask me for SLACK_WEBHOOK_URL and save it as a Secret. Post to Slack from the backend only.`
  </Step>

  <Step stepNumber={3} title="Collez votre URL de webhook">
    <img src="https://mintcdn.com/base44/x7uieDiv9xNLARBF/images/SlackWebhookPopup.png?fit=max&auto=format&n=x7uieDiv9xNLARBF&q=85&s=35850648cc954557e140745ab7517e0d" alt="Slack Webhook Popup Pn" width="1866" height="843" data-path="images/SlackWebhookPopup.png" />

    * Lorsque le chat IA vous y invite, cliquez sur `Update SLACK_WEBHOOK_URL secret`
    * Puis collez votre URL de webhook dans la fenêtre contextuelle
  </Step>

  <Step title="Connectez les événements">
    * Indiquez au chat IA comment vous voulez que votre application utilise Slack
    * Exemple d'invite :

    `Hook the backend Slack post into the todo lifecycle:`

    `- On create: post "New task: {title}"`

    `- On status change: post "Task status updated: {title} -> {status}"`

    `- On delete: post "Task deleted: {title}"`

    `Use the channel from SLACK_WEBHOOK_URL. If a call fails, show a small toast and continue.`
  </Step>

  <Step title="Testez votre application">
    <img src="https://mintcdn.com/base44/UsrMcs9B3MEl2R91/images/Base44SlackTest.png?fit=max&auto=format&n=UsrMcs9B3MEl2R91&q=85&s=747a305a3a27c40b96f24a70ec7ecf29" alt="Base44slack Test Pn" width="1999" height="1609" data-path="images/Base44SlackTest.png" />

    * Créez une tâche.
    * Changez son statut en *In Progress*, puis *Done*.
    * Vous devriez voir les messages correspondants apparaître dans votre canal Slack.
  </Step>
</Steps>

***

## Dépannage

* **Pas de message dans Slack** → Le webhook pointe peut-être vers un autre canal. Créez-en un nouveau pour le bon canal.
* **Erreurs frontend (401 / CORS)** → N'appelez pas Slack directement depuis le navigateur. Publiez toujours depuis le backend.
* **Webhook renouvelé ou révoqué** → Collez le nouveau webhook dans les Secrets de Base44.
* **Le workspace bloque les applications personnalisées** → Demandez à un administrateur du workspace d'approuver votre application Slack.

***

## **Cas d'usage courants pour l'intégration Base44 × Slack**

Cette intégration est idéale pour tenir votre équipe informée sans quitter Slack. Quelques modèles populaires incluent :

* **Suivi des tâches :** publier un message chaque fois qu'une nouvelle tâche est créée, mise à jour ou terminée dans votre application.
* **Notifications d'équipe :** envoyer des alertes à un canal partagé lorsque des événements clés se produisent — comme un changement de statut vers *Done*, *In Progress* ou *Blocked*.
* **Rapports d'erreur :** faire en sorte que votre backend envoie un message Slack lorsque quelque chose échoue (par exemple un paiement ou une synchronisation de données) afin que vous puissiez réagir rapidement.
* **Résumés quotidiens :** combiner avec Zapier ou une autre intégration pour publier un résumé matinal dans Slack, montrant les tâches créées ou terminées la veille.

<Note>Cette page a été traduite à l'aide de l'IA. Pour les informations les plus précises et à jour, consultez la [version anglaise](/). </Note>
