What's in this article: 

Background Information


How to set up your MSPbots integration with OpenAI


To connect MSPbots to OpenAI:

  1. Create the OpenAI API Key.
    1. Register an account with OpenAI. 
    2. Log in and enter your account on the API keys page
    3. Click the Create new secret key button and click Copy to save the key locally. 
    4. Add a billing limit to maintain usage within a manageable range and to avoid unforeseen or excessive charges.
  2. Test your connection. If you encounter an error, check if the OpenAI account you used to log in has the correct credentials.
  3. Next, go to the MSPbots app and navigate to Integrations.
  4. Search for OpenAI and click it to open.
    OpenAI
  5. Enter the API Key, then click Save And Sync
    OpenAI integration

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 message

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. 

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.

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.