How to set up your MSPbots integration with OpenAI
To connect MSPbots to OpenAI:
- Create the OpenAI API Key.
- Register an account with OpenAI.
- Log in and enter your account on the API keys page.
- Click the Create new secret key button and click Copy to save the key locally.
- Add a billing limit to maintain usage within a manageable range and to avoid unforeseen or excessive charges.
- Test your connection. If you encounter an error, check if the OpenAI account you used to log in has the correct credentials.
- Next, go to the MSPbots app and navigate to Integrations.
- Search for OpenAI and click it to open the configuration settings.
- Enter the API Key, then click Save And Sync.
How to verify the connection between MSPbots and ChatGPT
Follow these steps to test if the connection between MSPbots and ChatGPT is successful:
- Enter a non-business command in MSPbots, such as "How are you?".
- If MSPbots responds with any message, then the successful connection between MSPbots and ChatGPT is confirmed.
MSPbots is unable to return the expected message after a successful connection to OpenAI integration
MSPbots is unable to provide the expected response because it received an unknown command that belongs to one of the following filtered topics.:
- Project management
- Weather status or forecast
- Writing advertisement campaign or video script
- Tell me a joke
- Write an email introducing myself
- Recipes
MSPbots uses OpenAI to respond to unknown commands like those in these categories. However, Microsoft Teams approves integration with OpenAI only if command topics pass their filtering process. The mandatory limitations of Microsoft Teams require MSPbots to add filters to the messages returned by OpenAI for topic filtering and to focus on supporting designated use cases only. If user inputs are unrelated to the business purpose, MSPbots should guide users to supported topics and prevent engagement in unrelated discussions.
Thus, when you send an unknown command related to the filtered topics, you will 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."
MSPbots returns "You can also connect to ChatGPT" or "ChatGPT: <message>"
The messages you send via MSPbots are categorized into two types:
-
- Business logic commands - These are messages like the Attendance Manager commands in, out, break, and back.
- Non-business logic commands - These are unknown commands like "How are you".
These are the responses you may receive via MSPbots:
- If your OpenAI connection is successful, MSPbots will directly give one of the following types of responses:
- Response for business logic commands - MSPbots will directly respond to these commands.
- Response for unknown 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 send its reply via MSPbots.
- "You can also connect to ChatGPT" - This response from MSPbots means that you are not connected to OpenAI and need to connect to ChatGPT. Refer to How to set up your MSPbots integration with OpenAI for instructions on integrating your software.
- "ChatGPT: <message>" where <message> is the error message returned by ChatGPT - This response from MSPbots means that the connection failed or there is an error. Read Error codes - OpenAI API page for the list of possible API errors you might be encountering and their corresponding solutions.
OpenAI API docs
- You can view the documentation for OpenAI API at https://platform.openai.com/docs/api-reference/introduction.
- If you want to learn about OPEN AI's terms of use and privacy policy for users, please refer to: