Edit code in the Now Assist for Code enabled script editor using quick actions.
Before you begin
Role required: now.assist.creator
Procedure
-
Navigate to any script editor enabled with Now Assist for Code and select a script.
-
In the script editor, select a code and then select the Quick Actions button.
-
Select Edit code.
-
In the Edit code with Now Assist dialog box, describe the code you want to generate, and then select the submit (
) icon.
The code suggestion appears highlighted in the script editor.
-
Review the AI-generated code and then either accept or reject the suggestion.
If you accept the code suggestion, it’s added to the script. If you reject the suggestion, it isn’t added to the script. You can rephrase the prompt to generate a new code suggestion.
-
After you modify the code, select Update to save your changes.
Note: Depending on your workflow needs, you can use the prompt modal in either inline or floating mode. In the inline mode, the prompt modal is embedded within the script editor. In the floating mode, you can move the
prompt modal around the script editor. Toggling between these two modes is simple. When in inline mode, select the Pop Out toggle to switch to floating mode. Conversely, when in floating mode,
select the Pop In toggle to return to inline mode. The transition between inline and floating modes preserve all text within the modal.