Versions Compared

Key

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

Table of Contents

Background Information

...

  • Teams Message Command is a trigger-type bot block that primarily recognizes the commands you send to MSPbots on Teams or Slack.
  • For example, by setting Teams Message Command block to "in" and  and appending the Attendance-in and Alert blocks, MSPbots can identify the "in" command  command you input, automatically store your check-in record in the database, and respond accordingly.

Main Section

...

  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.

    You can also start creating a bot from a widget on your dashboard. Click the ellipsis button and select 
    Create Bot.
    create bot-widget
  3. When the Create a new bot window appears, click on Start From Blank > Teams Command Message Command.
    Image Removed
  4. Fill in the required fields for creating a bot. 
    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. Click More Edit to open the pop-up window and fill out the required fields.
      Image Removed
    5. Then click the  Save button. Clicking Save opens the tab Continute button to open the tab with the details and settings for your new bot. 
  5. Click Design to enter the Teams Command Message Command pop-up window, then select the command you want MSPbots to recognize. .
    Info

    Using the in command as an example, please refer to the other types of

    teams

    message command bots at: How to Configure the

    Teams

    Message Command Bot Block.


    • Message Tool - If you want to trigger the bot by sending commands in Teams, please select teams. And if you want to use Slack, please select slack.

    Image Removed

    • Image Added
    • Command - Select the command you want MSPbots to recognize, or enter a custom command. For example, if you want to trigger the attendance bot using the check-in command instead of the in command, you can enter check-in here.
      Image Added
  6. Click Finish button.
  7. Click on the Teams Command Message Command block, then click on the  under the block, and finally select Add a Block.
    Image RemovedImage Added
  8. Click on the generated blank block.
    Image RemovedEnter , and enter Attendance-in into the search bar, and then click onAttendance-in to add the block.
    Image RemovedImage Added
  9. Click on the Attendance-in block, then click on the  under the block, and finally select Add a Block.
    Image RemovedImage Added
  10. Click on the generated blank block .
    Image RemovedEnter and enter Alert into the search bar, and then click on Alert to add the block.
    Image RemovedImage Added
  11. Click the in the upper-right corner of the Attendance-in Message Command block, and then click Edit to make your settings.
    Image Added
  12. Click Next to configure the Attendance-in block.
    Image RemovedImage Added
  13. Please customize MSPbots' responses for each of the following scenarios in the Attendance-in pop-up window.
    • 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
  14. Click Next to proceed to the Alert configuration page. Follow the prompts on the page to configure the Alert block according to your preferences.
    Image RemovedImage Added
  15. Click Finish.
  16. Click Save in the upper right corner to save your settings.
    Image RemovedImage Added
  17. As shown in the figure below, when "in" is entered in MSPbots, it will be recognized and responded with the corresponding answer.

    Teams

    Message Command Bot Types


    Order
    Teams
    Message CommandCorresponding BlockNeed for Alert Block
    Teams
    Message Command Bot Description
    1
    in
    hi
    Attendance
    Command-
    in
    HelpYesBot that recognizes "
    in
    hi" command
    for attendance check-in
    to return answers related to help information.
    2
    out
    hello
    Attendance
    Command-
    out
    HelpYesBot that recognizes "
    out
    hello" command
    for attendance get off work
    to return answers related to help information.
    3
    break
    inAttendance-
    break
    inYesBot that recognizes "
    break
    in" command for attendance
     interrupt work
    check-in.
    4
    lunch

    out

    Attendance-
    lunch
    outYesBot that recognizes "
    lunch
    out" command for
    attendance  lunchtime
    attendance get off work.
    5
    back
    breakAttendance-
    back
    breakYesBot that recognizes "
    back
    break" command for attendance
    back to
     interrupt work.
    6
    onsite
    lunchAttendance-
    onsite
    lunchYesBot that recognizes "
    onsite
    lunch" command for
    attendance check-in
    attendance  lunchtime.
    7
    wfh
    onsiteAttendance-
    wfh
    onsiteYesBot that recognizes "
    wfh
    onsite" command for attendance check-in.
    8
    pto
    backAttendance-
    pto
    backYesBot that recognizes "
    pto
    back" command
    to handle related leave operations
    for attendance back to work.
    9
    hi
    pto
    Teams Command
    Attendance-
    help
    ptoYesBot that recognizes "
    hi
    pto" command to
    return answers related to help information
    handle related leave operations.
    10
    hello
    wfh
    Teams Command
    Attendance-
    help
    wfhYesBot that recognizes "
    hello
    wfh" command
    to return answers related to help information
    for attendance check-in.
    11
    helpTeams Command-helpYes
    Bot that recognizes "help" command to return answers related to help information.12
    statsUtilization-statsYesBot that reports the total working hours, utilization rate, overlapping time entries, ongoing work orders, and pending tasks to the user before the end of each workday.
    12ntNT command message formattingNoWhen entering the "nt" command, the bot returns data in a custom format.
    13rejectTeams Command-rejectNoBot that recognizes "reject" command to skip the current ticket, which needs to be used in conjunction with the "nt"command.

    14

    unknownTeams Command-ChatGPTYesBot that returns answers from chatGPT. Please connect to the OpenAI integration before using this bot.15ntNT command message formattingNoWhen entering the "nt" command, the bot returns data in a custom format.16

    qa QA check activities
    QA check agreements
    QA check boards
    QA check campaigns
    QA check companies
    QA check contacts
    QA check invoices
    QA check orders
    QA check projects
    QA check purchaseOrders
    QA check reportsActivity
    QA check reportsAgreementInvoice
    QA check reportsAgreementList
    QA check reportsAgrType
    QA check reportsInvoiceProduct
    QA check reportsInvoices
    QA check reportsOpportunity
    QA check reportsProduct
    QA check reportsSchedule
    QA check reportsService
    QA check reportsServiceSla
    QA check reportsTime
    QA check schedules
    QA check sheets
    QA check tickets
    QA check timeEntries
    Yes

    These bots are used by QA personnel to check various business scenarios.

    17
    15nttest-YesJust for testing, please do not use.
    16helpCommand-helpYesBot that recognizes "help" command to return answers related to help information.
    17unknownTeams Command-ChatGPTYesBot that returns answers from chatGPT. Please connect to the OpenAI integration before using this bot.