Build Slack Apps

Apex SDK for Slack enables you to build Slack apps that translate into blocks via Block Kit.

Build Slack apps

Before you create your Slack app bundle, make sure you have set up your SFDX project. Define your app using the SlackApp metadata type. In your SFDX project, create the app definition in the slackapps folder.

Compose components into views to guide users through your app’s capabilities. A view is a root component that displays in a Slack surface: a home tab, message, or modal. To pull data into a view, bind the view to a data provider. To reference the data throughout a view, use an expression.

Write handlers to respond to Slack actions: global and message shortcuts, buttons, slash commands, and events. When a user makes a request in Slack, an Apex handler contains the logic that responds to the request.