{"id":13820783,"url":"https://github.com/masuidrive/slack-summarizer","last_synced_at":"2026-01-18T14:09:27.164Z","repository":{"id":143217760,"uuid":"608689441","full_name":"masuidrive/slack-summarizer","owner":"masuidrive","description":"OpenAI's ChatGPT API to create and post a summary of a Slack public channel.","archived":false,"fork":false,"pushed_at":"2024-07-17T02:45:25.000Z","size":945,"stargazers_count":180,"open_issues_count":0,"forks_count":101,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-16T10:41:14.135Z","etag":null,"topics":["chatgpt","slack","slack-bot"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/masuidrive.png","metadata":{"files":{"readme":"README.ja.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-02T14:39:37.000Z","updated_at":"2025-04-27T15:34:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"f87402a6-0346-491e-a6ef-a30e4aed2858","html_url":"https://github.com/masuidrive/slack-summarizer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/masuidrive/slack-summarizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masuidrive%2Fslack-summarizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masuidrive%2Fslack-summarizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masuidrive%2Fslack-summarizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masuidrive%2Fslack-summarizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/masuidrive","download_url":"https://codeload.github.com/masuidrive/slack-summarizer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masuidrive%2Fslack-summarizer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28537492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T13:04:05.990Z","status":"ssl_error","status_checked_at":"2026-01-18T13:01:44.092Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatgpt","slack","slack-bot"],"created_at":"2024-08-04T08:01:08.898Z","updated_at":"2026-01-18T14:09:27.129Z","avatar_url":"https://github.com/masuidrive.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# ChatGPT を使って Slack の Public channel をまとめて要約するスクリプト\n\n[In English](./README.md)\n\nby [masuidrive](https://twitter.com/masuidrive) @ [Bloom\u0026Co., Inc.](https://www.bloom-and-co.com/) 2023-\n[APACHE LICENSE, 2.0](https://www.apache.org/licenses/LICENSE-2.0)\n\n![](./images/slack-summarized.ja.png)\n\nOpenAI の ChatGPT API を使って、Slack の Public channel の要約を作って投稿するスクリプトです。\n\nチャンネルが増えた組織では読むのが追いつかないことが多いため、要約を作って投稿することで、チャンネルの活動を把握しやすくすることができます。\n\nこのコードの大半も ChatGPT を使って書きました。もっといいプロンプトや機能拡張があったら、Pull Request を送ってください\n\n簡単な解説などはこちらの記事に書いています。\n\nhttps://note.com/masuidrive/n/na0ebf8a4c4f0\n\nOpenAI の情報取扱に関する規約は下記などを自分で確認してください\n\nhttps://platform.openai.com/docs/data-usage-policies\n\n## GitHub Actions で動かす\n\nGitHub Actions で毎日午前 5 時に動くようになっています。これ以外の環境で動かす場合は適当に頑張ってください。\n\n### 自分の GitHub アカウントに fork する\n\n- 右上の\"Fork\"ボタンを押して、自分のリポジトリに fork します\n- 有料プランにするなどして GitHub Actions が実行できるようにしておきます\n\n### 環境変数を設定する\n\n- \"Settings\"タブを開き、左の\"Secrets and variables\"→\"Actions\"を開きます\n- 右上の緑の\"New Repository Secret\"をクリックすると環境変数が設定できるので、次の 3 つの変数を設定します\n\n![](https://raw.githubusercontent.com/masuidrive/slack-summarizer/main/images/github-settings.png)\n\n#### OPEN_AI_TOKEN\n\n- OpenAI の認証トークン\n- [OpenAI の Web サイト](https://platform.openai.com/)にアクセスしてください\n- 右上の\"Sign In\"ボタンをクリックし、アカウントにログインしてください\n- ページ上部の\"API\"メニューから、\"API Key\"をクリックして、API キーを生成します\n- \"API Key\"ページにアクセスすると、API キーが表示されます。これをコピーして Value に貼り付けます\n\n#### SLACK_BOT_TOKEN\n\n- Slack の API 認証トークン\n- [Slack API の Web サイト](https://api.slack.com/)にアクセスし、ログインしてください\n- \"Create a new app\"をクリックして、\"From an app manifest\"を選択し manifest に下記の内容をコピーします\n\n```\n{\"display_information\":{\"name\":\"Summary\",\"description\":\"Public channelのサマリーを作る\",\"background_color\":\"#d45f00\"},\"features\":{\"bot_user\":{\"display_name\":\"Summary\",\"always_online\":false}},\"oauth_config\":{\"scopes\":{\"bot\":[\"channels:history\",\"channels:join\",\"channels:read\",\"chat:write\",\"users:read\"]}},\"settings\":{\"org_deploy_enabled\":true,\"socket_mode_enabled\":false,\"token_rotation_enabled\":false}}\n```\n\n- 画面左の\"Install App\"をクリックし、右に出る\"Install App to Workspace\"をクリックして、アプリをワークスペースにインストールします。インストールが完了すると、bot の OAuth アクセストークンが表示されます\n- この`xoxb-`で始まるトークンをコピーして Value に貼り付けます\n\n#### SLACK_POST_CHANNEL_ID\n\n- 要約結果を投稿する Slack の channel_id\n- Slack で要約結果を投稿したいチャンネルを開きます\n- 上部のチャンネル名をクリックし、出てきた Popup の最下部にある Channel ID を Value に貼り付けます\n\n#### LANGUAGE\n\n- 要約を作る言語を指定します\n- \"ja\"や\"Japanese\", \"en\" \"English\"などなんでも指定できます\n\n#### TIMEZONE\n\n- 主に読まれる地域のタイムゾーンを指定します。\n- \"Asia/Tokyo\", \"America/New_York\"など\"TZ database name\"形式で指定します\n- https://en.wikipedia.org/wiki/List_of_tz_database_time_zones\n\n### Channel に bot をインストール\n\n- 画面上部の検索窓から\"Summary\"を検索し、\"Summary [APP]\"をクリックします。\n- 上の\"Summary\"をクリックし、\"Add this app to a channel\"をクリックして、要約結果を投稿したいチャンネルを指定します\n\n### 実行\n\n- GitHub のリポジトリで\"Settings\"タブを開き、左の\"Actions\"→\"General\"を開きます\n- \"Actions permissions\"の\"Allow all actions and reusable workflows\"を選択して保存してください\n\nこれらの設定をすると、毎日午前 5 時に Slack の Public channel の要約結果が投稿されます。\n\n手動で実行してみる場合には\"Actions\" タブを開き、左の\"Summary\"をクリックして、右の\"Run workflow\"をおしてください。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasuidrive%2Fslack-summarizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmasuidrive%2Fslack-summarizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasuidrive%2Fslack-summarizer/lists"}