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.
Ask ChatGPT to review code contained in Script Includes.
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!
x_snc_devtools.InstallApp("x_snc_chat_gpt");
Conversation activity formatter fields
Controls if the Chat GPT application is active.
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.
Asks ChatGPT to review the source code of the current record.
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.
Provides access to server sided capabilities to the client.
Sends a prompt to the ChatGPT engine using a given conversation as context.
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.
Extracts all text from a record that may contain relevant information.
Returns an existing GlideRecord object representing a Chat GPT conversation.
Returns a new or existing GlideRecord object representing a Chat GPT conversation based.
Renders the Code Review page.
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.
Sends a promot to the ChatGPT engine asking for a code review of the given source code.
Sends a question to the ChatGPT engine to be answered based on contents contained in one or more records.
Sends a question to the ChatGPT engine to be answered based on a given text.
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