# Using Workbot for Slack
In this article, we cover the two ways you can use Workbot in your Slack organization:
# 1. Carry out Workbot commands
As previously mentioned, there is a pre-built list of commands for each app. Click Commands right under the app name to view the list.
List of available Workbot commands for Salesforce
For example, you can request Workbot to display the details of an opportunity in Salesforce, or list recent opportunities. You can also create accounts and cases from Slack with Workbot.
You can interact with Workbot on channels it has been invited to, or via direct message. Note that conversations with Workbot on channels are visible to all team members in that channel, and direct message with Workbot are not visible to anyone but you.
# Example of Salesforce show account command
Let’s ask Workbot to display account details for a customer in Salesforce. If the account exists (Salesforce accepts case-insensitive searches too), Workbot will display the account details in the channel or direct message, corresponding to where you were having the conversation with Workbot.
Using the Salesforce show account command in Slack. Workbot displays the account details if found.
If the account does not exist, Workbot will return with an error message.
Using the Salesforce show account command in Slack. Workbot responds with an error if the accoun is not found.
# 2. Set up smart notifications
After setting up Workbot in your Slack organization, you can configure Workbot to monitor your apps for important events and notify your team about them. Workato recipes with the Workbot for Slack action Post bot notification will post messages in channels where:
- Workbot has been invited, and
- notifications for that recipe has been turned on
# Notification configuration example
We go through how to create the Workato recipe and turn on notifications below.
- Create a Workato recipe with the Workbot action Post bot notification We're using a simple recipe with a Salesforce trigger New Salesforce account and a Workbot for Slack action Post bot notification. Whenever a new account is created in Salesforce, we want to post a notification to Slack.
Recipe that posts notifications in Slack when new Salesforce accounts are created. Example recipe
We have configured the input fields for the Post bot notification action as follows:
Input fields configuration for post bot notification action
Check that Workbot is a member of the channel to post notifications to. If Workbot isn't a member, invite it to the channel.
Turn on the notifications via Workbot command The command should follow this format:
@workbot [appname] start notifications name:[document] [event]
If you look at the Post bot notification action configuration again, you can use the values from the first 3 input fields to build the Workbot command to start notifications.
Workbot for Slack command configuration in post bot notification action
In this case, the command will be:
@workbot salesforce start notifications name:account added
If you have not toggled the app on and connected successfully, you will not be able to start notifications. But if the app has been turned on earlier, Workbot will confirm that notifications is started.
Workbot command to start notifications
Subsequently, whenever new accounts are created in Salesforce, Workbot posts a notifications on this channel.
New Salesforce account notification posted to the specified channel by Workbot
You can configure multiple channels to receive the Workbot notifications by using the same command in multiple channels.
- Optionally, turn off the notifications via Workbot command The command should follow this format:
@workbot [appname] stop notifications name:[document] [event]
Workbot will confirm that it has stopped notifications for the specified event. In this case, the command will be:
@workbot salesforce stop notifications name:account added
Turning Workbot notifications off via Workbot command
Alternatively, you can also turn off the notifications via the button generated when you first started the notifications.
Turning Workbot notifications off via buttons