You can send messages directly to Slack chats after the MSPbots App is installed in Slack's Apps. To start sending messages, configure the Alert bot block and add MSPbots to the Slack channel to start sending messages to Slack.
Prerequisites
Clone the bots related to the Slack commands before sending commands in Slack.
To clone the bots, go to Bots in the MSPbots app, search for Slack in the Template Bots tab, and clone each of the following 11 bots into the My Bots tab.
- Tech Stats Reviewer - Slack
- SlackCommand help
- SlackCommand break
- SlackCommand wfh
- SlackCommand lunch
- SlackCommand out
- SlackCommand in
- SlackCommand onsite
- SlackCommand back
- SlackCommand reject
- SlackCommand nt
How to clone a bot related to a Slack command
-
- On the Bots page, select the bot you want to clone.
-
When the Tips pop-up window appears, click Yes.
-
On the Clone page, configure the Bot Name, Role, Tag, and Description for the cloned bot.
- Click Save. The cloned bot will inherit the original bot's switches, configuration conditions, etc. If you have no specific requirements, you do not need to make any additional configurations.
Configuring MSPbots to send alerts to Slack
- Configure the Alert bot block in MSPbots to send messages to Slack. For instructions on setting up the Alert bot block, refer to the section 4. Define the bot alert script. in the article ”How to Create a Bot“.
- Next, add the MSPbots app to the channel in Slack.
- In the conversation bar of the channel where you want to send messages, type @ and select MSPbots.
- When the prompt Want to add this person instead? opens, click Add to Channel.
- A message that says MSPbots joined means you can start sending messages to this channel in MSPbots.
-
Currently, Attendance, help and nt commands are supported. Note that when entering a command, you must prefix it with /. For example: /in, /help.
-
Attendance Manager commands
- /in - Updates your status to in and records the start time of your work in the database.
- /break - Updates your status to break and records the start time of your break.
- /lunch - Updates your status to lunch and records the start time of your lunch break.
- /onsite - Updates your status to onsite and records the time you are working at the client's location.
- /back - Updates your status to in and records the time when you switch back from the break or lunch status to working status.
- /out - Updates your status to out and records the end time of your work.
- /wfh - Updates your status to wfh and records the start time of your remote work at a location such as your home.
-
Other commands
-
/help - Entering the command /help gets the ticket's description and company details. This can help you quickly understand the content of the work order, reduce the time required to resolve issues, and improve work efficiency. It will return a message like the following:
-
Clicking the Next tickets button on this message returns the next ticket information, while clicking the Reject this ticket button brings up the Reject Ticket pop-up window where you must provide the reason for rejection.
-
Clicking the Next tickets button on this message returns the next ticket information, while clicking the Reject this ticket button brings up the Reject Ticket pop-up window where you must provide the reason for rejection.
- /nt - Entering the /nt command returns the next ticket in your PSA that is in the highest priority and its details.
-
/help - Entering the command /help gets the ticket's description and company details. This can help you quickly understand the content of the work order, reduce the time required to resolve issues, and improve work efficiency. It will return a message like the following:
- If commands are not displayed in the conversation list when you enter / before the command, or if you see the following message, please follow the instructions below:
- Go to Settings > User Management on the MSPbots navigation bar.
- Find the user on the User Management list and click the corresponding Edit button under the Action column.
- In the Edit window, scroll down to the THIRD-PARTY PLATFORM MAPPING section and check if the user's name is selected under Slack User Mapping.
- If it is not selected, select it and click Confirm.
- If it is already selected, wait for the data synchronization to complete. This may take around ten minutes. after which you can start using commands in the Slack chat dialog.
-
Attendance Manager commands
-
- In the conversation bar of the channel where you want to send messages, type @ and select MSPbots.