Welcome to the "ChatGPT" app for ServiceNow - created and maintained by Sascha Wildgrube.
Users with the x_snc_chat_gpt.user role can have conversations with ChatGPT.
Developers can connect to the OpenAI API and send prompts to ChatGPT.
Start with the script include function x_snc_chat_gpt.Prompt().
Perform the installation instructions below!
Go to the background scripts and execute this:
gs.info(x_snc_chat_gpt.Prompt("Say something smart"));
ChatGPT is NOT an officially supported ServiceNow product.
ChatGPT does NOT come with any kind of warranty. If you use it, you own it!
Conversation activity formatter fields
Controls if the Chat GPT application is active.
Controls if the Chat GPT application produces log output.
Controls the verbosity of log output produced by the Chat GPT application.
A user that can administrate the ChatGPT application and has access to all conversations.
A user that can have conversations with ChatGPT.
Retrieves information about the app's dependencies to other apps and required versions.
Gets a system property of this application.
This script installs Chat GPT.
Sets all system properties to default values.
Sets a system property of this application.
Produces a log output in the application log using the DevTools Debug function.
Implements the extension point for DevTools.
The function DevToolsGetApplicationStatus is called by the DevTools extension point instance class and returns the application status object with additional status information to be displayed on the "DevTools Application Overview" page.
The DevToolsGetFormatConfig function is called by the DevTools extension point instance class and returns an object with field formatting information.
The DevToolsGetLinkDirectory function is called by the DevTools extension point instance class and returns an extended (or modified) link directory object that serves as the basis for the DevTools Link page.
The DevToolsGetParentRecord function is called by the DevTools extension point instance class and returns a parent record for the given record if it can be determined.
The function DevToolsRenderDebugDump is called by the DevTools extension point instance class and returns additional debug information provided by the application.
Returns an existing GlideRecord object representing a Chat GPT conversation.
Returns a new or existing GlideRecord object representing a Chat GPT conversation based.
Returns true if the application is active, otherwise false.
Produces a log output in the application log.
Sends a prompt to the ChatGPT engine and returns the answer string.
Copyright 2023 by Sascha Wildgrube
Licensed under the Apache License, Version 2.0 (the "License")
You may not use ChatGPT except in compliance with the License.
You may obtain a copy of the License at: https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
First baselined version