Skip to content

An easily configurable collection of generative AI tools for ServiceNow that utilizes Together.AI's serverless endpoints for GenAI tasks.

License

Notifications You must be signed in to change notification settings

kylburns89/sn-togetherai-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

sn-togetherai-tools

An easily configurable collection of generative AI tools for ServiceNow that utilizes Together.AI's serverless endpoints for GenAI tasks.

Usecase

Since ServiceNow's Now Assist product is unavailable in PDIs, this allows for testing of GenAI responses using together.ai's library of serverless endpoint models. Note that this application is primarily for testing or demonstration purposes. I cannot guarantee you won't encounter any bugs, and the application is provided as-is without support, though, I will be happy to answer any questions and would love feedback! Just send me a DM on Linkedin. https://www.linkedin.com/in/kyleburnswi/

Together AI - Run AI with an API

  1. https://together.ai
  2. Sign in with Github
  3. Get your API key - https://api.together.xyz/settings/api-keys

Together.ai provides $5.00 worth of free credits for each account, and I've found with their optimizations discussed here, this is a decent amount of credits to get started with.

ServiceNow

  1. Download and import the update set xml.
  2. Navigate to Together AI > Together AI Properties in the filter navigator.
  3. Add your Together.ai API key to the togetherai_api_key System Property.
  4. Modify the model values for each of the gen AI utilities if you wish. By default, the Knowlege and Code generation utilities use the meta-llama/Meta-Llama-3.1-405B-Instruct-Turbo model and the Incident Summarization utility uses meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo. Please note: I've defaulted the code and knowledge generation models to a model that can be quite expensive to run compared to other models. This is to show the accuracy with which the models can perform those functions. Please change to another model from the list of 'Chat' models available in the together.ai models list if you wish to reduce token usage/cost in favor of less precise outputs.

Code Generation

  1. To test the code generation capability, create a new record of one of the following types: Client Script, Catalog Client Script, Fix Script, Business Rule, UI Action, or Script Include.
  2. In the new record creation, there is a Generate Code button in the top right corner of the form.
  3. Click the Generate Code button, enter a code generation prompt, and click Generate Code.
  4. Clicking the button in the UI page/Modal makes a call a Script Include (togetherAIUtils), which uses the generate_code POST method of the Together.AI REST message to send the prompt to the Together AI LLM endpoint. The response is returned and displayed in the UI page/Modal and can be copied to the clipboard using the Copy button.

code-generation-ezgif com-video-to-gif-converter

Incident Summarization

  1. To test the Incident Summarization capability, open an existing incident record or creat a new one.
  2. Click the Summarize Incident button.
  3. In the UI Page/Modal, click Summarize.
  4. Clicking the button in the UI page/Modal makes a call a Script Include (togetherAIUtils), which uses the summarize POST method of the Together.AI REST message to send the prompt to the Together AI LLM endpoint. The response is returned and displayed in the UI page/Modal and can be copied to the clipboard using the Copy button.

incident-summarize-ezgif com-video-to-gif-converter

Knowledge Article Generation

  1. To test the Knowledge Generation capability, open an existing knowledge article or create a new one.
  2. On the knowlede article record form, click Generate Knowledge.
  3. In the UI Page/Modal, click Generate Knowledge.
  4. Clicking the button in the UI page/Modal makes a call a Script Include (togetherAIUtils), which uses the generate_knowledge POST method of the Together.AI REST message to send the prompt to the Together AI LLM endpoint. The response is returned and displayed in the UI page/Modal and can be copied to the clipboard using the Copy button.

knowledge-generation-ezgif com-video-to-gif-converter

Future plans

  • Task summarization
  • CSM Case Summarization
  • Virtual Agent Integration
    • More TBD

About

An easily configurable collection of generative AI tools for ServiceNow that utilizes Together.AI's serverless endpoints for GenAI tasks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published