mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
feat(slack): launch v2 triggers and backfill custom bots (#6873)
* feat(slack): launch v2 triggers and backfill custom bots * fix(slack): propagate legacy webhook dispatch failures * fix(slack): continue shared legacy webhook fanout * fix(slack): acknowledge filtered webhook deliveries * fix(slack): finalize custom bot migration rollout * fix(slack): dedupe migrated bots per workflow * fix(slack): harden custom bot rollout * fix(slack): acknowledge permanently ignored deliveries * fix(slack): retry failed webhook deliveries
This commit is contained in:
@@ -521,6 +521,8 @@ export const blockTypeToIconMap: Record<string, IconComponent> = {
|
||||
similarweb: SimilarwebIcon,
|
||||
sixtyfour: SixtyfourIcon,
|
||||
slack: SlackIcon,
|
||||
slack_app: SlackIcon,
|
||||
slack_v2: SlackIcon,
|
||||
smartlead: SmartleadIcon,
|
||||
smtp: SmtpIcon,
|
||||
snowflake: SnowflakeIcon,
|
||||
|
||||
@@ -6,7 +6,7 @@ description: Send, update, delete messages, manage views and modals, add or remo
|
||||
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
|
||||
<BlockInfoCard
|
||||
type="slack"
|
||||
type="slack_v2"
|
||||
color="#611f69"
|
||||
/>
|
||||
|
||||
@@ -1872,18 +1872,27 @@ Set the purpose (description) for a Slack channel (max 250 characters).
|
||||
|
||||
A **Trigger** is a block that starts a workflow when an event happens in this service.
|
||||
|
||||
### Slack Webhook
|
||||
### Slack
|
||||
|
||||
Trigger workflow from Slack events like mentions, messages, and reactions
|
||||
Trigger from Slack events (mentions, messages, reactions)
|
||||
|
||||
#### Configuration
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| --------- | ---- | -------- | ----------- |
|
||||
| `signingSecret` | string | Yes | The signing secret from your Slack app to validate request authenticity. |
|
||||
| `botToken` | string | No | The bot token from your Slack app. Required for downloading files attached to messages. |
|
||||
| `includeFiles` | boolean | No | Download and include file attachments from messages. Requires a bot token with files:read scope. |
|
||||
| `setupWizard` | modal | No | Walk through manifest creation, app install, and pasting credentials. |
|
||||
| `eventType` | string | Yes | The single Slack event this trigger fires on. Add another trigger block for another event. |
|
||||
| `customBotCredential` | string | Yes | Choose a custom Slack bot you set up once and reuse across triggers. |
|
||||
| `manualBotCredential` | string | Yes | Set the custom bot credential ID directly. |
|
||||
| `source` | string | No | Restrict to direct messages, public channels, or private channels. Leave empty to match any. |
|
||||
| `channelFilter` | channel-selector | No | Restrict to specific channels. Leave empty to trigger on any channel the bot has been added to. |
|
||||
| `manualChannelFilter` | string | No | Comma-separated channel IDs to restrict to. Set IDs directly here. |
|
||||
| `threads` | string | No | Include thread replies, exclude them \(top-level only\), or fire only on thread replies. |
|
||||
| `emoji` | string | No | Comma-separated emoji names to restrict to. Leave empty to match any emoji. |
|
||||
| `nameContains` | string | No | Only fire when the created channel name contains this text. |
|
||||
| `interactionFilter` | string | No | Comma-separated action_ids \(buttons/selects\) or callback_ids \(modals\) to restrict to. Leave empty to fire on any interaction. |
|
||||
| `filterBotMessages` | boolean | No | Ignore messages sent by other bots. This app's own output is always ignored. |
|
||||
| `includeOwnMessages` | boolean | No | Also fire on this app's own messages and reactions. Can cause loops — use with care. |
|
||||
| `includeFiles` | boolean | No | Download and include file attachments from messages. Requires files:read. |
|
||||
|
||||
#### Output
|
||||
|
||||
|
||||
@@ -194,7 +194,7 @@ Webhook triggers receive callbacks from the provider and must be able to verify
|
||||
| Variable | Needed for |
|
||||
|---|---|
|
||||
| `SLACK_SIGNING_SECRET` | Verifying Slack event and slash-command signatures |
|
||||
| `SLACK_EXTENDED_SCOPES` / `NEXT_PUBLIC_SLACK_EXTENDED_SCOPES` | Requesting the broader Slack scope set |
|
||||
| `SLACK_EXTENDED_SCOPES` / `NEXT_PUBLIC_SLACK_EXTENDED_SCOPES` | Enabling the native Sim-app trigger and its broader Slack scope set; set both to the same value |
|
||||
|
||||
Your deployment must also be reachable from the provider's servers for webhook triggers to fire — a Sim instance on a private network can use polling triggers but not webhook triggers. Polling triggers additionally require the scheduler; see [Background Jobs](/platform/self-hosting/background-jobs).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user