Slackbot that helps employees internally find the right person for the job
IntraOrgBot is a Slackbot designed to streamline internal communication within an organization. Its main purpose is to help employees find the right person for a specific job or task. By leveraging the power of Slack's messaging platform and LLM ( In this instance, its Groq), IntraOrgBot enables users to quickly search for and connect with colleagues who have the expertise or knowledge needed to get the job done.
To set up IntraOrgBot, follow these steps:
-
Clone the repository to your local machine:
git clone https://github.com/syedshahzebhasnain/IntraOrgBot.git
-
Install the required dependencies:
npm install
-
Create and setup Slack app. Details below
-
Setup Groq Api and obtain credentials
-
Ensure that you have created the local.json file with the config details as mentioned in the slack app and groq setup
-
Setup your org file in the data/org-data.json file.
-
Start the bot:
npm run start
To set up the Slack app, follow these steps:
-
Go to the Slack API website and create a new app.
-
Configure the app settings, including the app name, description, and icon.
-
In Settings-> Socket Mode, please enable Socket Mode as this code uses socket mode explicitly
-
In Features-> Slash Commands, create a new command called
/hello
. This code uses it as health check. -
In Features-> Event Subscription, Enable Events. Also, subscribe to
app_mention
event -
Install the app to your workspace by clicking on the "Install App to Workspace" button.
-
In Settings-> Install app, Get the Oauth Token for Workplace and put in the
token
config. -
In Settings-> Basic Information, Get the signing secret and plug it into
signingSecret
-
In Settings-> Basic Information, Go to App-Level Tokens, generate app level token with
connections:write
andauthorizations:read
and add this toappToken
in config -
Enable the WebSocket mode for your app by going to the "Features" section and enabling the "Enable Events" toggle.
-
Save the changes and your Slack app will now be set up running
To set up the Groq API, follow these steps:
-
Register for a Groq API account on the Groq website.
-
Obtain your API key from the Groq dashboard.
-
In your config file, add them to groqConfig -> apiKey. Please dont share or commit anywhere
To quickly check if the bot is working , call the /hello
command !
To ask any question about the organization, just tag the bot and ask right away
eg.
```
@Orgbot, who can help me with backend tasks if XYZ is Out of Office and their boss isnt responding`
````