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.
- When MSPbots responds with "You can also connect to ChatGPT," this means that MSPBots has already integrated successfully with ChatGPT.
- 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:
- 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.
- Enter the API Key, then click Save And Sync.
OpenAI API docs
You can view the documentation for OpenAI API at https://platform.openai.com/docs/api-reference/introduction