---
title: "Slack"
description: "Integra Slack con Adapty para recibir notificaciones en tiempo real sobre eventos de suscripción."
---

[Slack](https://slack.com/) es una plataforma de mensajería y productividad para equipos que seguramente no necesita presentación.

Con esta integración, recibirás notificaciones en Slack cada vez que Adapty registre un evento de ingresos. Esto es muy útil si quieres celebrar cada subida de tu MRR o si quieres estar al tanto de cancelaciones de pruebas, problemas de facturación, reembolsos y más.

## Cómo configurar la integración con Slack \{#how-to-set-up-slack-integration\}

Necesitarás:

- crear una app en tu workspace de Slack
- darle permiso para publicar mensajes
- y luego proporcionar la información necesaria a Adapty en [Integrations → Slack](https://app.adapty.io/integrations/slack).

### 1\. Crear una app en Slack \{#1-create-an-app-in-slack\}

1. Ve al [panel de Slack API](https://api.slack.com/apps) y crea una app así:

  <img src="/assets/shared/img/f43aedc-CleanShot_2024-01-04_at_18.27.412x.webp"
  style={{
    border: 'none', /* border width and color */
    width: '700px', /* image width */
    display: 'block', /* for alignment */
    margin: '0 auto' /* center alignment */
  }}
/>

  <img src="/assets/shared/img/08fa9e6-CleanShot_2024-01-04_at_18.28.142x.webp"
  style={{
    border: 'none', /* border width and color */
    width: '700px', /* image width */
    display: 'block', /* for alignment */
    margin: '0 auto' /* center alignment */
  }}
/>

2. Dale cualquier nombre (`Adapty`, por ejemplo) y agrégala a tu workspace:

  <img src="/assets/shared/img/5002bb1-CleanShot_2024-01-04_at_18.29.132x.webp"
  style={{
    border: 'none', /* border width and color */
    width: '700px', /* image width */
    display: 'block', /* for alignment */
    margin: '0 auto' /* center alignment */
  }}
/>

### 2\. Dar permiso para publicar y obtener un token para tu app \{#2-give-permission-to-post-and-get-a-token-for-your-app\}

Serás redirigido a la página de tu app en Slack.

1. Desplázate hacia abajo y haz clic en **Permissions**:

  <img src="/assets/shared/img/9750451-CleanShot_2024-01-04_at_18.48.072x.webp"
  style={{
    border: 'none', /* border width and color */
    width: '700px', /* image width */
    display: 'block', /* for alignment */
    margin: '0 auto' /* center alignment */
  }}
/>

2. Tras la redirección, desplázate hacia abajo hasta **Scopes** y haz clic en **Add an OAuth Scope**:

  <img src="/assets/shared/img/db5b5f4-CleanShot_2024-01-04_at_18.50.262x.webp"
  style={{
    border: 'none', /* border width and color */
    width: '700px', /* image width */
    display: 'block', /* for alignment */
    margin: '0 auto' /* center alignment */
  }}
/>

3. Otorga los permisos `chat:write`, `chat:write.public` y `chat:write.customize`. Estos son necesarios para publicar en tus canales y personalizar los mensajes:

  <img src="/assets/shared/img/d97ccb9-CleanShot_2024-01-04_at_18.51.572x.webp"
  style={{
    border: 'none', /* border width and color */
    width: '700px', /* image width */
    display: 'block', /* for alignment */
    margin: '0 auto' /* center alignment */
  }}
/>

4. Desplázate de nuevo hasta la parte superior de la página y haz clic en **Install to Workspace**:

  <img src="/assets/shared/img/14608e3-CleanShot_2024-01-04_at_19.17.58.webp"
  style={{
    border: 'none', /* border width and color */
    width: '700px', /* image width */
    display: 'block', /* for alignment */
    margin: '0 auto' /* center alignment */
  }}
/>

5. Haz clic en **Allow**:

  <img src="/assets/shared/img/143967e-CleanShot_2024-01-04_at_18.53.292x.webp"
  style={{
    border: 'none', /* border width and color */
    width: '700px', /* image width */
    display: 'block', /* for alignment */
    margin: '0 auto' /* center alignment */
  }}
/>

Después de esto, serás redirigido a la misma página, pero ahora tendrás disponible un OAuth Token (`xoxb-...`). Esto es exactamente lo que necesitas para completar la configuración:

  <img src="/assets/shared/img/59b33ee-CleanShot_2024-01-04_at_18.55.222x.webp"
  style={{
    border: 'none', /* border width and color */
    width: '700px', /* image width */
    display: 'block', /* for alignment */
    margin: '0 auto' /* center alignment */
  }}
/>

### 3\. Configurar la integración en Adapty \{#3-configure-the-integration-in-adapty\}

1. Ve a [**Integrations** → **Slack**](https://app.adapty.io/integrations/slack):

  <img src="/assets/shared/img/b4ffd71-CleanShot_2024-01-04_at_19.05.222x.webp"
  style={{
    border: 'none', /* border width and color */
    width: '700px', /* image width */
    display: 'block', /* for alignment */
    margin: '0 auto' /* center alignment */
  }}
/>

2. Pega el token `xoxb-...` del paso anterior y elige en qué canales publicará la app. Puedes configurar la integración para recibir eventos solo en producción, en sandbox o en ambos. También puedes elegir en qué moneda se mostrarán los mensajes (la original o convertida a USD).

  :::note
  Ten en cuenta que si quieres publicar mensajes de Adapty en un canal privado, deberás añadir manualmente la app `Adapty` que creaste en Slack a ese canal. De lo contrario, no funcionará.
  :::

3. Por último, puedes elegir qué eventos quieres recibir en **Events**:

  <img src="/assets/shared/img/970a7bb-CleanShot_2024-01-04_at_19.09.472x.webp"
  style={{
    border: 'none', /* border width and color */
    width: '700px', /* image width */
    display: 'block', /* for alignment */
    margin: '0 auto' /* center alignment */
  }}
/>

¡Listo!

Los eventos se enviarán a los canales que hayas especificado. Podrás ver los ingresos cuando corresponda y consultar el perfil del cliente en Adapty:

  <img src="/assets/shared/img/852b8c8-CleanShot_2024-01-04_at_19.11.332x.webp"
  style={{
    border: 'none', /* border width and color */
    width: '700px', /* image width */
    display: 'block', /* for alignment */
    margin: '0 auto' /* center alignment */
  }}
/>