NetSuite has introduced an exciting update for developers—the N/llm module—which brings Generative AI directly into your SuiteScript 2.1 environment. This feature lets you interact with powerful Large Language Models (LLMs) like Cohere and Meta Llama via Oracle Cloud Infrastructure (OCI), enabling you to add natural language capabilities to your scripts.
💡 What Can You Do With It?
- Generate content: Auto-write summaries, descriptions, emails.
- Answer questions: Build intelligent Q&A or chatbot features.
- Enhance text: Rewrite or translate in different styles.
- Extract insights: Perform classification or sentiment analysis.
⚙️ How It Works
- You use
llm.generateText()orllm.evaluatePrompt()in your SuiteScript. - NetSuite securely sends your prompt to Oracle’s AI.
- The AI processes it using your chosen model (or defaults to Cohere).
- The response is returned to your script for use.
🔁 Usage Options
- Free mode: Monthly limited use.
- On-demand mode: Pay-as-you-go via your OCI account.
- Dedicated mode: Reserved AI power for high-demand apps.
🔍 Customization Options
Adjust output using parameters like:
- Temperature (creativity level)
- Max tokens (length)
- Safety modes (strict or contextual)
- Seed (get consistent outputs for debugging)
✅ Real-World Use Cases
- Auto-generate invoice descriptions.
- Build conversational support tools inside NetSuite.
- Summarize long customer notes in CRM records.
With this, NetSuite isn’t just a business tool—it becomes an intelligent assistant. Whether you’re building a custom SuiteApp or enhancing automation, the N/llm module opens a whole new world of possibilities for modern NetSuite developers.