Skip to content

Commit cb77ede

Browse files
Update chatGpt.js
This project demonstrates how to integrate **ServiceNow** directly with **OpenAI’s ChatGPT** platform using only native features — no Scripted REST APIs, no IntegrationHub, and no plugins required.
1 parent e21505a commit cb77ede

File tree

1 file changed

+1
-1
lines changed
  • Server-Side Components/Business Rules/openAI

1 file changed

+1
-1
lines changed

Server-Side Components/Business Rules/openAI/chatGpt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ServiceNow will automatically send a text prompt (like short description or work
44
to OpenAI ChatGPT API, get the response, and save it back to a field (like u_ai_summary)*/
55

66
-----
7-
//Script
7+
//Business Rule Script (After Insert)
88
try {
99
// Build the prompt dynamically from the record
1010
var userPrompt = "Summarize this issue in one sentence: " + current.short_description;

0 commit comments

Comments
 (0)