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 SuiteScript Generative AI APIs preferences. You can view your account's monthly SuiteScript Generative AI APIs usage or set up NetSuite to use your company's Oracle Cloud account for SuiteScript Generative AI APIs.

SuiteScript Generative AI APIs (N/llm module) let 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. For more information about using this feature, see SuiteScript 2.x Generative AI APIs.

See the following sections and topic for more information:

Enable or Disable OCI Credentials for SuiteScript

Note:

Before you can enable SuiteScript Generative AI APIs to use OCI credentials, 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:

  1. Go to Setup > Company > AI > AI Preferences.

  2. From the AI Preferences page, click the SuiteScript subtab.

  3. 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 SuiteScript Generative AI APIs to use OCI credentials through the AI Preferences page, SuiteScript code with the N/llm module defaults to the OCI configuration set in AI Preferences. You can override the OCI configuration in AI Preferences by adding the ociConfig object 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.

  4. Click Save.

Related Topics

General Notices