OBLYTECH Logo
OBLYTECH Logo

Configure a Generic Large Language Model Connector in Generative AI Controller

A generic LLM connector lets Generative AI Controller send custom prompts to an external language model and use its text responses in generative AI capabilities. Configure the model with its credential alias, connect a capability definition to that model, and add request and response transformers that match the external service.

Prepare the generic LLM connector for Generative AI Controller

Use this route when a workflow needs a model beyond the available base system connections, such as an industry model or one selected for your organization’s data handling requirements. Generative AI Controller supports text generation. Decide which text task the model should perform before you start creating configuration records.

The role required for this connector configuration procedure is admin. Configure the external model’s API credentials beforehand, and have the resulting connection and credential alias ready. The model configuration will associate the external model with its API key through that alias. Keep credential setup separate from writing the capability prompt so each part can be reviewed clearly.

Prepare a small design record containing the model identifier, credential alias, intended capability, input attributes, expected request structure, and expected response structure. This is a recommended working checklist: it gives the administrator and script reviewer a shared contract before configuration begins. Check the fields and behavior on your instance and release before applying the sequence.

For the surrounding administration context, see Now Assist Admin Hub usage and Generative AI Controller. Keep this connector task focused on getting the chosen model and capability to exchange text correctly.

Create the model configuration and check its provider

  1. Enter sys_generative_ai_model_config.list in the navigation filter to open Generative AI Model Configuration.
  2. Select New and enter the model identifier in Model. For Azure OpenAI, use the resource’s deployment name.
  3. Set Provider to Custom LLM.
  4. In Connection and Credential Alias, choose the alias prepared during credential configuration.
  5. Select Submit to create the model configuration.

Review the saved values before moving to the capability record. A descriptive name in your planning notes can help colleagues identify the intended service, but the Model value must identify the model the external service expects. For an Azure OpenAI deployment, substituting a familiar model family name for the deployment name would disregard the required naming rule.

Provider also affects the next selection step. A model configuration must use Custom LLM to appear among the model choices for a Custom LLM capability definition. If the expected record is missing later, inspect this field before creating replacement records. That check targets the documented selection dependency and avoids accumulating several configurations for the same attempted setup.

Bind a capability and write its prompt template

  1. Enter sys_generative_ai_config.list in the navigation filter and select New.
  2. Use the list lookup icon beside Definition.
  3. In Select the document, choose the capability intended for the Custom LLM provider. For summarization, select Summarize (Custom LLM).
  4. Select OK, then choose the model configuration in Model.
  5. Enter the capability instructions in Prompt template and select Submit.

Choosing Definition changes Model into a drop-down containing configurations for the Custom LLM provider. Treat this as a checkpoint between the two records. Confirm that the selected definition expresses the intended operation and that the model belongs to the external service you prepared. A saved configuration with the wrong pairing can be harder to diagnose than a missing selection.

Build the prompt around the capability’s actual input attributes. Open the capability record in OneExtend Capability [sys_one_extend_capability] and inspect OneExtend Capability Attributes. Attribute references in a prompt template use double braces. For a summarization capability with textToSummarize available, an original starting instruction could be: Create a concise summary of the key decisions in this text: {{textToSummarize}}.

Adjust the instruction to the work being performed. For example, ask for decisions when the input contains meeting notes, or ask for the reported issue when summarizing a support description. These are prompt design choices to evaluate with representative text. Check that the chosen attribute supplies the intended content before trying to improve tone, length, or presentation through repeated wording changes.

Translate the external request and response

Open Generative AI Custom LLM Transformer [sys_generative_ai_custom_llm_transformer] through the navigation filter, select New, and write the transformer scripts. The new record includes starter code and comments. Adapt these to the external model’s request and response objects, then select Submit to save the transformer record.

The request transformer receives prompt_data and request_data. It constructs the request body and any custom headers required by the service, returning body and headers. Review how the rendered prompt and model information are mapped into the expected request. A provider that expects a messages array needs that structure assembled correctly; a differently shaped interface needs its own mapping.

Keep parameter handling explicit during review. If your request uses token or temperature settings, examine the values and types expected by that particular service. Do not treat a provider example as a universal payload contract. The purpose of the transformer is to bridge the actual interface, so compare the constructed body with the chosen model’s expected input rather than relying on field names that happen to look familiar.

The response transformer receives prompt_data, request_data, response_body, and response_headers. It must convert the returned model response into an array of text responses. For a JSON response, identify the property containing the generated text after parsing the body. An array of text strings is different from the original service response, which may also contain identifiers, usage information, and other metadata.

Review both directions together. A request may be valid for the service while the response transformer reads the wrong property. Conversely, a carefully written extractor cannot compensate for a request body that does not contain the intended prompt. Trace one input through the rendered instruction, outgoing payload, incoming response, and final text array.

For help planning this work, see ServiceNow implementation.

Verify the integration before extending its use

Use a short, non-sensitive sample with an obvious expected outcome for the initial review. This is a recommended validation method rather than a separate configuration control. It lets you distinguish whether the problem is selecting the model, supplying the capability input, constructing the service request, or extracting the generated text.

  • If Model is missing from the capability configuration, review Provider on the model record and the chosen Custom LLM definition.
  • If the instruction lacks the intended source text, compare the prompt’s attribute reference with OneExtend Capability Attributes.
  • If the external service rejects the payload, review the request transformer against that service’s expected object structure.
  • If generated text does not reach the capability as expected, examine the response property being extracted and the returned text array.

Record the sample input, intended task, and observed result alongside the configuration review. Change one suspected cause at a time so the next result helps isolate the fault. Avoid simultaneously rewriting the prompt and both transformers: that makes it difficult to tell whether a changed answer came from better instructions or a corrected data mapping.

After connecting the model, provider selection for generative AI capabilities is a follow-on activity. Custom skills can also be built with AI Skill Kit. Plan that consumption work after the connector’s request and response handling have been reviewed, so a workflow issue does not become confused with an interface issue.

Put configuration and script changes through your update sets and release management governance model. Define who reviews the record relationships, who reviews the transformer logic, and what evidence supports moving the change forward. For subsequent platform changes, use upgrade and release readiness governance to assign repeat validation of this integration.

Questions about connector design decisions

Should the first trial include several business workflows?

Start with one capability and one controlled input. This is a recommended scoping choice: a narrow trial makes the output easier to assess and reduces ambiguity about where a problem begins. Add workflow variations after the first request and response path is understood.

What should a reviewer compare when the service changes its response?

Compare the former and proposed response shapes, including the location and type of generated text. Review how the extractor handles the new structure and rerun the agreed sample. A response change deserves an explicit review even when the requested business task stays the same.

How should prompt experiments be evaluated?

Agree on an assessment criterion before comparing candidates, such as whether a summary preserves decisions without adding unsupported details. Keep the input consistent across trials. Record the chosen wording and the reason for choosing it so later editors can understand the decision.

What belongs in the handover to the support team?

Provide the record identifiers, intended capability, credential alias reference, transformer ownership, and validation evidence. Include a short fault isolation sequence based on the integration’s data path. This recommended handover gives support staff a starting point without putting secret values into operational notes.

Where does Now Assist AI processing happen, and what must we verify about model providers in a regulated or in-country environment?

Now Assist AI processing is not guaranteed to stay where your instance sits. Where it runs depends on the regional and contractual arrangements that apply to your instance. Before approving a model provider, get that answer in writing and confirm the provider is offered for your in-country or government environment.

Keep product-improvement sharing separate from processing

Sharing data to improve the product and processing data to run an AI function are separate questions, so each needs its own answer. Whether inputs, AI outputs and edits feed product improvement depends on how the instance is configured and what the contract covers. The opt-out is set per instance, so repeat it for each relevant instance. A user with the sn_generative_ai.data_steward role performs it. As of November 2026, processing the request can take up to five business days. Opting out does not stop ordinary AI processing, so the approval record needs both answers.

Map the data path for each capability

Approving one provider for the whole tenant hides the detail that decides the answer. Work through each capability you plan to switch on:

  1. List the fields and free text the capability reads, including anything users type into a record or conversation.
  2. Identify the model provider that serves it on your release.
  3. Ask where processing for that capability runs, and get the answer in writing.
  4. Check that answer against the regional processing terms in your contract. A general statement that data stays in-country is not enough.
  5. Confirm the provider is available for your environment type and your current release and patch level.
  6. Record the approval against region, workload and data sensitivity, so a provider approved for low-risk work is not reused for sensitive work by default.

Questions to put to the vendor before approval

  • Is this provider available for our in-country or government environment, or only for other environment types?
  • Does processing for each capability stay in a named region, or can it leave that region?
  • Is product-improvement sharing off on every relevant instance, and which named person holds the data steward role?
  • Will provider availability be rechecked after each upgrade and model update?

The common mistake with model provider settings

Teams often treat the provider setting as the whole answer. The provider setting does not settle where the data is processed, whether it feeds product improvement, or whether the same model is offered in your environment type. Typically the gap appears after go-live, when a new capability is switched on and nobody repeats the check. Model-provider policies restrict which AI providers and models can be used, so a recorded approval should be mirrored in them.