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 25 Next »

What's in this article: 

Background Information


  • The messages you send on MSPbots have two types:
    • Business logic commands - These messages include clocking in and out, break, etc. MSPbots will directly give a response to these commands.
    • Non-business logic commands - An example of this type is "I want to know the weather for this week." 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.
  • The responses you receive on MSPbots can be classified into the following three types:

    • When you have successfully connected, MSPBots will return the response from ChatGPT.
    • 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, please refer to: HowtosetupyourMSPbotsintegrationwithOpenAI.
    • 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, please refer to https://platform.openai.com/docs/guides/error-codes.
  • The section below provides a guide on how to successfully connect MSPbots to OpenAI. 

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



  • No labels