Shamma Negi
Kilo Sage
Kilo Sage

Hi All,

 

This post is a walk-through on how to get started with the Generative AI Controller, there is more to explore outside of this post but we wanted to get you started quickly!

 

In this walkthrough, we will be utilizing OpenAI to connect your ServiceNow instance to the Generative AI Controller. Microsoft Azure OpenAI is also available to use (if you have access to an Azure key)

 

OBTAIN AN OPENAI API KEY

OpenAI API Keys are free to obtain and have a free trial usage tier for exploration.

  1. Navigate to https://platform.openai.com/signup and sign up
  2. Navigate to https://platform.openai.com/account/api-keys and click Create new secret key button.
  3. Copy the key (Save it somewhere! They only show you the key once)

ShammaNegi_0-1704375912948.png

 

STORE YOUR KEY IN A SERVICENOW CREDENTIAL

 

  1. In the Navigation filter, navigate to “Connection & Credential Aliases”
  2. Open the “OpenAI” record (ID = sn_openai.OpenAI)
  3. Under Related Links, click “Create New Connection & Credential”
     
    ShammaNegi_2-1704375973063.png

     

  4. Paste your OpenAI Key in the “API Key:” field and press “Create”.

 

ShammaNegi_3-1704375996467.png

 

 

SET REQUIRED SYSTEM PROPERTY

  1. In the Navigation filter, enter sys_properties.list and press enter. The entire list of properties in the System Properties [sys_properties] table appears.
  2. Find/Filter the list for the system property with the name of “com.sn.generative.ai.provider” and open the record
  3. At the top, a banner will say:

ShammaNegi_5-1704376033055.png

 

 

Click on “here”

 

4. In the Value field type openai and save/update the record

 

ShammaNegi_6-1704376062474.png

 

 

Hope this helps you.

I hope this article helpful. Please mark it as helpful and bookmark if you like it.

 

Regards,

Shamma Negi

6 Comments