Now Assist for Developers: Code Generation and Explanation in the Platform IDE

Now Assist for Developers embeds AI code assistance directly in the ServiceNow Script Editor. Here is what it can do, how to use it effectively, and its current limitations.

Accessing Now Assist in the Script Editor

In any script field (Business Rules, Script Includes, Client Scripts, etc.), look for the Now Assist icon in the script editor toolbar. If the plugin is activated and you have the now_assist_user role, it will be visible.

Code generation from comments

Type a comment describing what you want the code to do, then trigger generation:

// Query all active incidents assigned to the current user
// ordered by priority, return as JSON array

Now Assist generates a code suggestion based on the comment. Review it before accepting — it will not know your specific custom fields or business logic.

Code explanation

Select existing code in the editor and use the "Explain" option. Now Assist returns a plain-English explanation of what the selected code does. Useful for:

  • Understanding inherited scripts from previous developers
  • Reviewing complex regex or encoded query logic
  • Onboarding new team members to existing code

What it is good at

  • Standard GlideRecord query patterns
  • Common utility functions (date formatting, string manipulation)
  • Boilerplate Script Include structures
  • Simple transform map scripts

What it struggles with

  • Custom business logic specific to your instance
  • Complex multi-table query patterns
  • Encoding edge cases in encoded queries
  • Anything involving your custom field names (it does not know them)

Review everything

Treat Now Assist code suggestions like Stack Overflow answers — they are a starting point, not a final answer. Always review for: correct table names, field names that match your instance, logic that matches your actual requirements, and error handling.

Want the complete reference?

This article is part of the NowSpectrum knowledge library. Browse all products for cheat sheets, interview prep, and deep-dive reference guides.

Browse All Products →