{"id":48230119,"url":"https://github.com/solaoi/dify-plugin-slack-thread-bot","last_synced_at":"2026-04-04T19:32:40.189Z","repository":{"id":292874234,"uuid":"982200695","full_name":"solaoi/dify-plugin-slack-thread-bot","owner":"solaoi","description":"Slack bot plugin supporting thread replies (optionally posting the first reply in the channel), mrkdwn formatting, and referencing thread history and user list.","archived":false,"fork":false,"pushed_at":"2025-06-23T15:23:56.000Z","size":999,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-23T15:45:11.490Z","etag":null,"topics":["dify","dify-plugins"],"latest_commit_sha":null,"homepage":"https://marketplace.dify.ai/plugins/solaoi/slack-thread-bot","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/solaoi.png","metadata":{"files":{"readme":"README.ja.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2025-05-12T14:18:40.000Z","updated_at":"2025-06-23T15:23:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"a375359e-eb3d-4a3d-af35-034c0fa45c27","html_url":"https://github.com/solaoi/dify-plugin-slack-thread-bot","commit_stats":null,"previous_names":["solaoi/dify-plugin-slack-thread-bot"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/solaoi/dify-plugin-slack-thread-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solaoi%2Fdify-plugin-slack-thread-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solaoi%2Fdify-plugin-slack-thread-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solaoi%2Fdify-plugin-slack-thread-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solaoi%2Fdify-plugin-slack-thread-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/solaoi","download_url":"https://codeload.github.com/solaoi/dify-plugin-slack-thread-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solaoi%2Fdify-plugin-slack-thread-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31410827,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T19:29:44.979Z","status":"ssl_error","status_checked_at":"2026-04-04T19:29:11.535Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["dify","dify-plugins"],"created_at":"2026-04-04T19:32:39.615Z","updated_at":"2026-04-04T19:32:40.161Z","avatar_url":"https://github.com/solaoi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"*他の言語で読む: [English](https://github.com/solaoi/dify-plugin-slack-thread-bot/blob/v0.0.5/README.md), [简体中文](https://github.com/solaoi/dify-plugin-slack-thread-bot/blob/v0.0.5/README.zh-Hans.md), [Português](https://github.com/solaoi/dify-plugin-slack-thread-bot/blob/v0.0.5/README.pt_BR.md).*\n\n![license](https://img.shields.io/github/license/solaoi/dify-plugin-slack-thread-bot)\n\n## Slack Thread Bot\n\n\u003cimg width=\"120\" alt=\"Image\" src=\"_assets/icon.svg\"\u003e\n\n**Author:** solaoi\n**Version:** 0.0.5\n**Type:** 拡張機能\n\n### 解説\n\nスレッド返信（初回返信をチャンネルにも投稿可）、Slackファイルアップロード、mrkdwn対応、スレッド履歴・ユーザーリスト参照、任意で利用チャンネルを制限可能なSlackボットプラグイン。\n\n#### 機能\n\n- スレッド内での返信（初回の返信をチャンネルにも投稿できるオプション付き）\n- Slackファイルのアップロード（紐づけたチャットフローアプリから、参照可能）\n- Slack 上での `mrkdwn` フォーマットに対応\n- 紐づけたチャットフローアプリから、スレッド履歴・ユーザー情報・Slackスレッド情報（ `channel_id`, `thread_ts` ）を参照可能\n- 単一のSlackチャンネルへ利用を限定し、よりセキュアな運用を可能にするオプション\n\n\u003e [!NOTE]\n\u003e `channel_id` と `thread_ts` は主に高度なユースケース向けのパラメータです。通常のシナリオでは使用しないことがほとんどですが、[Slack Post](https://github.com/solaoi/dify-plugin-slack-post) プラグインをインストールしている場合、特定のチャンネルやスレッドへの投稿にこれらのパラメータを活用でき、Slack Thread Bot とアプリケーションをさらに深く連携させることができます。\n\n#### 1. インストール方法\n\n「プラグインをインストールする」画面で、以下のGitHubリポジトリを指定してインストールしてください。\n\nhttps://github.com/solaoi/dify-plugin-slack-thread-bot\n\n#### 2. 設定手順\n\n公式のSlackBotプラグインと同様の手順で設定してください。\nただし、本プラグインでは下記のスコープが必要となります。\n\n```text\napp_mentions:read, users:read, channels:history, groups:history, chat:write, groups:write, channels:read,\ngroups:read, files:read\n```\n\nまた、Slackアプリの設定で「Subscribe to bot events」を構成する際、以下のイベントを追加する必要があります：\n- `app_mention` - ボットがメンションされたとき\n- `message.channels` - パブリックチャンネルでメッセージを受信（スレッドキャッシュに必要）\n- `message.groups` - プライベートチャンネルでメッセージを受信（スレッドキャッシュに必要）\n\n`message.channels`と`message.groups`イベントは、ボットのキャッシング機能に不可欠です。これにより、Slackの厳しいレート制限（スレッド履歴取得は1分間に1回）を回避し、レート制限に達することなくリアルタイムでスレッドのコンテキストを維持できます。\n\n公式のSlackBotプラグインのセットアップ手順については以下をご参照ください。\n\nhttps://github.com/langgenius/dify-official-plugins/blob/main/extensions/slack_bot/README.md\n\n#### 3. 使い方\n\nこのプラグインを紐づけるチャットフローアプリの「開始ノード」で、以下の引数を設定することで、スレッド内の会話履歴やユーザー一覧を参照できます。\n\n\u003cdiv align=\"left\"\u003e\n  \u003cimg src=\"_assets/how_to_use_1_ja.png\" width=\"50%\"/\u003e\n\u003c/div\u003e\n\n| 入力フィールド | フィールドタイプ |\n| ---- | ---- |\n| thread_history | 段落（例：最大長 65535） |\n| thread_users | 段落（例：最大長 65535） |\n| files | ファイルリスト |\n| thread_ts | 短文（例：最大長 48（デフォルト）） |\n| channel_id | 短文（例：最大長 48（デフォルト）） |\n\n例：チャットフローアプリ内のLLMノード\n\n\u003cdiv align=\"left\"\u003e\n  \u003cimg src=\"_assets/how_to_use_2_ja.png\" width=\"80%\"/\u003e\n\u003c/div\u003e\n\n```text\nあなたはSlack上でユーザーの質問に答えるアシスタントです。\n直近の会話履歴を参照して、適切な回答をお願いします。\n\nなお、特定のユーザーに向けてメンションする場合は、\nユーザーリストを参照して、`\u003c@ID\u003e` 形式でメンションしてください。\n\n# 直近の会話履歴\n開始.thread_history\n# ユーザーリスト\n開始.thread_users\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolaoi%2Fdify-plugin-slack-thread-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolaoi%2Fdify-plugin-slack-thread-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolaoi%2Fdify-plugin-slack-thread-bot/lists"}