Versions Compared

Key

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

This process is the easiest way to create a bot from any report | widget containing the data you want the bot to monitor and report to you. Consider the following tips before continuing;

  • email field included in the data or drill through, whether you want the bot send alert messages thru email or teams chat and/or channel it is needed
  • alert message constructed before starting the bot creation process 
  • escalation message if required

Steps in creating bot from widget

 1. Open the report and/or widget you want to use for the bot you want to create. Locate the Bot icon: Image Removed to initiate the bot creation. Always click this icon on any widget in MSPBots app if you want to create a bot using the data in the widget. 

Image Removed

 2. Provide a descriptive name for the Bot and Roles for each type of user allowed to access the bot. A nice description for the bot is also suggested. Click the Confirm button once ready to move to the next step. 

Image Removed

 3. On the Bot creation screen, click Design

Image Removed

 4. Set up the Trigger script:

  • The widget name will be automatically provided, this is the name of the widget where you started the bot creation.
  • Set additional filter when required.
  • Click the Data Inspector icon if you want to preview the data available. 
  • Set the Schedule run for the bot. 
  • Click the Next button to continue with the next step. 

Image Removed

 5. Select where you want the Bot to send the Alert message. Please note you can select several channels where you want the bot to send the alert message. 

Image Removed

 6. Set up the Alert message. Almost all alert messages contains the followiing; 

  • To email receiver
  • Subject and Message content, use the Insert a Token icon to select the data you want to include in the message.  You can use the formatting icons to make the messages stand out. 
  • Click the Next button to continue with the next step. 

Image Removed

 7. Set Escalation script. Take note that the escalation recipient can be another user, manager and/or next level manager as per your required setup. And you can set several escalation steps when required. 

...

or widget. Prepare the following before continuing:

  • An email address - This is needed when choosing to send the alerts through email, chat, or a Teams channel.  
  • The alert message - Prepare the message that will be sent to the receiver of the alert. 
  • An escalation message, if an escalation step is needed.

Note: The grid type of widget is the recommended widget type for creating a bot.

...

Widget Connector
urlhttp://youtube.com/watch?v=1ahxCGN3UDs

Do the following procedure to create a bot from a widget: 

Table of Contents
stylenone

Set up the name and email of the technician who will receive the bot alert. 

a. Navigate to Widgets on the MSPbots app menu. 

b. Select the widget for which you need to create a bot.

c. When the Widget Builder appears, click Dataset. Hover over the ellipsis ... button and click Edit.

widget builderImage Added

d. On the Dataset window that appears, add a column for email on the existing widget. Assign an alias and select User as business type. 

add columnImage Added

e. Next, add a filter saying the email should not be empty. 
email not emptyImage Added

f. Add a dimension to show the email address or username of the receiving technician. Select Username for Fields, give an Alias, select User as format type, and click Add

add dimensionImage Added

g. Click Save and Apply

h. Click the Copy Share Link icon to copy the link to this widget and save it for later. 

i. Close the widget. 

Select the widget for bot creation.

a. Go to the Dashboard where the widget is located.

b. Find the widget. Hover over the ellipsis ... button, then select Create Bot.

create bot grid widgetImage Added

Create the bot.

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

create new botImage Added

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.

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.
Bot TriggerImage 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.

bot criteriaImage 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.

Bot TriggerImage Added

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.

advanced schedulerImage Added

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

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.
Alert channelsImage 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.insert a tokenImage Added

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

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.   
Image Added

d. Click the Finish button when done. 

Image Removed

How to turn ON the Bot?

Activate the bot.

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

              Image Added

      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. 


Content by Label
showLabelsfalse
max5
showSpacefalse
titleRelated Topics
excludeCurrenttrue
cqllabel in ("bots","alerts")
 How to check if the Bot is firing and sending alert messages?