Aller au contenu

Slack

Dans ce guide, nous allons intégrer votre Assistant IA à Slack :

  1. Créer une application Slack dédiée
  2. Configurer l’application Slack
  3. Intégrer votre bot Slack avec Quickchat AI

Rendez‑vous sur api.slack.com/apps et cliquez create a new app.

create_slack_app_1

Sélectionnez Create an app from scratch, saisissez le nom de votre Assistant et choisissez l’espace de travail cible, puis Create App.

create_slack_app_2

create_slack_app_3

Dans les paramètres de l’app, via la section Features, ouvrez App Manifest.

create_slack_app_5

Collez le manifeste YAML suivant et adaptez‑le si besoin :

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

Sauvegardez le manifeste. Avant la prise en compte, Slack vous demandera de vérifier l’URL en cliquant sur le lien.

create_slack_app_6

Votre app est configurée. Pour modifier l’apparence, ouvrez Settings → Basic information → Display Information :

create_slack_app_7

Récupérez :

  • 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 (installez le bot si demandé, puis copiez le token)

create_slack_app_8

Gardez l’onglet ouvert.

Dans un nouvel onglet, ouvrez le tableau de bord Quickchat AI, allez dans Integrations, trouvez Slack et renseignez App ID, Signing Secret et OAuth Token.

slack_integration

Et voilà ! 🎉 Votre bot est prêt à être testé sur Slack !