Skip to content

Commit c5db664

Browse files
bchapuisclaude
andcommitted
Improve Slack bot setup instructions with step-by-step guidance
Detail page and create dialog now walk users through enabling Event Subscriptions, setting the Request URL, subscribing to bot events, verifying OAuth scopes, and inviting the bot to a channel. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a10b31e commit c5db664

2 files changed

Lines changed: 87 additions & 25 deletions

File tree

apps/app/src/components/workflow/widgets/input/slack-bot-create-dialog.tsx

Lines changed: 42 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -240,23 +240,48 @@ export function SlackBotCreateDialog({
240240
<Copy className="h-4 w-4" />
241241
</Button>
242242
</div>
243-
<p className="text-xs text-muted-foreground">
244-
Paste this URL as the{" "}
245-
<span className="font-medium">Request URL</span> under{" "}
246-
<a
247-
href="https://api.slack.com/apps"
248-
target="_blank"
249-
rel="noopener noreferrer"
250-
className="text-primary hover:underline inline-flex items-center gap-0.5"
251-
>
252-
Event Subscriptions
253-
<ExternalLink className="w-2.5 h-2.5" />
254-
</a>{" "}
255-
in your Slack app. Subscribe to{" "}
256-
<span className="font-mono text-xs">message.channels</span> and{" "}
257-
<span className="font-mono text-xs">message.groups</span> bot
258-
events.
259-
</p>
243+
<ol className="text-xs text-muted-foreground list-decimal list-inside space-y-1.5 mt-2">
244+
<li>
245+
Go to{" "}
246+
<a
247+
href="https://api.slack.com/apps"
248+
target="_blank"
249+
rel="noopener noreferrer"
250+
className="text-primary hover:underline inline-flex items-center gap-0.5"
251+
>
252+
Event Subscriptions
253+
<ExternalLink className="w-2.5 h-2.5" />
254+
</a>{" "}
255+
in your Slack app and toggle{" "}
256+
<span className="font-medium text-foreground">
257+
Enable Events
258+
</span>{" "}
259+
to On.
260+
</li>
261+
<li>
262+
Paste the Webhook URL above as the{" "}
263+
<span className="font-medium text-foreground">
264+
Request URL
265+
</span>
266+
. Slack will verify it automatically.
267+
</li>
268+
<li>
269+
Under{" "}
270+
<span className="font-medium text-foreground">
271+
Subscribe to bot events
272+
</span>
273+
, add{" "}
274+
<span className="font-mono">message.channels</span> and{" "}
275+
<span className="font-mono">message.groups</span>, then save.
276+
</li>
277+
<li>
278+
Invite the bot to a channel and create a workflow with a{" "}
279+
<span className="font-medium text-foreground">
280+
Receive Slack Message
281+
</span>{" "}
282+
trigger.
283+
</li>
284+
</ol>
260285
</div>
261286

262287
<div className="flex justify-end">

apps/app/src/pages/bot-slack-detail-page.tsx

Lines changed: 45 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -130,26 +130,63 @@ export function BotSlackDetailPage() {
130130
<span className="font-medium text-foreground">
131131
Event Subscriptions
132132
</span>
133-
, enable events and paste the Webhook URL above as the Request
134-
URL.
133+
, toggle{" "}
134+
<span className="font-medium text-foreground">Enable Events</span>{" "}
135+
to On, then paste the{" "}
136+
<span className="font-medium text-foreground">Webhook URL</span>{" "}
137+
above as the{" "}
138+
<span className="font-medium text-foreground">Request URL</span>.
139+
Slack will verify the URL automatically.
135140
</li>
136141
<li>
137-
Subscribe to the{" "}
142+
Under{" "}
138143
<span className="font-medium text-foreground">
144+
Subscribe to bot events
145+
</span>
146+
, add{" "}
147+
<span className="font-mono text-xs text-foreground">
139148
message.channels
140149
</span>{" "}
141-
and{" "}
142-
<span className="font-medium text-foreground">
150+
(public channels) and{" "}
151+
<span className="font-mono text-xs text-foreground">
143152
message.groups
144153
</span>{" "}
145-
bot events.
154+
(private channels), then click{" "}
155+
<span className="font-medium text-foreground">Save Changes</span>.
156+
</li>
157+
<li>
158+
Under{" "}
159+
<span className="font-medium text-foreground">
160+
OAuth &amp; Permissions
161+
</span>
162+
, verify that the{" "}
163+
<span className="font-mono text-xs text-foreground">
164+
channels:history
165+
</span>
166+
,{" "}
167+
<span className="font-mono text-xs text-foreground">
168+
groups:history
169+
</span>
170+
, and{" "}
171+
<span className="font-mono text-xs text-foreground">
172+
chat:write
173+
</span>{" "}
174+
scopes are present. If you added new scopes, reinstall the app to
175+
your workspace.
176+
</li>
177+
<li>
178+
Invite the bot to a Slack channel by typing{" "}
179+
<span className="font-mono text-xs text-foreground">
180+
/invite @{slackBot.name}
181+
</span>{" "}
182+
in the channel.
146183
</li>
147184
<li>
148-
Invite the bot to a Slack channel, then create a workflow with a{" "}
185+
Create a workflow with a{" "}
149186
<span className="font-medium text-foreground">
150187
Receive Slack Message
151188
</span>{" "}
152-
trigger node.
189+
trigger node, select this bot, and enable the workflow.
153190
</li>
154191
</ol>
155192
</div>

0 commit comments

Comments
 (0)