🤖 Chatbot
🔌 Integrations
Social
Slack

GPT Chatbot Integration For Slack

Register with Slack

To begin integrating Slack, you will need to register on the Slack API site.

Create Your First App

Once registered, head to Slack Apps (opens in a new tab) to create your first app.

Create App

Obtain App ID and Access Token

To Obtain the App ID and Access Token, you need to create an app, select the option From Scratch. You will now be redirected to the next page. Here, enter your App Name and select the Workspace where you wish to develop your app. Once done, click on Create App.

After creating the app, copy the following details from the Basic Information section:

  • App ID

App ID and Access Token

Configuration

OAuth & Permissions

Configure redirect URLs and choose the necessary bot scopes required to access workspace data. Enable bot commands for interaction.

  • Redirect URLs: You need to add a valid URL from your domain as the redirect URL.

App Configuration

  • Bot Scope: Choose the commands Bot Token Scope.

Bot Scope

  • Install the app to your workspace.

Install in Workspace

  • Copy the Bot User OAuth Token and paste the token in YourGPT Slack Access Token field.

Auth Token

  • In the App Home section, enable the option "Allow users to send messages with slash commands".

Show Tab

Enable Integration

To enable integration, follow these steps:

  1. Obtain the app ID from the Basic Information section of your Slack app.
  2. Paste the copied App ID into the Application ID field of YourGPT Slack Integration.
  3. Copy the Bot user Auth Token from the OAuth & Permissions section.
  4. Paste the copied credentials into the Access Token field of YourGPT Slack Integration.

Enable Integration

Copy the Webhook

Once integrated, copy the generated webhook for further use.

Copy Webhook

Create Slash Command

Go to the Slash Commands section and create a new slash command.

Create Slash Command

  • Add the following details:
    • Command: The command you want to use to interact with the bot.
    • Request URL: paste the webhook into the request URL.
    • Short Description: A description of the command.
    • Usage Hint: A brief description of the command.

Command

Additional Configuration

  • To receive notifications for desired events, add the copied webhook URL.

Additional Configuration

Additional Configuration

Flow Messaging Setup

  • Ensure webhook URL is added for flow messages to function properly.

Flow Messaging Setup Flow Interactivity

  • After a successful response, it will be added; otherwise, an error will occur.

📌 Note: Without using a slash command or mentioning the bot (@BOT), responses will only occur in direct messaging, not in general group chats.

By following these steps, you can easily integrate your chatbot with Slack. For any questions, contact our team via Live support or Mail Us.