Using SuiteCloud Developer Assistant
Use the SuiteCloud Developer Assistant to create new SuiteCloud projects without the need for manual input or intervention. By providing a description of what you want your project to do, the assistant can generate boilerplate code that aligns with NetSuite development best practices.
SuiteCloud Developer Assistant is optimized to assist with JavaScript and TypeScript in SuiteScript files, and it works seamlessly with XML and JSON formats. To maintain a secure and focused development environment, the assistant guides you toward these supported technologies and provides a notification when a requested technology isn't supported.
Accessing SuiteCloud Developer Assistant
Before you begin using the SuiteCloud Developer Assistant, ensure you have completed the setup steps. For more information, see Setting Up SuiteCloud Developer Assistant Using Cline in SuiteCloud Extension for VS Code.
The first time you use the assistant, it asks for permission to add new files to your workspace. You can also use the Auto-approve settings to change how actions are handled when working with the assistant.
The SuiteCloud Developer Assistant is integrated with Cline, enabling you to create customizations with a simple prompt. To access the assistant:
-
Open Visual Studio Code.
-
Create a new SuiteCloud project. For more information, see Creating a SuiteCloud Project in SuiteCloud Extension for Visual Studio Code.
-
Go to the Cline extension located in the primary sidebar of the editor.
-
In the Cline extension, use the chat box to enter your prompts.
Defining Prompts for SuiteCloud Developer Assistant
To get the best functionality out of SuiteCloud Developer Assistant, it's important to clearly define what your customization should achieve. The following tips can help you achieve your desired outcome:
-
Identify the goal that the assistant should accomplish.
-
List specific customizations the assistant should handle (for example, whether the project should include any custom fields or records).
-
Clearly define inputs and outputs.
-
Establish success criteria.
-
Review and update the criteria based on results.
The following prompt analyzes item records in your inventory to help determine best pricing options. The prompt also tracks competitor pricing and historical sales data:
-
Create a SuiteScript script that analyzes all information about current and new item records in my inventory to help determine the best pricing options. The script should be able to incorporate custom fields for competitor pricing and track historical sales data that logs price points, sales volume, and transaction dates. Using this information, the SuiteScript script should compare my current pricing with both competitor pricing and historical sales performance to suggest optimal pricing strategies for each inventory item. The aim is for the script to generate automated, data-driven pricing recommendations that can help my business stay competitive and maximize revenue.
When the prompt is entered in the text box, Cline takes a moment to process your prompt and deliver the most relevant results.
For more information about generating prompts in the SuiteCloud Developer Assistant, see Prompt Examples.
Managing SuiteCloud Developer Assistant Responses and Output
When you enter a prompt into the assistant, you receive the following output in the Cline extension:
-
New SuiteScript files
-
Unit test files
-
Custom object recommendations
-
Additional details about how the customization works
-
Recommendations for next steps
-
Setup requirements
Review all changes implemented by the assistant before deploying to your account.
After the assistant generates code, review the output to ensure it meets your requirements. If you want to make changes or update the code, you can either manually edit each file or ask the assistant to make updates for you. To use the assistant for updates, create a new prompt with specific instructions about the changes you want. If you don't start a new task, you can continue making updates to the current project.
The following screenshot shows a follow-up task to create the corresponding custom objects for a generated script. The custom objects are also integrated into your original generated script, and setup tips are provided to help you use the custom objects in your account. This seamless process lets you implement useful customizations without direct coding, increasing productivity.
You can continue to iterate with the assistant as needed.
Don't enter sensitive, production, or personal data. For more information, see Best Practices for SuiteCloud Developer Assistant.