by takada-at · v0.0.2
This Slack Bot receives messages from Slack as input for Dify's Chatflow/Chatbot/Agent. In addition to app mentions, it can also trigger actions based on reactions, and supports posting messages to threads when sending messages to Slack.
This community listing does not yet include every recommended support, privacy, pricing, and permission disclosure. Review the available package permissions before installing.
Available inside your emploidai workspace after installation.
Available inside your emploidai workspace after installation.
Author: takada-at Version: 0.0.2 Type: extension
This repository contains an Extension-type Dify plugin that connects Slack to a Dify application. The plugin listens to Slack events (app mentions and optionally reaction_added), invokes a configured Dify app, and posts the result back to Slack (optionally in a thread).
On the "OAuth & Permissions" page, add the following scopes:
app_mentions:read - To read mention eventschannels:history - To read messageschat:write - To post messagesreactions:read - To read reaction eventsThen
For all other configuration options, please refer to the "Plugin Configuration" section below.
On the "Event Subscriptions" page:
https://your-dify-instance.com/plugins/endpoints/app_mention - For mentions directed at the botreaction_added - For reaction additions (optional)xoxb-)false, the system will automatically ignore timeout or duplicate requests(Recommended)thumbsup,heart,firetrue, replies will be posted in the original message's threadfalse, replies will be posted as new messages in the channelThe bot will respond when you mention it or use a specific emoji to react to a message.
When triggered, sys.query contains the original Slack message. And the bot receives the following inputs data from the event.
| Parameter | Description | Type |
|---|---|---|
| channel | The ID of the channel where the event happened. | string |
| message_ts | The timestamp of the message. | string |
| event_type | Indicates how the bot was triggered. Can be app_mention or reaction_added. | string |
| reaction | The name of the emoji used for the reaction (e.g., eye). This is present only for reaction_added events. | string (optional) |