Slack
I den här guiden integrerar vi din AI‑assistent i Slack. Översikt:
- Skapa en dedikerad Slack‑app
- Konfigurera Slack‑appen
- Integrera din Slack‑bot med Quickchat AI
Skapa din Slack‑app
Section titled “Skapa din Slack‑app”Gå till api.slack.com/apps och klicka create a new app.
Välj Create an app from scratch, ange namn och workspace och klicka Create App.
Konfigurera din Slack‑app
Section titled “Konfigurera din Slack‑app”Slack kan konfigureras via ett manifest (YAML). Gå till Features → App Manifest.
Klistra in detta manifest och anpassa vid behov:
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: trueoauth_config: scopes: bot: - im:history - im:write - chat:writesettings: 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: trueoauth_config: scopes: bot: - im:history - im:write - chat:write - app_mentions:read - channels:history - groups:historysettings: 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
Spara manifestet. Slack kan kräva att du verifierar URL:en:
Din app är konfigurerad. För utseende, gå till Settings → Basic information → Display Information:
Integrera din Slack‑bot med Quickchat AI
Section titled “Integrera din Slack‑bot med Quickchat AI”Du behöver:
- 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 (installera boten och kopiera token)
Låt fliken vara öppen.
Öppna Quickchat AI‑panelen i en ny flik, gå till Integrations, välj Slack och ange App ID, Signing Secret och OAuth Token.
Klart! 🎉 Din bot är redo att testas i Slack!