Saltearse al contenido

Slack

En esta guía, integraremos tu Asistente de IA en Slack. Resumen:

  1. Crear una app de Slack dedicada
  2. Configurar la app de Slack
  3. Integrar tu bot de Slack con Quickchat AI

Ve a api.slack.com/apps y haz clic en create a new app.

create_slack_app_1

Selecciona Create an app from scratch, pon un nombre y el Workspace, y pulsa Create App.

create_slack_app_2

create_slack_app_3

Slack permite configurar toda la app con un manifiesto (YAML). En los ajustes de la app, ve a Features → App Manifest.

create_slack_app_5

Pega este manifiesto YAML y ajústalo si es necesario:

display_information:
name: Talk to AI
description: Talk to me about Quickchat!
features:
app_home:
home_tab_enabled: false
messages_tab_enabled: true
messages_tab_read_only_enabled: false
bot_user:
display_name: Talk to AI
always_online: true
oauth_config:
scopes:
bot:
- im:history
- im:write
- chat:write
settings:
event_subscriptions:
request_url: https://slack.quickchat.ai/chat/
bot_events:
- message.im
- app_home_opened
org_deploy_enabled: false
socket_mode_enabled: false
token_rotation_enabled: false
display_information:
name: Talk to AI
description: Talk to me about Quickchat!
features:
app_home:
home_tab_enabled: false
messages_tab_enabled: true
messages_tab_read_only_enabled: false
bot_user:
display_name: Talk to AI
always_online: true
oauth_config:
scopes:
bot:
- im:history
- im:write
- chat:write
- app_mentions:read
- channels:history
- groups:history
settings:
event_subscriptions:
request_url: https://slack.quickchat.ai/chat/
bot_events:
- message.im
- app_home_opened
- app_mention
- message.groups
- message.channels
org_deploy_enabled: false
socket_mode_enabled: false
token_rotation_enabled: false

Guarda el manifiesto. Antes de aplicar cambios, Slack te pedirá verificar la URL:

create_slack_app_6

¡Hecho! Si quieres ajustar apariencia, ve a Settings → Basic information → Display Information:

create_slack_app_7

Necesitarás:

  • App ID: Settings → Basic Information → App Credentials
  • Signing Secret: Settings → Basic Information → App Credentials
  • Bot User OAuth Token: Features → OAuth & Permissions → OAuth Tokens for Your Workspace (instala el bot y copia el token)

create_slack_app_8

Déjalo abierto.

En otra pestaña, entra al panel de Quickchat AI, ve a Integrations, busca Slack y proporciona App ID, Signing Secret y OAuth Token.

slack_integration

¡Listo! 🎉 Tu bot ya está listo para ser probado en Slack.