Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The rThe Message Command bot block recognizes preset commands that, when sent to MS Teams or Slack, return specific information on demand. If you have specific business needs that are not currently addressed by our preset commands, you can customize commands in this bot block. 

...

  1. Log in to the MSPbots app using your Office 365 account. 
  2. Navigate to Bots on the left menu then click the New Bot button on the Bots screen. 
  3. When the Create a new bot window opens, select Start From Blank > Message Command
    animated GIF create new bot
  4. When the next Create a new bot window appears, fill in the required fields. 
    image create new bot fields
    1. Enter a name in the Bot Name field.
    2. Identify the Role that will have access to the bot.
    3. Add a clear Description of the bot. (Recommended) 
    4. Then click Continue to open the Message Command pop-up window. 

  5. In theMessage Command pop-up window, select a Message Tool. If you will use MS Teams to trigger your bot, select Teams, or select Slack if you wish to use Slack instead. 
    image select message tool for message command
  6. Then go to the Commands menu, select the command you want MSPbots to recognize, and click Finish

    image select message command 
    For more information on the commands available commands for MS Teams, read the section on Teams Command Template Bots

    To use your preferred command, enter your custom command then click Finish.
    For example, if you want to trigger the attendance bot using the check in command instead of the in command, enter check in
    Tip

    When adding new commands, type commands in lowe case. in lowercase. Example: Type check in instead of CHECK IN.


    animated GIF - add new message command 
     
    Note

    The feature to add custom commands is only supported in MS Teams for now and is not yet available in Slack. Only the nt command and help commands are currently recognized by Slack.



  7. Click on the Message Command block, then click under it, and select Add a Block.
    animated GIF - add a new bot block

  8. Next, add an Attendance-in block by clicking the generated blank block, typing Attendance-in in the search bar, and selecting Attendance-in. 
    animated GIF - add Attendance-in block

  9. Click the Attendance-in block, then click under it, and select Add a Block.
  10. Next, add an Alert block by clicking the generated blank block, typing Alert in the search bar, and selecting Alert. 
    animated GIF -- a Alert block
  11. Next, start configuring the settings. Go to the Message Command block, click in the upper-right corner of theblock, and select Edit
  12. Verify if the selections for Message Tool and command are the same as your selections in Steps 4 and 5. Click Next once confirmed. 
    image selected message commands
  13. When the Attendance-in window opens, customize MSPbots' responses for each of the following scenarios: 
    • Clock in - Success
    • Clock in time is outside working hours -or- Clock in time is incorrect
    • Clock in update - Success
    • Wrong command
    • Clock in is done by an invalid account
      image attendance-in settings
  14. When done, click Next to proceed to the Alert configuration window.
  15. Follow the prompts on the Alert window and configure the Alert block according to your preferences.
    image alert settings
  16. Click Finish.
  17. Click Save in the upper right corner of your bot's window.
    image save bot settings
  18. Verify your settings. Go to MS Teams and type check in. The command should be recognized and return a response based on the configurations you made. 

...