Search K
Appearance
Appearance
Learn how to configure CalypsoAI as a chatbot in your Slack environment using our on-premises deployment option. This tutorial walks you through the complete process of creating, configuring, and deploying your CalypsoAI Slack bot.
PREREQUISITES
You must have an active CalypsoAI Inference Defend subscription, and be an administrator user of your organization's Slack environment.
A bot project is a fundamental component for your Slack integration. For the purpose of this tutorial, we will use the project to configure some basic settings and generate the necessary credentials.
To create a bot project:
STORING THE TOKEN
Make sure you store the token securely, as it is required to complete the configuration in Slack.
Your CalypsoAI bot project is created and ready to be added to Slack.
After creating the bot project, you need to create the CalypsoAI Slack app.
To create the CalypsoAI Slack app:
curl - H "Authorization: Bearer ${CALYPSOAI_TOKEN}"
"${CALYPSOAI_URL}/backend/v1/bots/slack/manifest" > manifest.jsonCALYPSOAI_TOKEN string with the API token you created in Create a bot project.CALYPSOAI_URL string with the actual base URL of your backend.
CREATING AN APP
If there are other apps already listed on the page, Create an App is not present. Instead, select Create New App.
The CalypsoAI Slack app is created.
Next, you need to configure your CalypsoAI deployment server.
To configure your CalypsoAI deployment server:
CAI_MODERATOR_SLACK_CLIENT_ID = "ENTER-YOUR-APP-CLIENT-ID-HERE"CAI_MODERATOR_SLACK_CLIENT_SECRET = "ENTER-YOUR-CLIENT-SECRET-HERE"CAI_MODERATOR_SLACK_SIGNING_SECRET = "ENTER-YOUR-SIGNING-SECRET-HERE"ENVIRONMENT VARIABLE CREDENTIALS
To find your app credentials:

With the CalypsoAI deployment server restarted, you can add the CalypsoAI app to Slack.
Now that you created the CalypsoAI app and configured your deployment server, you need to add the app to your Slack environment.
To add the CalypsoAI app to Slack:
The app is installed and ready for configuration.
Establish the connection between your Slack environment and the CalypsoAI bot, enabling secure communication and functionality.
To configure the CalypsoAI bot app:

/configure command.
After the token is accepted, your Slack integration is complete and you can start interacting with the CalypsoAI bot through the message text box:
/models./chat <YOUR-MESSAGE>./chat What is the capital of Peru?./chat-with <MODEL-NAME>./chat-with gpt-4.ABOUT TAB
You can select the About tab to view app permissions and see a list of available commands.
Finalize the integration process by configuring the bot project's scanners, providers, and users in the CalypsoAI web app.
To finalize the integration:
Your Slack integration is now complete!