Slack
Seamlessly integrate Slack with your favorite APIs, databases, and programming languages, using WayScript.
Slack is where work flows.
Check out python-slackclient on GitHub.
To run your program when Slack events occur, use the Slack Trigger.

​
πŸ”—
Link Your Slack Account

When using Slack module for the first time, follow the prompt to authorize access.
You can add additional accounts from 'Select Workspace' dropdown in the Slack module settings

​
πŸ’Ό
Select a Slack Workspace

Select the workspace that you would like to work with.

​
#⃣
Work With Channels

​
βš™
Modes

  • Create a Channel
  • Write to a Channel
  • Get a List of Channel Members
  • Invite Users to a Channel
  • Get Channel's History of Messages

​
🌟
Create a Channel

​
πŸ“₯
Inputs

  • Name (required)
  • Make Private

​
πŸ“€
Output

1
New_Channels_Id : String
Copied!

​
✏
Write to a Channel

Choose any channel in your Workspace.

​
πŸ“₯
Inputs

  • Message
  • As Bot (Choose whether to send the message as a bot or as yourself)

​
πŸ“€
Output

1
Action_status : String
Copied!

​
πŸ‘₯
Get a List of Channel Members

Choose any channel in your Workspace.

​
πŸ“€
Output

1
List_Of_Channel_Members : [
2
String,
3
]
Copied!

​
πŸ‘‹
Invite Users to a Channel

Choose any channel in your Workspace.

​
πŸ“₯
Inputs

  • Users IDs

​
πŸ“€
Output

1
Action_status : String
Copied!

​
πŸ’¬
Get Channel's History of Messages

Choose any channel in your Workspace

​
πŸ“₯
Inputs

  • Number of Messages to Retrieve

​
πŸ“€
Output

1
Message_History = [
2
{
3
username : String,
4
text : String,
5
timestamp : Date,
6
is_bot : Bool,
7
attachments : [
8
{
9
title : String,
10
text : String,
11
author_name : String,
12
fallback : String,
13
color : String,
14
pretext : String,
15
author_link : Url,
16
author_icon : Url,
17
title_link : Url,
18
image_url : Url,
19
fields : [
20
{
21
title : String,
22
value : String,
23
short : Bool,
24
},
25
],
26
thumb_url : Url,
27
footer : String,
28
footer_icon : Url,
29
timestamp : Date,
30
},
31
],
32
},
33
]
Copied!

​
⚑
Run a Slash Command

Choose a channel in your Workspace where the command you would like to run is available.

​
πŸ“₯
Inputs

​
πŸ“€
Output

1
Action_status : String
Copied!

​
πŸ‘₯
Work with Users

​
βš™
Modes

  • Get a User's Member ID
  • Lookup a User by their Email
  • Send a Direct Message

​
πŸ†”
Get a User's Member ID

Choose a User

​
πŸ“€
Output

1
Member_ID : String
Copied!

​
πŸ“§
Lookup a User by their Email

​
πŸ“₯
Inputs

  • Email

​
πŸ“€
Output

1
User = {
2
username : String,
3
real_name : String,
4
id : String,
5
is_admin : Bool,
6
is_app_user : Bool,
7
is_bot : Bool,
8
is_owner : Bool,
9
is_primary_owner : Bool,
10
is_restricted : Bool,
11
is_ultra_restricted : Bool,
12
profile : {
13
display_name : String,
14
email : String,
15
phone : String,
16
skype : String,
17
status_emoji : String,
18
status_text : String,
19
status_expiration : String,
20
title : String,
21
image_192 : Url,
22
image_24 : Url,
23
image_32 : Url,
24
image_48 : Url,
25
image_512 : Url,
26
image_72 : Url,
27
},
28
timezone : String,
29
tz_label : String,
30
}
Copied!

​
➑
Send a Direct Message

​
πŸ“₯
Inputs

  • Message

​
πŸ“€
Output

1
Action_status : String
Copied!

​
πŸ“£
Direct Message a Group of Users

​
πŸ“₯
Inputs

  • Message
  • Users to Message
  • As Bot (Choose whether to send the message as a bot or as yourself)

​
πŸ“€
Output

1
Action_status : String
Copied!
You cannot message "Slackbot," and you must include a minimum of two users besides yourself to include in the chat.
Last modified 11mo ago