Slack
Última actualización:2023-12-21

Slack

You can integrate Bot service into your Slack app, allowing users in your Slack workspace to communicate with the Bot through the app.

Create a Slack App

image-20240108155507514

Visit Slack API, and click on "Create New App" to create your Slack app.

Configure Slack App

image-20240109191118098

In "App Home", enable "Message Tab".

image-20240108160135658

Enter the Slack app, find "App Credentials" in "Basic Information", and copy the marked information in the picture to the Slack configuration page of GPTBots, and click "Submit".

image-20240108160019427

After clicking "Submit", you will get three URLs below.

image-20240108160433503

Copy the "OAuth URL" and configure it in the "Redirect URLs" in "OAuth & Permissions".

iShot_2024-01-11_17.49.19

At the same time, in the "Bot Token Scopes" of "Scopes" below, add four "Scopes": app_mentions:read, channels:read, chat:write and im:history.

image-20240108160527961

Copy the "Event URL" and configure it in the "Request URL" in "Event Subscriptions".

image-20240108160746701

At the same time, in the "Subscribe to bot events" below, add three "Events": app_home_opened, app_mention and message.im.

image-20240108160638759

Go back to the Slack configuration page of GPTBots, click the link under "Authorization", and authorize.

Chat with Bot in Channel

image-20240603151021972

In the chat input box of the channel, you can chat with the Bot by "@Bot".

Chat with Bot in Private Message

image-20240603150916794

Find the app in the app list of the workspace, and send a message to chat with the Bot.