Recently, the AI chatbot ChatGPT has been integrated into the Slack platform. It will be available on Slack along with 2600+ other integrated apps. Slack users can employ ChatGPT to draft messages and replies within seconds. The move is important and advantageous for businesses that intend to serve their customers better.
The integration of Slack and ChatGPT will open up opportunities for automation, accelerate business growth, and improvise the overall workflow for industries heavily dependent on Slack for their efficacy.
Introducing the ChatGPT App for Slack
The collaboration between companies Salesforce and Open AI has made it possible to introduce ChatGPT App on the Slack platform. Slack will integrate the AI chatbot to provide written assistance, research tools, and summaries of the conversations.
The move is intended to optimize communication between business professionals and save time by speeding up the communication process. As the ChatGPT app for Slack is in its beta version, it is not easily available on the platform.
However, users can apply to get ChatGPT on slack and they will be waitlisted till their request is accepted.
How to Use ChatGPT with Slack
We have mentioned the step-by-step guide to Using ChatGPT with Slack. Learn more about how OpenAI uses Slack and the ChatGPT app here.
How to sign up or Join ChatGPT app for Slack waitlist
The AI chatbot, ChatGPT on Slack App is still in its infancy stage and under development. Thus, you will be waitlisted after you have signed up for ChatGPT. Here’s how to sign up or Join ChatGPT app for the Slack waitlist:
How to summarize conversations with ChatGPT on Slack
How to draft responses with ChatGPT for Slack
Here’s how you can draft responses with ChatGPT for slack:
How to ask ChatGPT questions in Slack
One can ask ChatGPT questions in Slack and the answers will be in the same conversational tone ChatGPT uses. This is also the same as other AI chatbots such as Bing Chat. Here’s the step-by-step process:
ChatGPT Slack Intergration
Step 1: Register an app with Slack and obtain tokens
Step 2: Obtain the OpenAI API key
In order to integrate ChatGPT into Slack, you will have to get the OpenAI API key to use GPT-3 API. Here’s how to do that:
Step 3: Install necessary dependencies
You will not have to install important applications. Firstly, you need to install Slack-bolt which allows you to run Slack applications easily. You can get API to build bots, run Slack’s features, and undertake custom integration. You will also need the OpenAI and Slack applications.
Here’s the command you will require to install dependencies:
Step 4: Run the application
Now once you have installed the dependencies, you will have to use the 3 tokens that we created in the previous step in the following script:
SLACK_BOT_TOKEN = "YOUR_TOKEN"
SLACK_APP_TOKEN = "YOUR_TOKEN"
OPENAI_API_KEY = "YOUR_TOKEN"
import os
import openai
from slack_bolt.adapter.socket_mode import SocketModeHandler
from slack import WebClient
from slack_bolt import App
# Event API & Web API
app = App(token=SLACK_BOT_TOKEN)
client = WebClient(SLACK_BOT_TOKEN)
# This gets activated when the bot is tagged in a channel
@app.event("app_mention")
def handle_message_events(body, logger):
# Log message
print(str(body["event"]["text"]).split(">")[1])
# Create prompt for ChatGPT
prompt = str(body["event"]["text"]).split(">")[1]
# Let the user know that we are busy with the request
response = client.chat_postMessage(channel=body["event"]["channel"],
thread_ts=body["event"]["event_ts"],
text=f"Hello from your bot! :robot_face: \nThanks for your request, I'm on it!")
# Check ChatGPT
openai.api_key = OPENAI_API_KEY
response = openai.Completion.create(
engine="text-davinci-003",
prompt=prompt,
max_tokens=1024,
n=1,
stop=None,
temperature=0.5).choices[0].text
# Reply to thread
response = client.chat_postMessage(channel=body["event"]["channel"],
thread_ts=body["event"]["event_ts"],
text=f"Here you go: \n{response}")
if __name__ == "__main__":
SocketModeHandler(app, SLACK_APP_TOKEN).start()
Once you have followed the script, you will see the message “Bolt app is running” which means that the app is now active.
Step 5: Test out
Now all you need to do is test whether ChatGPT has been properly integrated or not on Slack. Put any query and if you get an automated answer, you have successfully integrated ChatGPT into Slack.
ChatGPT app for Slack Benefits for customers
Conclusion – Be the first to try the ChatGPT for the Slack app
ChatGPT for Slack App offers many novel benefits and opportunities useful for every professional out there. Many IT leaders have lauded the integration of ChatGPT within Slack, terming it a powerful and innovative initiative. Automating work, reducing workload, and streamlining the workflow are all features that will improve the overall efficiency of business and take them to new heights. So, we advise you not second to guess anything and be the first to try the ChatGPT for Slack app.
For more information add chatgpt to slack, please get in touch with us!