Skip to content

This bot is a service that analyzes Slack thread messages and automatically generates responses using ChatGPT. It is built with Go and follows Domain-Driven Design (DDD). Its main use cases include improving team communication efficiency and automating question responses.

License

Notifications You must be signed in to change notification settings

gs1068/slack-gpt-bot

Repository files navigation

Slack GPT Bot

ディレクトリ構成

├── Dockerfile
├── Makefile
├── README.md
├── config
│   └── load_env.go
├── domain
│   ├── model
│   │   ├── gpt.go
│   │   ├── slack.go
│   │   ├── slack_test.go
│   │   ├── spreadsheet.go
│   │   └── spreadsheet_test.go
│   └── repository
│       ├── gpt.go
│       ├── slack.go
│       └── spreadsheet.go
├── go.mod
├── go.sum
├── infrastructure
│   ├── gpt
│   │   └── gpt.go
│   ├── slack
│   │   └── slack.go
│   └── spreadsheet
│       └── spreadsheet.go
├── interfaces
│   ├── gpt.go
│   └── slack.go
├── main.go
├── router
│   └── router.go
└── usecase
    ├── gpt.go
    └── slack.go

インフラ構成

インフラ構成

使用技術

  • 言語: Go
  • API:
    • Slack API
    • OpenAI GPT API
    • Google Spreadsheet API
  • インフラ:
    • Docker
    • ECR
    • AWS App Runner

環境設定

.env ファイル

以下の環境変数を設定してください。

SLACK_BOT_TOKEN="xoxb-xxxx-xxxx-xxxx-xxxx"
OPENAI_API_KEY="sk-xxxx-xxxx-xxxx-xxxx"
SPREADSHEET_ID="xxxx-xxxx-xxxx-xxxx-xxxx"

GCP から取得した credentials.json ファイルを ./ ディレクトリに配置してください。

About

This bot is a service that analyzes Slack thread messages and automatically generates responses using ChatGPT. It is built with Go and follows Domain-Driven Design (DDD). Its main use cases include improving team communication efficiency and automating question responses.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •