Slack
The Slack handler in Bot Studio is responsible for managing Slack bots. This handler uses the official Slack API to handle bot functionalities.
Verifications
The origin server sends verification requests to the Slack handler to validate the provided Slack key. The handler sends an API request to this endpoint to check if the provided key is valid.
Activating Bots
When activating a Slack bot, an API client is created to send requests to the official Slack API service.
Receiving Events
When an event is received from Slack, the variables created from the event are based on Slack's event structure. For example, when a Message Event
is received, the variables will be available based on the documentation here. You can find a full list of all events and their variables here.
Executing Worker Nodes
Node names in Bot Studio are not opinionated. Each name references a specific feature. In Slack bots, the node names are based on the official Slack API endpoints. The node names contain the node's category and the endpoint it will use. For example, the Post Chat Message
node uses this endpoint, and the API request's body is the data used in the node. You can find a complete list of all methods here.
Advertisements
Advertisements are currently disabled for Slack bots but will be added in the future.
Validating Signatures
All received events from Slack have a signature. This signature is used for added security to verify that the event is received from Slack. By default, Bot Studio does not set the Slack bots' signatures, and you must set them from the dashboard page. Click here to see how to set a signature for your Slack bot.