Join us Dec. 16 for The Community Hour, our first global virtual User Group event!

ServiceNow Integration with ChatGPT | ServiceNow Integration

Ravi Gaurav
Giga Sage

Integrating Service Now with Chat-GPT Open AI

Step1: Accessing Open AI platform, follow the below
1. Register with Open AI platform for accessing the API of new AI models developed by OpenAI. https://platform.openai.com/account/api-keys
2. After successfully creating your account in OpenAI, simply log in with your credentials and generate an API key.
Step2:
Create Rest Message in ServiceNow to integrate with Open AI platform, follow the below steps
Navigate to "Rest Message" under "System Web Services", create a new Rest message with following endpoint.
Endpoint: https://api.openai.com/v1/completions

Create a new "POST" HTTP method under Rest message and update the following.
HTTP Headers:
Authorization : Bearer "Api-key" (Generated in Open AI platform)
Content-Type : application/json

{
"model":"${model}",
"prompt":"${prompt}",
"temperature":${temp},
"max_tokens":${max_token}

}

 

YouTube Link :- https://youtu.be/b1d1jwcEkGI

If my answer solved your issue, please mark my answer as ✅ Correct & 👍Helpful based on the Impact.

1 REPLY 1