Task 3: Subscribe to Slack event and configure interactive components
You must subscribe to events in Slack to receive notifications for these events, such as when the end user posts a message. You also configure the interactive components in Slack such as buttons, menus, and date pickers.
Subscribe to Slack events.
- Navigate to the application that you created in Slack.
- In the left pane, under the Features menu, select Event Subscriptions.
- In the Enable Events section, select the Enable Events toggle button.
- In Request URL, enter the webhook URL that you copied earlier.
- Click Subscribe to bot events and add message.im.
- In Subscribe to events on behalf of users, ensure that you have not added any Workspace event.
The following image shows the bot event that you must subscribe:
Configure the interactive components.
- Navigate to the application that you created in Slack.
- In the left pane, under the Features menu , select Interactivity & Shortcuts.
- In Interactivity, select the Interactivity toggle button.
- In Request URL, specify the webhook URL that you copied earlier, and save the changes.
Reinstall the app.
- (If you are using Slack Enterprise Grid), under Features, select App Home.
- In the Show Tabs section, select Allow users to send Slash commands and messages from the messages tab.
The following image shows the Show Tabs section:
You have now configured Slack to work with BMC Helix Virtual Agent.