skip to content
Vedang Wartikar

Smart Lab Assistant

/ 2 min read

What’s The Project About?

Automation of Bulk PCs in University Laboratories using NLP and Slack API

GitHub Link: github.com/vedangwartikar/smart-lab-assistant

Automation of Bulk PCs using NLP and Slack API

this slowpoke moves

Features

Python automation scripts that can be initiated by providing natural language commands in a Slack channel which will execute on remote PCs:

  • Shutdown/Restart
  • Generate a Process Log file
  • Send files to/from smartphone and PCs
  • Install python packages
  • Send routine alerts

Usage

Installation

You will need to:

Terminal window
$ git clone https://github.com/vedangwartikar/slack-automation.git
$ cd slack-automation

OR (incase of any dependency issues) you can just pull the docker image without explicitly doing all of the above installation steps

Terminal window
$ docker pull rutuja912/modified_server

Once the installation is complete

  • Enter the Slack Legacy token in main.py

The code is multi-platform and is tested on both Windows and Unix/Linux machines.

How to Run

Terminal window
#install python dependencies from requirement.txt
$ python main.py

Once the code gets running on the PC, commands can be issued on the Slack channel in natural language. These commands will be interpreted on the server PC which will initiate the respective automation scripts.

Functionalities

Slack channel commandsDescription
HelpTo display commands and their usage
ShutdownTo shutdown a PC
RestartTo Restart a PC
Install python library XYZInstalls any python library using pip command
Generate Process logSends a process log file of the PC onto the Slack channel
Send file XYZSend any specific file
Send alertTo provide routine alerts to PC

Feel free to contribute through a PR or report any issues here.