Manage SuiteScript AI Preferences
If you're a user with the Administrator role, you can use the SuiteScript subtab on the AI Preferences page to manage your account's preferences for SuiteScript modules that use AI. You can view your account's monthly usage or set up NetSuite to use your company's Oracle Cloud account for SuiteScript modules that use AI.
SuiteScript modules that use AI are:
-
N/llm (SuiteScript Generative AI APIs): This module lets you work with generative artificial intelligence (AI) in NetSuite using SuiteScript. You can use these APIs to send requests to large language models (LLMs) and get responses from them. This module uses the Oracle Cloud Infrastructure (OCI) Generative AI service. For more information about using this feature, see SuiteScript 2.x Generative AI APIs.
-
N/documentCapture: This module lets you programmatically extract structured content and key information from a variety of document types (such as invoices, receipts, contracts, and so on) directly within NetSuite. This module uses the AI-driven capabilities of the OCI Document Understanding service. For more information about using this feature, see N/documentCapture Module.
See the following sections and topic for more information:
Enable or Disable OCI Credentials for SuiteScript
Before you can enable OCI credentials for SuiteScript modules that use AI, you must complete the OCI configuration on the Settings tab of the AI Preferences page. For more information, see Configure OCI Credentials for AI
To enable or disable OCI credentials for SuiteScript:
-
Go to Setup > Company > AI > AI Preferences.
-
From the AI Preferences page, click the SuiteScript subtab.
-
On the SuiteScript subtab:
-
Check the Use OCI Credentials for SuiteScript box to let SuiteScript use OCI credentials for paid, unlimited usage mode through your company's Oracle Cloud account.
When you enable OCI credentials through the AI Preferences page, SuiteScript code that uses AI defaults to the OCI configuration set in AI Preferences. You can override the OCI configuration in AI Preferences by adding the
ociConfigobject to your SuiteScript code. -
Clear the Use OCI Credentials for SuiteScript box to stop SuiteScript from using OCI credentials. SuiteScript usage will draw from your monthly pool of free, limited uses. For more information, see View SuiteScript AI Usage Limit and Usage.
-
-
Click Save.