Versions Compared

Key

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

What's in this article: 

Table of Contents
styledisc

Background Information

...

  • The messages you send on MSPbots have two types:
    • Business logic commands - These messages include clocking in and out, break, etc.
    • Non-business logic commands - These are unknown commands, such as "How are you". 
  • The responses you receive on MSPbots are classified into the following:

    • When you successfully connect, MSPbots will directly give the following types of responses:

      • For usiness logic commands, MSPbots will directly respond to those commands.

      • For unknown commands, such as "How are you". For these commands, you will receive a response from ChatGPT on MSPbots because MSPbots connects with ChatGPT by setting the API interface, server address, port, and other parameters to call ChatGPT and establish a connection. ChatGPT will then send its reply to MSPbots.

    • When MSPbots responds with "You can also connect to ChatGPT," it means that you have not connected to OpenAI and need to connect to ChatGPT. Refer to How to set up your MSPbots integration with OpenAI for instructions on how to integrate your software. 
    • When MSPbots returns "ChatGPT: xxxxxx," where "xxxxxx" is the error message returned by ChatGPT, it may mean that the connection has failed or there is an error. For corresponding explanations, read https://platform.openai.com/docs/guides/error-codes.

  • The section below provides a guide on how to successfully connect MSPbots to OpenAI. 

Anchor
setup
setup
How to

...

set up your MSPbots integration with OpenAI

...

To connect MSPbots to OpenAI:

  1. Create the OpenAI API Key. 

      ...

        1. Register an account

      ...

        1. with OpenAI. 
        2. Log in and enter your account on the
        1. API keys page. 

      ...

        1. Click the

      ...

        1. Create new secret key

      ...

        1. button and click

      ...

        1. Copy

      ...

        1. to save

      ...

        1. the key locally

      ...

        1. .

      ...

        1.  
        2. Add a billing limit to maintain usage within a manageable range and to avoid unforeseen or excessive charges.
      1. Test your connection. If you encounter an error, check if the OpenAI account you used to log in has the correct credentials.

      ...

      1. Next, go to the MSPbots app and navigate to Integrations.

      ...

      ...

      1. Search for OpenAI and click it to open.

      Image Removed
                

      1. OpenAIImage Added
      1. Enter the API Key, then click Save And Sync
        OpenAI integrationImage Added

      How to verify the connection between MSPbots and ChatGPT

      ...

      Follow these steps to test if the connection between MSPbots and ChatGPT is successful:

      1. Enter a non-business command in MSPbots, such as "How are you?".
      2. If MSPbots responds with any message, then the successful connection between MSPbots and ChatGPT is confirmed.
        test messageImage Added

      OpenAI API docs

      ...

      Why MSPbots is Unable to Return Expected Message After Successful Connection to OpenAI Integration

      ...

      We apologize for the inconvenience. The reason why MSPbots is unable to provide the expected response is because the unknown command you sent belongs to the following filtered topics. 

      • Project management
      • Weather status/forecast
      • Writing advertisement campaign/ video script
      • Tell me a joke
      • Write an email introducing myself 
      • Recipes

      MSPbots uses OpenAI to respond to unknown commands. However, due to the mandatory limitations of the Microsoft Teams App, they require us to add filters to the messages returned by OpenAI for topic filtering. They believe that MSPbots should stay focused on supporting designated use cases. If user inputs are not related to the intended purpose of we (For e.g. Jokes, recipes), we should guide the user back to supported topics and prevent the user from engaging in unrelated discussions. Therefore, Teams will only approve the integration of the OpenAI application into Teams if these topics pass the filtering process.
      Image Added
      Image Added

      In that case, when you send an unknown command related to the mentioned topics, you will only receive the message: As an AI language model, I can help you with various tasks such as answering questions, providing information, generating text, summarizing articles, and more. Let me know what you need help with specifically and I'll do my best to assist you.
      Image Added