SAS Viya Copilot is a set of SaaS features that utilize LLMs to transform natural language into recommendations and actions, providing users with a more intuitive and accessible way to work within their SAS Viya ecosystem. This post is part three of a series exploring SAS Viya Copilot for Visual Investigator, with a deep dive into its text generation features.
For a more in-depth introduction to SAS Viya Copilot, please see my previous posts: SAS Visual Investigator Copilot – Assisted Search and SAS Visual Investigator Copilot – Image Description Generation.
In short, SAS Viya Copilot can be used to enhance your SAS Visual Investigator usage in several ways, including:
Please note the current limitations of the Copilot pane, including:
In addition to the abovementioned usages of the Copilot pane, SAS Viya Copilot offers three in-context experiences that have been directly embedded within SAS Visual Investigator:
In the first two parts of this series, I explored the assisted search and image description generation features. In this post, let’s dive into the prompt-based text generation feature.
Depending on your software version, the abovementioned features may first need to be toggled on within SAS Environment Manager. Note that this is only relevant for software releases older than 2026.04, as the features become generally available in the 2026.04 release.
The relevant features are:
01_AL_SAS_VI_Copilot_blog1_03.png
02_AL_SAS_VI_Copilot_blog1_04.png
The feature pertaining to the prompt-based text generation capability is GenAI Text Generation.
In this post, I will walk you through how to use the GenAI text generation feature to summarize all the comments associated with a particular object in SAS Visual Investigator.
In order to use the GenAI text generation feature, you must first create a prompt template to define how you want to structure and show the generated text.
Start by following the typical steps to create a new Document Template. Document templates can be created from SAS Visual Investigator’s Admin UI (Manage Investigate and Search), under Pages – Document Templates – New document template.
03_AL_SAS_VI_Copilot_blog2_06.png
Next, create a new block to be added to the document template. With the objective of summarizing object comments in mind, I’m using the Comments block type.
04_AL_SAS_VI_Copilot_blog1_01.png
Go to the Layout tab of the block and insert the GenAI prompt component.
05_AL_SAS_VI_Copilot_blog2_07.png
In the GenAI prompt window, enter a prompt—specific instructions for the AI to process the available data associated with the object. This is mandatory. In this example, I’m using the prompt “Summarize the information”.
Optionally, you can enter a scope name, which gives this section a name and allow for better organization. If a scope name is provided, the prompt targets only data within that scope. Otherwise, the prompt will target data across the entire template.
06_AL_SAS_VI_Copilot_blog2_08.png
This is what the Layout tab looks like after adding GenAI prompt. Notice that I’ve moved the repeating content block into the Scope I’ve created.
07_AL_9SAS_VI_Copilot_blog2_09.png
Once the block has been saved, add it to the new Prompt Template.
08_AL_SAS_VI_Copilot_blog2_10.png
Now that the prompt template has been configured, I can configure the Entity Page Template to include the Generated Text control. This new control can be dragged and dropped onto the canvas like other page controls. Once it has been added to the canvas, click on it to configure it. Set the Prompt template as the prompt template we previously created. Optionally, you can define a title text. If the Automatically generate box is checked, the comment summary will be generated automatically. If left unchecked, the end user will have the option to click on a Generate button to generate the summary.
09_AL_SAS_VI_Copilot_blog2_11.png
Now that the configuration has been completed, let’s take a look at the result in the Investigator UI (Investigate and Search Data).
I’ve created a new Case object and added a number of comments.
10_AL_SAS_VI_Copilot_blog2_12.png
You can now click on the Generate button within the newly added Comment Summary control to generate a summary of all the comments associated with this object.
11_AL_SAS_VI_Copilot_blog2_13.png
This is just one of many use cases for this GenAI feature.
In this post, I showcased the GenAI text generation feature within SAS Visual Investigator, including its configuration.
For additional content on SAS Visual Investigator, check out the following posts:
Find more articles from SAS Global Enablement and Learning here.
Visit the Tips & Tricks page for setup guidance, demos, and practical examples that show how Copilot supports your workflows.
The rapid growth of AI technologies is driving an AI skills gap and demand for AI talent. Ready to grow your AI literacy? SAS offers free ways to get started for beginners, business leaders, and analytics professionals of all skill levels. Your future self will thank you.