Robert Ninness
ServiceNow Employee
ServiceNow Employee
In March, we released version 28.1.2 (27.1.2 for Xanadu) of Now Assist for code generation (store.servicenow.com) Compatible with Yokohama Patch 1, and Xanadu Patch 7, if you are a Creator Professional Plus customer, simply upgrade the Now Assist for code generation application to enable the following new features:
  • Azure OpenAI support
    • Leverage GPT 4o for code generation, edit, explain code in detail, summarize code and autocomplete
  • Autocomplete
    • Predicts and suggests the next logical piece of code as you are typing
  • Summarize code
    • Short, AI generated summary of the code including key features
  • Explain code in detail
    • Now Assist writes a detailed breakdown of the code, covering all features including variables and tyles, functions, parameters, logic, return types, key considerations and an opinion on the code quality
  • Switch LLM providers between Azure OpenAI (Default) and NowLLM

Watch our product team talk about these new features on a Creator Toolbox episode with Earl on the ServiceNow Developer channel (youtube.com)

Upgrading to 28.1.2

To install these new skills, update the Now Assist for Creator parent app. Open Application Manager and search for "Now Assist for Creator" or Navigate to this URI on your instance /now/app-manager/home/app/id/8178fec0ce0431105a7c9305875b2dca

 

Activate the new skills

Navigate to Now Assist Panel > Now Assist Features > Creator and click on the Code tile.
Version 28.1.2 comes with 4 new Azure OpenAI skills
  • Code Assist AutoComplete
  • Code Assist Summarization
  • Code Assist Edit
  • Code Assist GenerationThe original Code Assist skill has been renamed to Code Assist Legacy and turned off. This skill is only used when switching to NowLLM as the LLM Service (see more below).

RobertNinness_0-1741936462339.png

 


New Skills

Activating the Code Assist Summarization skill will enable two new features: Summarize code and Explain code in detail when you select code. These features are available in the context menu of the ✨ button.

RobertNinness_1-1741936462339.png

 


AutoComplete

Now Assist wants to finish your coding sentences! Simply pause typing and AutoComplete will generate the rest of the code block for you. Simply hit tab, and the text will materialize.

With limited context (just a function name) AutoComplete has given me some ideas on how I could go about implementing this function.

RobertNinness_2-1741936462339.png

 


Adding in just a little more detail, AutoComplete has come very close to what I was aiming for saving me a trip to developer.servicenow.com to look up how GlideDateTime works.

RobertNinness_3-1741936462339.png

 


Building on top of the two previous functions, AutoComplete has more than enough context to generate some usefulcode even calling existing functions in the generated suggestion.

RobertNinness_4-1741936462339.png

 


Summarize code

Summarize code will give you a simple and concise description of what the code selected tries to accomplish. It's meant to give you a quick overview of the code rather than a deep dive. Simply select the code you'd like summarized and then click the Quick Action menu and select "Summarize code."

RobertNinness_5-1741936462339.png

 


Explain code in detail

Users can utilize Explain Code to get a more detailed analysis of the code selected. Explain Code will try to walk through the logic, the variables and the APIs being used in addition to describing what the code tries to accomplish. Use Explain Code when you're looking to understand not just what the code is doing, but how it's doing it.

RobertNinness_6-1741936462339.png

 


Choice of LLM Service

Yokohama introduces the ability to choose which LLM service you want to process some Now Assist skills. Navigate to Now Assist Admin > Settings > Manage LLMs. Here you will find a tile for Code Assist. If your preference is to no use Azure OpenAI, you now have the option to switch to Now LLM Service.

RobertNinness_7-1741936462339.png

 


Switching to NowLLM (na4c_nowllm) will send Code edit, Code generation and AutoComplete requests to NowLLMinstead of the Azure OpenAI service. The Summarize code and Explain code in detail features will be disabled as they rely on Azure OpenAI.

RobertNinness_8-1741936462339.png

 

 

 

Upgrade now!

If you have a Creator Professional Plus subscription, make sure you upgrade to either Yokohama Patch 1 or Xanadu Patch 7 and upgrade the Now Assist in Code generation app to version 28.1.2.
Comments
Jon G Lind
ServiceNow Employee
ServiceNow Employee

I went to upgrade my Xanadu instance to v27.1.2 and was surprised that I could not find v27 in the App Manager.  The issue is the patch level of your instance.  This new version requires Xanadu Patch 7+ or Vancouver Patch 1+ and App Manager will not show you versions which are incompatible with your instance. 

Go to https://support.servicenow.com to upgrade your instance then give it a few minutes for the data to propagate in the backend before using the Sync button from the App Manager home screen to get the updated list of versions.

JonGLind_0-1742408505793.png

 

Robert Ninness
ServiceNow Employee
ServiceNow Employee

@Jon G Lind 

 

While we are on version compatibility, there is technically one earlier release, 27.0.0, compatible with Xanadu Patch 6 and Yokohama Patch 0. If you are on either of these patch levels, it is possible to install this version by updating the Now Assist for Code generation app directly. I suspect there will be a very, very, small number of instances that fall into this category, but I've added the info as a comment for completeness. 27.0.0 does not include AutoComplete, so I would recommend patching your instance to YP1 or XP7 to get the full functionality.

 

~Robert

James Fricker
Tera Guru

How do I disable the autocomplete (just for me)? I find it very annoying and distracting. Is there a user preference?

Robert Ninness
ServiceNow Employee
ServiceNow Employee

@James Fricker Great question! 

 

There's a user preference (sys_user_preference) named sn_now_assist_code.autocomplete_enabled

 

Set the user to you, and value to false, log out and in again and Auto Complete will be disabled for your account.

 

There is also a global property to control the debounce time after you stop typing: autocomplete_debounce_time defaults to 500ms. Increasing this value will prevent Code Assist from being too aggressive with its suggestions.

 

Hope this helps!

~Robert

James Fricker
Tera Guru

@Robert Ninness unfortunately this user preference does not appear to work in flow designer script fields. Is there another user preference I can use to disable this feature in flow designer?

JamesFricker_0-1749610336168.png

 

Version history
Last update:
‎03-14-2025 12:21 AM
Updated by:
Contributors