ClawdBot Zero-to-Hero Tutorial 2: Adding ClawdBot to Slack (2/3) - Moltbot (formerly Clawdbot)
This YouTube insight note was created with LilysAI. Sign up free and get 10× faster, deeper insights from videos.
Q: How to add ClawdBot to Slack?
You need to create a Slack app from a manifest, obtain bot (XOXB) and app (XAPP) tokens, then configure ClawdBot in the terminal using these tokens.
Q: What are the prerequisites?
A Slack account and a ClawdBot setup.
How do you integrate ClawdBot with Slack? You must navigate a complex, multi-step process involving Slack API settings and terminal commands to connect the bot.
1. Setting Up a Slack Workspace for ClawdBot
To integrate ClawdBot with Slack, users must first set up a Slack account and create a dedicated workspace.1.1. Creating a Slack Account and Workspace
- Users can register for a Slack account by visiting slack.com and clicking "Get Started" .
- Logging in with a Google account simplifies the registration process .
- After logging in, users are prompted to create a workspace, which serves as a chat space for teams .
- The example workspace is named "AI Chats Cloud" .
- Users can skip inviting colleagues during the initial setup .
- The setup process may involve a prompt to pay, but refreshing the page allows access to a limited free version of Slack .
- The goal is to invite ClawdBot into this workspace to enable chat interactions from any location .
2. Integrating ClawdBot with Slack via API and Terminal
Integrating ClawdBot with Slack involves a complex, multi-step process that requires creating a Slack app, configuring its settings, obtaining specific tokens, and using terminal commands.2.1. Creating a Slack App and Configuring Manifest
- Adding an application to the Slack workspace is a complex process .
- Users must access the Slack API by navigating to
api.slack.com/apps.- On the Slack API page, click "Create an app" .
- Select "From Manifest" to use a pre-written configuration .
- Choose the desired Slack workspace, such as "Python AI Chat Cloud" .
- A configuration file, found in the ClawdBot documentation under the "Manifest" section, needs to be copied .
- This JSON code must be pasted into the Slack app creation page .
- After accepting cookies, click "Next" and then "Create" to grant the bot necessary permissions .
- Upon creation, various IDs and secrets are generated, which can be dismissed for now .
2.2. Configuring ClawdBot Channels and Tokens via Terminal
- The next step involves using the Terminal tool to configure ClawdBot .
- Typing
Cloud Bot Channelsin the terminal shows available communication channels, which are initially zero . - The command line interface can be challenging, but ChatGPT can assist with understanding commands .
Cloud Bot Channels listdisplays connected chat platforms, which will be empty before configuration .
- Typing
- To add a channel, use
Cloud Bot Configin the terminal .- Select "local" for where ClawdBot is running and confirm the model configuration .
- Choose "channels" and then "Add or Link new channel" .
- Select "Slack" (Socket Mode) .
- The system will request several tokens, starting with the Slack Bot Token (prefixed with
XOXB) .- To find this token, go to "OAuth Permissions" under the "Features" section in the Slack API settings .
- Click "Install to Python for AI Chat Cloud" and allow the installation .
- The Bot User OAuth Token will be generated; copy and paste it into the terminal .
- The second required token is the Slack App Token .
- In the Slack API settings, navigate to "Basic Information" and then "App Level Tokens" .
- Generate a new token, name it "Slack bot," and add the
connection:writescope . - Copy the generated token (prefixed with
xapp) and paste it into the terminal .
- Configure Slack channel access by selecting "yes" to allow ClawdBot to join channels .
- Choose "open" to allow everyone in the workspace to use the bot .
- Complete the configuration by repeatedly pressing the down arrow and selecting "finished" .
- Enable Direct Message (DM) access by selecting "yes" .
- For security, choose "pairing mode," which requires explicit permission for each chat interaction .
2.3. Testing and Pairing ClawdBot in Slack
- After completing the configuration, select "continue" in the terminal to finalize the setup .
- To test the integration, refresh the Slack channel (web or app) .
- Locate ClawdBot in the channel and attempt to send a message .
- If the bot is not in the channel, add it manually .
- Sending "hi" should elicit a response from ClawdBot, confirming successful integration .
- For pairing mode, a pairing code is required for direct messaging .
- Copy the last line of the code provided in the terminal, excluding the "Code" part, and paste it into the terminal .
- Copy the one-time password-like pairing code and paste it into the terminal, then press enter .
- This action allows the user to chat with the bot .
- Sending "hi" again should confirm that the pairing is successful and the bot responds .
- The configuration of ClawdBot with Slack is now complete .
- Users are encouraged to pause and review the steps if needed .
- Questions or suggestions can be left in the comments .
Understand massive materials like a genius — with LilysAI
Over 1,000,000 knowledge seekers use Lilys AI.
