description |
---|
Seamlessly integrate Slack with your favorite APIs, databases, and programming languages, using WayScript. |
{% hint style="info" %} To work with Slack channels and users, use the Slack module. {% endhint %}
When you drag in a Slack Trigger for the first time, follow the prompt to authorize access.
Select a linked workspace, or add a new one.
Choose which event(s) will trigger your program
-
Channel Events: Monitor all or specified channels in your workspace.
- A message was posted to a channel
- A channel was archived
- A channel was unarchived
- A channel was created
- A channel was deleted
- A channel was renamed
-
User Events:
- A new user joined
- A user's data changed
- A user joined a channel
- A subteam was created
- A subteam was updated
You can scope the trigger to a specific channel and/or user, or allow the notification to fire for any channel and/or user.
Additionally, you can exclude messages from bots.
{% hint style="info" %} Exclude messages from bots if you have a WayScript program that is posting as a bot to a channel that triggers the same WayScript program, so your WayScript program doesn't trigger itself. {% endhint %}
Select what event data you would like to retrieve as a program variable and set default values.
The Slack Channel, Slack User, and Raw JSON Data from the Slack event are always available as outputs.
If you chose the "message was posted to a channel" event type, the Slack Message Text will also be available.