You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/docs/reference/components/slack.mdx
+93Lines changed: 93 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -242,10 +242,103 @@ Type: OBJECT
242
242
243
243
244
244
245
+
## Triggers
246
+
247
+
248
+
### Any Event
249
+
Name: anyEvent
250
+
251
+
`Triggers when any user subscribed event happens.`
252
+
253
+
Type: STATIC_WEBHOOK
254
+
255
+
256
+
#### Output
257
+
258
+
The output for this action is dynamic and may vary depending on the input parameters. To determine the exact structure of the output, you need to execute the action.
259
+
260
+
#### JSON Example
261
+
```json
262
+
{
263
+
"label" : "Any Event",
264
+
"name" : "anyEvent",
265
+
"type" : "slack/v1/anyEvent"
266
+
}
267
+
```
268
+
269
+
270
+
<hr />
271
+
245
272
246
273
## What to do if your action is not listed here?
247
274
248
275
If this component doesn't have the action you need, you can use **Custom Action** to create your own. Custom Actions empower you to define HTTP requests tailored to your specific requirements, allowing for greater flexibility in integrating with external services or APIs.
249
276
250
277
To create a Custom Action, simply specify the desired HTTP method, path, and any necessary parameters. This way, you can extend the functionality of your component beyond the predefined actions, ensuring that you can meet all your integration needs effectively.
251
278
279
+
<hr />
280
+
281
+
# Additional instructions
282
+
283
+
## Connection Setup
284
+
285
+
### Create OAuth 2.0 App
286
+
287
+
1. Navigate to [Slack App](https://api.slack.com/apps).
288
+
2. Click on **Create New App**.
289
+
3. Click on **From scratch**.
290
+
4. Enter name of your app and select workspace where it will be installed.
291
+
5. Click on **Create App**.
292
+
6. Click on **Basic Information**
293
+
7. Click on **OAuth & Permissions**.
294
+
8. Click on **Add New Redirect URL**. Bytechef redirect URL: https://127.0.0.1:5173/callback or https://app.bytechef.io/callback.
295
+
9. Click on **Add**.
296
+
10. Click on **Save URLs**.
297
+
11. Click on **Add an OAuth Scope**
298
+
- "channels:read"
299
+
- "channels:write"
300
+
- "channels:history"
301
+
- "chat:write:bot"
302
+
- "groups:read"
303
+
- "reactions:read"
304
+
- "mpim:read"
305
+
- "users:read"
306
+
- "incoming-webhook"
307
+
12. Under OAuth tokens click on **Install to ...**.
0 commit comments