Slack
This documentation will teach you how to integrate your AI into Slack.
Integration is a paid user feature. Therefore, only users with professional subscriptions and above can use integrations.
How to Integrate Vanus AI in Slack
Prerequisites:
- Have a Slack Account.
- Have a Vanus AI account.
Step 1: Create an AI Application
- Navigate to Vanus AI and Github, Google, Microsoft Account① or click Sign up②.
- Initiate a new AI App by hitting the Create App③ button.
- Input an App Name④, select an App Model⑤, upload to the Knowledge Base⑥, then click Create⑦.
If you find yourself uncertain about which app model to select, please refer to the Large Language Models (LLM) Documentation for clear guidance on choosing the most suitable LLM for your requirements.
- Select the Integrations Tab⑧ and select the Slack Integration⑨.
Step 2: Create a Slack App
- Go to Slack API, and click Create New App①.
- Select From scratch②.
- Set the App Name③ and workspace④, then click the Create App⑤ button.
Step 3: Configure your App
- Add Permissions⑥ feature for your app.
- Scroll down to Scopes/Bot Token Scopes, and click Add an OAuth Scope⑦.
- Search the name of the permission and click on it to add the permission. Search and add the following permissions chat:write:public⑧, chat:write⑨, im:history⑩, app_mentions:read⑪ permission to your app.
- Scroll up to the top of the page, and click Install to Workspace⑫ to install your app.
- Click Allow⑬ to install the app.
- Copy⑭ the Bot User OAuth Token.
- Paste the Bot User OAuth Token in the Bot Token⑮ field in Vanus AI
- Click on the Basic Information⑯ tab, scroll down to App-Level Tokens and click on Generate Tokens and Scopes⑰.
- Write the Token Name⑱ and click on the Add Scope button, Select connections:write⑲ and click on the Generate⑳ button.
- Copy㉑ the App-Level Tokens
11.Give the Integration a Name㉒. The Bot Token㉓ is the same as credentials in ⑮. Paste in the App Token㉔ field in Vanus AI and click on the Create㉕ button.
- The connection will show the Running㉖ status.
- Scroll up to Socket Mode㉗ tab and Enable㉘ Socket Mode.
- Scroll down to Event Subscriptions㉙ tab, Enable㉚ Event Subscription.
- Click on Subscribe to bot events drop-down, click on the Add Bot User Event㉛.
- Add app_mention㉜ & im_history_changed㉝. Click on Save Changes㉞ button.
Communicate with the AI.
To communicate with the AI in a channel, you need to mention the AI using the @ and the AI name, then ask your question.