N O T I C E


MSPbots WIKI is moving to a new home at support.mspbots.ai to give you the best experience in browsing our Knowledge Base resources and addressing your concerns. Click here for more info!


You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 16 Next »

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

 

1. Set up a new bot.


    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.
      image new bot
      You can also start creating a bot from a widget on your dashboard. Click the ellipsis button and select Create Bot.
      image create bot-widget  
    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 a bot from blank


        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 bot type creates a bot triggered by user-selected data from a data synchronization source. For example, if the user sets up ConnectWise Manage-Ticket, a new ticket created in the ConnectWise Manage app and synchronized to MSPbots will trigger the bot.

        Teams Command - Select this option if you want commands sent thru MS Teams to trigger the bot. 





      • Start From Bot Template - Select this option to customize a fully functional bot available to your PSA. 
        image create a bot from template
    4. Next, do the following steps in the Create a new bot window: 
      create new bot details
      1. Enter a name in the Bot Name field.
      2. Identify the Role that will have access to the bot.
      3. Select one or multiple Tags to label the new bot you create.
      4. Type a clear Description of the bot. (Recommended)
    5. Click the Continue button to open the tab with the details and settings for your new bot.

2. Set up the bot trigger. 


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

    2. Start defining the trigger by selecting Widget or Dataset, and your PSA.
      createbot6
    3. 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.
      add group condition
      If you want to preview the data, click the   Data Inspector icon.

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


3. Set up Advanced Scheduling (Optional)


    1. To set up advanced scheduling, scroll down to the Advanced Scheduler section on the Trigger screen.
    2. Click the Setting link to open the Advanced Scheduler window. 
    3. On the Advanced Scheduler window, configure the bot to alert in Minutes, Hours, Day, Month, or Year, then click Save.
    4. Click the Next button to continue to the steps for defining the bot alert script.
      createbot9

4. Define the bot alert script.


    1. Start by activating the channel where the bot will send the alert message. Click the toggle for any of the following to switch the channel ON: 
      • Microsoft Teams Chat 
      • Microsoft Teams Channel 
      • Email 
      • Web Message
      • Slack Chat
      • Slack Channel
        image alert channel

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

    2. Set up the alert message.
      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 toggle
      3. Select a sender from the From dropdown list.
        image select from field
      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 field
      5. Type the Subject of the email.
         image email subject
      6. In the section for the email message, compose a custom message for the alert message. 
        image email message
        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. 
      7. Select the Preview checkbox to show a preview of your message. 
        image preview message
        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 mode
      8. Next, click Choose Template and select the message template you want to use. 
        image message template
        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. 
      9. Click Next when done. This action takes you to the escalation script setup.  

        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, e.g., Day, Week, or Month.
    2. Define the escalation steps by selecting an Escalation Threshold.
    3. Write the Escalation message and click the + Add Message button to create another message.
    4. Click the Finish button when done.

      For example, selecting
       Week for Time Frame and for Escalation Threshold will send the escalation message on the third time the bot was triggered in the week.
    5. image save message as templateimage escalation settings

6. 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 details




  • No labels