跳到主要内容

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:

Step 1: Create an AI Application

  1. Navigate to Vanus AI and Github, Google, Microsoft Account① or click Sign up②.

  1. Initiate a new AI App by hitting the Create App③ button.

  1. 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.

  1. Select the Integrations Tab⑧ and select the Slack Integration⑨.

Step 2: Create a Slack App

  1. Go to Slack API, and click Create New App①.

  1. Select From scratch②.

  1. Set the App Name③ and workspace④, then click the Create App⑤ button.

Step 3: Configure your App

  1. Add Permissions⑥ feature for your app.

  1. Scroll down to Scopes/Bot Token Scopes, and click Add an OAuth Scope⑦.

  1. 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.

  1. Scroll up to the top of the page, and click Install to Workspace⑫ to install your app.

  1. Click Allow⑬ to install the app.

  1. Copy⑭ the Bot User OAuth Token.

  1. Paste the Bot User OAuth Token in the Bot Token⑮ field in Vanus AI

  1. Click on the Basic Information⑯ tab, scroll down to App-Level Tokens and click on Generate Tokens and Scopes⑰.

  1. Write the Token Name⑱ and click on the Add Scope button, Select connections:write⑲ and click on the Generate⑳ button.

  1. 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.

  1. The connection will show the Running㉖ status.

  1. Scroll up to Socket Mode㉗ tab and Enable㉘ Socket Mode.

  1. Scroll down to Event Subscriptions㉙ tab, Enable㉚ Event Subscription.

  1. Click on Subscribe to bot events drop-down, click on the Add Bot User Event㉛.

  1. 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.