Versions Compared

Key

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

This article gives an overview of hot to create a bot for your widget. 


  1. First, log in to the MSPbots app using your Office 365 account and go to Apps.
  2. Look for Attendance on the My Applications screen and open it.

  3. Click on Bots, the third icon in the left most part of the window.



4. Click on New Bot.



5. Click Quality Assurance Bot.



6. Create a New Bot

a. When the Create a new bot window opens, enter a name in the Bot Name field.

b. Next, identify the Role that will have access to the bot. 

c. Add a clear Description of the bot. (Recommended).

d. Then click the Confirm button. This action opens the Trigger screen.   

Note: The Trigger screen or form is also accessible from the Design tab.





7. To set up the bot trigger. 
a. Proceed by setting the Trigger script. The widget field inherits the name of the widget selected in Step 2b.

Image Added

b. Next, go to the meet following criteria section and define the criteria for triggering the bot. Hover over the (plus) icon and click +Add Group or +Add Condition.

Image Added


If you want to preview the data, click the  Image Added Data Inspector icon. 

c. Go to the I want the bot to run based on this schedule section and set the time and frequency for running the bot.


Image Added

8. Set up Advanced Scheduling (Optional)

a. To set up advanced scheduling, scroll down to the Advanced Scheduler section on the Trigger screen.

b. Click the Setting link to open the Advanced Scheduler window. 

c. On the Advanced Scheduler window, configure the bot to alert in Minutes, Hours, Day, Month, or Year, then click Save.

d. Click the Next button to continue to the steps for defining the bot alert script. 

Image Added


9.  Define the bot alert script.

a. Start by activating the channel where the bot will send the alert message. Click the slide button for any of the following to switch it ON: 

    • Microsoft Teams Chat
    • Microsoft Team Channel
    • Email
    • Web Message

You may select multiple channels, depending on your requirement.

Image Added

b.  Set up the alert message.  

Example: To set an Email alert, fill in the following fields:

      • To - Select a receiver or recipient from the Dataset Field, Drill through, or User List.
      • Subject - Input a subject manually and/or select one using a Dynamic Token.
    • Image AddedImage Added
    •  
      • Message Type - Type a custom message for the alert message. 

                               

                                                                Image Added


                             You can use the Insert a Token button to select data to include in the message. Formatting options are also                                             available to highlight message sections


                                                          Image Added

c. Click Next when done. This action takes you to the escalation script setup.


10. Set the escalation script.

The escalation recipient can be a manager and/or a next-level manager, depending on your requirement. You can also set several escalation steps as needed. 

a. Select a Time Frame for the escalation cycle. Choose from Day, Week, or Month.

b. Define the escalation steps by selecting an Escalation Threshold.

c. Write the Escalation message. Click the + Add Message button to add another message.

For example, if you select Week for Time Frame and 3 for Escalation Threshold, the escalation message would be sent when the bot is triggered 3 times in a week.   

d. Click the Finish button when done. 

Image Added

11. Activate the bot.

    To start sending alerts, activate the bot by going to the Detail tab and turning the following switches ON:

     Trigger - Switch this ON to make the bot available and running. 

      Alert - Switch this ON to enable the sending of alerts. 

      Escalation - Switch this ON to activate the escalation setup. 

Image Added