The Generative AI Controller is the ServiceNow layer that routes generative AI requests from your instance to external large language models. Setting it up involves four jobs: credentials for each provider, a default provider for each capability, rate-limit rules where traffic needs capping, and a review of the instance properties and logs that govern token use and logging.
What the Generative AI Controller Does
Requests from generative AI features, AI agents and custom skills pass through the controller before they reach a model provider. The controller applies five kinds of control.
| Control | What it covers |
|---|---|
| Logging | Records requests and responses so they can be debugged and audited |
| Rate limiting | Restricts how many requests reach a provider within a set time frame |
| Data privacy | Masks personally identifiable information in prompts before they leave the platform |
| External LLM connectivity | Connects ServiceNow AI applications to a third-party provider |
| Guardian guardrails | Applies content and safety policies to generative AI requests |
The controller installs automatically with any ServiceNow AI application, such as Otto for IT Service Management, and installation requires Vancouver patch 2 or later. Feature access depends on your license tier. For the wider range of work these capabilities support, read the generative AI use cases guide. For a larger rollout, see the Now Assist implementation page.
Credentials and Providers
The controller can connect to OpenAI, Azure OpenAI, Google AI Studio, Google Vertex AI, IBM watsonx and Amazon Bedrock, and it accepts a generic connector for any other external model. Each provider needs an account before the controller can reach it. Amazon Bedrock, for example, requires an IAM user with the correct permissions. The generic connector, default-provider and rate-limit procedures each list the admin role as required.
A credential holds the key, and a connection holds the endpoint and points to that credential. A generic model is built by hand in four steps.
- Open Connections and Credentials, then Credentials, and select API Key Credentials. Put the model’s name in the name field so the record is easy to find later, enter the API key and submit.
- Open Connections and Credential Aliases and create an alias. You can leave the other fields at their defaults.
- On the saved alias, select New in the Connections related list. Name the connection, select the credential, select this alias and enter the model’s endpoint in the Connection URL field.
- Return to the alias and confirm the connection appears in its Connections related list.
Connecting a Generic Model
The generic connector suits an industry model, a single-purpose model, or one that must follow your data handling rules. It supports text generation and needs three records on top of the alias.
- Create a Generative AI Model Configuration record in the sys_generative_ai_model_config table. Enter the model name, set Provider to Custom LLM and choose your alias. For Azure OpenAI, the model name is the deployment name of your resource.
- Create a Generative AI Configuration record in the sys_generative_ai_config table. Choose the capability in the Definition field, such as Summarize (Custom LLM), then choose your model configuration in the Model field. The prompt template goes here. Capability attributes are inserted by wrapping their names in double braces.
- Create a Generative AI Custom LLM Transformer record in the sys_generative_ai_custom_llm_transformer table. The request script receives the prompt data and builds the body and headers the model expects. The response script converts the model’s reply into an array of text responses.
The scripts depend on the request and response shapes your model uses. For a chat-style interface, the request script typically wraps the prompt in a user message.
Assigning a Default Provider to Each Capability
AI Admin Hub is the recommended route for standard use cases. The backend route below suits custom OneExtend setups. Enter sys_one_extend_capability.list in the navigation filter, open the capability, and in the OneExtend Definition Configs related list set Default to true for the provider you want.
Only one provider can be the default for a capability at a time, so switching follows a fixed order. Set the current provider’s Default to false first, then set the new provider’s Default to true. For example, the OpenAI Completion definition on Sentiment goes to false before Azure OpenAI goes to true.
Each capability definition maps to a model family, and you can choose between several models for each capability.
| Capability definition | Model family |
|---|---|
| OpenAI Completion and Azure OpenAI Completion | GPT-3 |
| OpenAI Chat Completion and Azure OpenAI Chat Completion | GPT-3.5 |
| GPT4 (OpenAI Chat Completion) and GPT4 (Azure OpenAI Chat Completion) | GPT-4 |
| AI Studio and Vertex AI, completion and chat definitions | Google Gemini |
| IBM watsonx | Granite |
When a capability definition has no provider of its own, the instance property com.sn.generative.ai.provider supplies the fallback. That property is a choice list with no default value.
Choosing the Provider for Web Search
With web search on, Google Gemini is the default provider for the AI Search answers capability. OpenAI and Perplexity need an API key connection. Azure OpenAI does not currently support web search, so its Default stays false. Perplexity’s model name is set in the sn_ai_websearch.perplexity_model_name system property.
Setting Request Limits With Rate-Limit Rules
Rate limiting caps traffic to the one_extend request within a time frame. For the general idea behind rate limits, see the rate limit explainer. Each limit is a rule record. Navigate to sys_one_extend_rate_limit_rules, select New, complete the form and submit. The admin role is required.
| Field | What to enter |
|---|---|
| Name | A label that identifies the rule |
| Application | Global, as the form requires |
| Resource | LLM Provider for a provider mapping, Capability Definition for one definition, or All Capabilities for all providers and definitions |
| Rule Type | Instance, which counts requests from all users together, or User, which counts each user separately |
| Request limit per hour | The maximum number of requests allowed in one hour |
| Active | The status of the rule |
These rules apply to One Extend requests.
Domain Separation, Translation and Long Inputs
Domain separation isolates capabilities by domain, so each domain can run its own providers or settings. To copy a capability into a new domain, create a OneExtend Capability record there using an existing one as a blueprint, then add matching attribute records, a OneExtend Capability Definition for that domain and a OneExtend Definition Config. Match the definition to the intended provider, since a mismatch can produce unexpected behaviour.
Dynamic Translation adds language support and needs the Dynamic Translation and Conversational Dynamic Translation plugins. It is inactive by default. Open the attribute in the OneExtend Capability Attributes related list and select Translate. It does not apply in Virtual Agent or the Otto panel.
Large inputs, such as activity fields, can exceed a model’s limit. Recursive summarisation splits them into overlapping chunks, summarises each, and processes the request with those summaries. Set Enable Large Input Support to true on the OneExtend Definition Config, and set Contains Large Input on each attribute that holds large data. Responses take longer because the controller makes several model calls.
Bring Your Own Key
Bring your own key, or BYOK, sends model requests through your own cloud AI account, so you keep control of the keys and processing environment. It supports Azure OpenAI, Anthropic Claude through Amazon Bedrock, and Google Gemini. Your cloud account can generate charges, so review the provider’s pricing first. Setup covers the connection and credentials, enabling BYOK in AI Admin Hub, mapping model aliases, and checking outbound request logs to confirm traffic reaches your account.
Properties That Shape Controller Behaviour
| Property | Default | What it controls |
|---|---|---|
| com.sn.generative.ai.log_prompt | true | Whether generative AI API calls are logged |
| com.sn.generative.ai.provider | No default value | Fallback provider for a capability definition with none |
| com.glide.one.extend.token.buffer | 250 | Tokens reserved when a request is checked before a OneExtend capability runs |
| com.sn.generative.ai.moderation.message | The response cannot be displayed as it’s deemed inappropriate by OpenAI. | Message shown when OpenAI or Azure OpenAI moderation flags content against their terms |
| com.sn.generative.ai.ais.message | No answer found. | Message shown when AI Search cannot find an answer |
| domain.llm.usage.entitled | true | Whether the LLM may process data for a given domain |
Logs and the Tables Behind Them
When a request fails, start with the Generative AI Log table, sys_generative_ai_log. It records the prompt, the response, any edited response, a Success or Error status, and the error message and code for each request. Records are kept for 180 days.
The Gen AI Usage Log, sys_gen_ai_usage_log, shows each capability use and the assists it consumed. The Gen AI Log Metadata table, sys_gen_ai_log_metadata, holds the definition, errors, user and feedback for each request. AI-generated content can be tracked for longer than six months, and historical records can be kept by a script that copies them into another table without deleting the information.
The Generative AI Metric table, sys_generative_ai_metric, records measures such as edit score and guardrail activity. The configuration tables are OneExtend Capability, OneExtend Capability Definition, OneExtend Capability Definition Attribute, OneExtend Builder Config, OneExtend Builder Capability and OneExtend Usage.
Which model defaults and retirement dates should a Gen AI Controller administrator plan for before late-2026 upgrades?
Three model changes need attention before upgrading. As of November 2026, Now LLM V2 models are deprecated for new development, with retirement planned for December 2026. Gemma on the ServiceNow-hosted Now LLM Service requires Generative AI Controller 15.1 or higher. November ITSM release notes name Gemini 3.5 Flash and Claude Sonnet 4.6 for several skills. Confirm each on your instance.
Confirm the controller version before you change a model
For Gemma, the controller version sets the minimum. Gemma 4 26B-A4B is a documented example on the ServiceNow-hosted Now LLM Service, and it needs Generative AI Controller 15.1 or higher. It is not a guarantee that every feature can select it. An instance below that version cannot run the route until it is upgraded. Sort your instances into those at 15.1 or above, those below it with an upgrade date, and those below it with no date.
Find every place a model name is set
A model can be named in more than one place, so changing one can leave another pointing at a model you meant to retire. Check the model name on each provider route you use, and any default provider that still points at a model you plan to retire.
Treat the retirement date as a planning date
As of November 2026, retirement of the Now LLM V2 models is planned for December 2026. A planned date can move, and existing uses continue during the transition. Plan the replacement as if December is the deadline. Compare each older model-card entry in your records against a dated retirement notice, because a model card can describe a model correctly and still describe one that is no longer offered.
Test the replacement before the default changes
Run a short set of prompts your team actually uses, such as activity summaries, sentiment checks and any skill that writes into a record, through the current and replacement models. Compare length, tone and whether the structure your downstream fields expect is still present.
Check where the replacement model processes data
A model change can also change where requests are processed. The product-specific terms dated September 1, 2026 permit cross-region processing, so a model swap is not a data-location decision on its own. Ask for the processing-location commitment for the specific skill, model and deployment in use. As of November 2026, Google web-search grounding is a known exception: it uses global infrastructure and may process outside the instance’s chosen location.
What to ask for before the upgrade
- The model each skill in your subscription will use in the upgrade release, with the release note that states it.
- The retirement date for every model you currently use, in writing, with the date of the notice.
- Confirmation that your Azure OpenAI environment, configuration and region offer the model you plan to use. Availability there depends on those three things.
- The processing-location commitment for each model and skill in scope.
Frequently asked questions
Can a capability use more than one provider at the same time?
No. Set the current provider’s Default to false, then set the new one to true.
Do I need credentials before I assign a provider?
Yes. Assignment needs the admin role and existing credentials.
Is prompt logging on by default?
Yes. The log_prompt property defaults to true, so API calls are logged unless an admin changes the setting.
Where do I look when a generative AI request fails?
Open the Generative AI Log table, sys_generative_ai_log. Each record carries the error message, error code and status, and records are retained for 180 days.