{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":587,"path":"api-reference/scripts/add-comments-to-code-with-quick-actions.md","title":"Add comments to code","bundle":null,"doc_type":null,"release":"australia","body":"\n# Add comments to code\n\nAdd comments in the ServiceNow Otto for Code enabled script editor using quick actions.\n\n## Before you begin\n\nRole required: now.assist.creator\n\n## Procedure\n\n1.  Navigate to any script editor enabled with ServiceNow Otto for Code and select a script.\n\n    For example, to open a script include form, navigate to **All** &gt; **System Definition** &gt; **Script Includes** and select a script include.\n\n2.  In the script editor, select a code and then select the **Otto**.\n\n    \\[Omitted image \"soc-otto-menu.png\"\\] Alt text: Select Add comments in code.\n\n3.  Select **Add comments in code**.\n\n    The comments appear highlighted in the script editor.\n\n4.  Review the AI-generated comments and then either accept or reject the comments.\n\n    If you accept the comments, they’re added to the script.\n\n5.  After accepting the comments, select **Update** to save your changes.\n\n\n"}}