SuiteScript 2.X Generative AI APIs

SuiteScript Generative AI APIs (N/llm Module) enable you to work with generative artificial intelligence (AI) in NetSuite using SuiteScript. You can use these APIs to send requests to large language models (LLMs) and to receive responses from them. NetSuite accesses LLMs through an integration with the Oracle Cloud Infrastructure (OCI) Generative AI service.

NetSuite provides generative AI capability in the user interface through its Text Enhance capability. Text Enhance provides writing assistance for supported Text Area fields on standard NetSuite pages. However, you may want to expand and customize how you use generative AI in NetSuite. Getting started with AI can be complicated, and the SuiteScript Generative AI APIs make it quicker, easier, and safer to explore your AI use cases for NetSuite.

Note: SuiteScript Generative AI APIs are available only for accounts located in the United States, Canada, and the United Kingdom.

How the SuiteScript Generative AI APIs Work?

  • A NetSuite developer uses the N/llm module in their SuiteScript code to send a request to the LLM.

  • NetSuite accepts the prompt and any optional parameters included in the request and passes them to the OCI Generative AI Service.

  • OCI Generative AI service processes the request. OCI Generative AI service uses the LLM specified in your code. If you do not specify the LLM in your code, it uses the Cohere Command R LLM. The data never leaves Oracle, nor is it used by third parties for model training.

  • OCI Generative AI Service sends the LLM response back to NetSuite.

  • NetSuite processes the response and returns it to the SuiteScript code.

  • The SuiteScript code uses the response per the rest of the script.

Leave a comment

Your email address will not be published. Required fields are marked *