Skip to content

zarissam/SlackAuto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slack Automation Tool

This project is an automation tool that connects to a Slack workspace, retrieves messages, sends them to OpenAI's API for structured data extraction, and organizes the data into a Google Sheet.

Project Structure

slack-automation-tool
├── src
│   ├── main.py                # Entry point of the application
│   ├── slack_client.py        # Handles Slack API interactions
│   ├── openai_client.py       # Interfaces with OpenAI API
│   ├── google_sheets_client.py # Manages Google Sheets interactions
│   ├── utils
│   │   └── helpers.py         # Utility functions for data processing
├── requirements.txt           # Project dependencies
├── config
│   └── settings.py            # Configuration settings
├── .env                       # Environment variables
└── README.md                  # Project documentation

Installation

  1. Clone the repository:

    git clone <repository-url>
    cd slack-automation-tool
    
  2. Create a virtual environment:

    python -m venv venv
    
  3. Activate the virtual environment:

    • On Windows:
      venv\Scripts\activate
      
    • On macOS/Linux:
      source venv/bin/activate
      
  4. Install the required dependencies:

    pip install -r requirements.txt
    

Configuration

  1. Create a .env file in the root directory and add your API keys:

    SLACK_API_TOKEN=<your_slack_api_token>
    OPENAI_API_KEY=<your_openai_api_key>
    GOOGLE_SHEETS_API_KEY=<your_google_sheets_api_key>
    
  2. Modify config/settings.py to adjust any other settings as needed.

Usage

To run the application, execute the following command:

python src/main.py

This will initiate the process of retrieving messages from Slack, sending them to OpenAI for structured data extraction, and writing the results to Google Sheets.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any enhancements or bug fixes.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages