Versions Compared

Key

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

These are the steps for creating a bot in the MSPbots app. 

What's in this article:

Table of Contents
stylenone

1. Set up a new bot.

...

    1. Log

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

    First, log
    1. in to the MSPbots app 
  1. app 
    1. using your Office 365
  2.  account and go to Apps.Look for Attendance on the My Applications screen and open it.
    Image Removed
  3. Click on Bots, the third icon in the left most part of the window.

...

    1. account. 
    2. Navigate to Bots on the left menu then click the New Bot button on the Bots screen.
      image new botImage Added
      You can also start creating a bot from a widget on your dashboard. Click the ellipsis button and select Create Bot.
      image create bot-widgetImage Added  
    3. Choose how to start creating your bot. In the Create a new bot window, select Start From Blank or Start From Bot Template, then click on a bot type. 
      • Start From Blank - Select this option to create a new bot customized according to your needs. 

        image create new bot optionsImage Added

        New Integration Trigger - Select this bot type to create a bot triggered by integration events. 

        Trigger - Select this bot type to create a bot triggered by specific conditions in datasets or widgets.

        Real-time Data - This type of bot is triggered by user-selected data sourced from a data synchronization source. For example, if the user sets up ConnectWise Manage-Ticket as the data source, a ticket created or updated in the ConnectWise Manage app and synchronized to MSPbots will trigger the bot.

        Trigger or logic of real-time bots:

        1. The synchronization program actively retrieves the lastUpdateTime from the database of the data source you have set up, every 3 minutes, for data updated in the past 3 minutes.
        2. Put the newly obtained data into the message queue.
        3. Real-time Data bots will listen to this message queue, and if there are eligible tickets, the bot will be triggered.

        Message Command - Select this option if you want to trigger the bot using commands from MS Teams or Slack. 



      • Start From Bot Template - Select this option to customize a fully functional bot available to your PSA. 
        image create a bot from templateImage Added
    4. Next, do the following steps in the Create a new bot window: 
      create new bot detailsImage Added
      1. Enter a name in the Bot Name field.
      2. Identify

...

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

...

      1. the Role that will have access to the bot.

...

      1. Select one or multiple Tags to label the new bot you create.
      2. Type

...

      1. a clear 

...

      1. Description of the bot. (Recommended)

...


...

    1. Click the 

...

    1. Continue button to open the tab with the details and settings for your new bot.

2. Set

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

...

up the bot trigger. 

...

    1. Click the Design button on your bot's tab.  
      bot designImage Added
      This opens the Trigger window where you configure the trigger script.

    2. Start defining the trigger by selecting Widget or Dataset, and your PSA.
      createbot6Image Modified

...

    1. Next, go to the meet following

...

    1. criteria section and define the criteria for triggering the bot. Hover over the

...

    1. plus (plus)

...

    1. icon and click +Add

...

    1. Group or +Add Condition.

...

    1. add group conditionImage Added
      If you want to preview the data, click the  Image Modified Data Inspector

...

    1. icon.

...


...


    1. Go to

...

    1. the I want the bot to run based on this

...

    1. schedule section.
      1. Schedule - Set the time and frequency for running the bot. 
        Image Added
      2. Time Zone - Select the time zone to be used by this bot to send messages.
        Note

        Please note that when you clone a Trigger bot, the cloned Trigger bot will inherit the time zone value from the original Trigger bot. If you are in a different time zone and you want the bot to run in your time zone, you will need to specify the time zone for the Trigger block of the cloned bot.

        Image Added
      3. Settings - Click Settings to select which holidays the bot should not send messages on. Holidays are custom-defined in the Holidays section of System in your Settings. For more information, please refer to: How to Configure the Holidays List in the MSPbots App.
        Image Added

3

Image Removed

...

. Set up Advanced Scheduling (Optional)

...

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

...

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

...

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

...

    1. Click

...

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

...


...

    1. createbot9Image Added

...

4.

...

Define the bot alert script.

...

    1. Start by activating the channel where the bot will send the alert message. Click the

...

    1. toggle for any of the following to switch

...

    1. the channel ON: 
      • Microsoft

...

      • Teams Chat 
      • Microsoft

...

      • Teams Channel 

...

      • Email 
      • Web Message

...

You may select multiple channels, depending on your requirement.

Image Removed

      • Slack Chat
      • Slack Channel
        image alert channelImage Added

        You can choose more than one channel based on your needs. 

    1. 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.

...


    1. For example, to set an email alert:
      1. Click the Email toggle switch. This will show the email fields and the checkbox for Hide the message footer
      2. (Optional) Select the Hide the message footer checkbox to remove the additional information from the bottom of the email message.
        image email toggleImage Added
      3. Select a sender from the From dropdown list.
        image select from fieldImage Added
      4. Next, click the To field and select the recipients from the From Dataset Field, From Drill Through, or From User List fields.  You can also click CC or BCC to add recipients to these fields.
        image select to fieldImage Added
      5. Type the Subject of the email.
         image email subjectImage Added
      6. In the section for the email message, compose

...

      1. a custom message for the alert message. 

                               

                                                                Image Removed

...

                                                          Image Removed

...

      1. image email messageImage Added
        You can use the Insert a Token button to select data to include in the message. Formatting options are

...

      1. also available to highlight message sections. 
        Image Added
      2. Select the Preview checkbox to show a preview of your message. 
        image preview messageImage Added
        When Preview is selected, the toggle for Light Mode or Dark Mode also appears. Light Mode is enabled by default. Click the toggle to apply Dark Mode to your email.
        image dark modeImage Added
      3. Next, click Choose Template and select the message template you want to use. 
        image message templateImage Added
        Selecting a template automatically changes the message in the message box. 

        You can also save your message and turn it into a template. 
        1. Click Save as a template
        2. Type a Template Name and select a Template Type
        3. Select View After Adding to add your template in Choose Template dropdown menu. 
        4. Click Add to save the current message as a message template. 
      4. Click Next 
      1. when done. This action takes you to the escalation script setup.

...

      1.  
         
        Info

        For instructions on sending alert messages to MS Teams, refer to the article How to set up MSPbots to send messages to a Microsoft Teams channel.
        For instructions on sending alert messages to Slack, refer to the article Slack Integration Setup.


5.

...

Set the escalation script.

...

You can send the escalation message to a manager

...

or multiple recipients and add escalation steps based on your requirements

...

    1. Select a Time Frame for the escalation cycle

...

    1. , e.g., Day, Week, or Month.

...

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

...

    1. Write the Escalation message

...

    1. and click the + Add Message

...

    1. button to

...

    1. create another message.
    2. Click the Finish button when done.

      For example,

...

    1. selecting Week for Time Frame and 

...

    1. for Escalation Threshold

...

    1. will send the escalation message

...

    1. on the third time the bot

...

    1. was triggered

...

    1. in

...

    1. the week.

...

    1. image save message as templateImage Addedimage escalation settingsImage Added

6.

d. Click the Finish button when done. 

Image Removed

...

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 bot detailsImage Added