> For the complete documentation index, see [llms.txt](https://docs.1millionbot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.1millionbot.com/es/chatbot/channels/slack.md).

# Slack

## Configuración

Para configurar la integración de tu asistente en Slack, necesitarás lo siguiente:

* Una cuenta de Slack con acceso al Workspace donde instalarás el asistente.
* Espacio para añadir nuevas aplicaciones a tu Workspace.

### Crear una aplicación de Slack

1. Accede a la [consola para desarrolladores de Slack](https://api.slack.com/apps).
2. Haz clic en 'Create New App' (Crear Nueva App) y selecciona la opción 'From Scratch' (Desde Cero).
3. Introduce un nombre para tu aplicación y elige un workspace.
4. Haz clic en 'Create App' (Crear App).

### Configurar permisos del bot

1. Accede a la sección del menú **App Home** para añadir la lista de permisos.
2. Haz clic en 'Review Scopes to Add' (Revisar Alcances para Agregar). <img src="/files/9lLmr3rXzaBNArMspa6m" alt="" data-size="original">
3. En el módulo **Scopes** haz clic en 'Add an OAuth Scope' en Bot Token Scopes. ![](/files/cT4zviJAZw3GEsUiEnXR)
4. Selecciona al menos los siguientes permisos: \
   \- *chat:write*\
   \- *im:history*\
   \- *im:read*\
   \- *im:write*
5. A continuación, volvemos a la sección **App Home** y en el módulo **Show Tabs** activaremos la opción 'Messages Tab' junto con el permiso 'Allow users to send Slash commands and messages from the messages tab'.\
   ![](/files/fPmKBY4V9cDKBl5B0Wjr)

### Activar integración

1. Accede a la sección del menú **Event Subscriptions** y habilita el uso de eventos.
2. Copia la URL que encontrarás en las opciones de integración y pégala en 'Request URL' del apartado **Enable Events**.\
   \
   ![](/files/J2eJqgKH85S33TiU8haa)\
   ![](/files/SXgTOI8rsmAS5ypQGERy)
3. En la misma sección, en el apartado **Subscribe to bot events**, haz clic en 'Add Bot User Event' y añade el evento *message.im* para habilitar la recepción de mensajes.
4. Accede a la sección del menú **Interactivity & Shortcuts** e inserta la misma URL que copiaste en el paso 2.\
   ![](/files/NIIlTsqUhtGRb4kVjPoU)
5. Accede a la sección del menú **Install App,** haz clic en 'Install to Workspace' y copia el token generado en 'Bot User OAuth Toke&#x6E;**'.**\
   ![](/files/QiTDONjaMivyvaQkOAQ4)
6. Por último, inserta en la plataforma los datos necesarios para la integración: \
   \- *Bot User OAuth Token*: El token generado a través de la sección **Install App**.\
   \- *Signing Secret*: Token que verifica la procedencia de las peticiones, se encuentra en la sección del menú **Basic Information**.\
   ![](/files/eTFWcPv33IvPfEIcO9uD)\
   ![](/files/V6bUMyGVrLwuwFoRmdMR)
7. ¡Listo!:tada: Realiza pruebas para verificar el funcionamiento de tu asistente en tu cuenta de Slack.&#x20;

## Limitaciones

* Solo se puede enviar 1 mensaje por segundo.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.1millionbot.com/es/chatbot/channels/slack.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
