Now Assist for code generation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 06:28 AM - edited 01-29-2025 12:46 AM
With code generation capability, you can describe the code that you want to generate in natural language, and the platform will generate the Javascript code.
It’s extremely powerful and very productive, because codes and scripts will be created faster.
Before you start
Verify that Now Assist for code generation is Active :
The capability is enabled, if you see the following message in any scripting box :
If not :
Go to Now Assist Admin > Features
Select Creator
Make sure that Code capability is Active
Verify that the now.assist.creator role is granted to the user , and note that this role is not inherited from admin role .
How to use the code generation capability ?
There are two different modes for code generation, comment to code and code complete. Let’s start with comment to code (text2code):
From the script editor :
Right click and select
Describe want you want to do with the code :
For example , when I want to use GlideAjax , I’m used to seek help from google to get some examples and then I create my own code .
Now with Now Assist , I can get it directly in the script box .
You can Accept or Reject the code suggestions:
The second mode is about completing codes .
If you started coding with the following two line of codes, and after submitting:
Now Assist generates lines of codes to complete your script :
Important:
Please note that, it’s not because the code generation is very easy to use that you need to create codes, keep in mind, we create codes only if needed .
If you have to create scripts then use the capability for time savings.