BookmarkSubscribeRSS Feed

SAS Visual Investigator Copilot – Prompt-based Text Generation

Started yesterday by
Modified yesterday by
Views 43

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.

 

 

SAS Viya Copilot for Visual Investigator

 

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:

 

  • Using the Copilot pane to learn how to perform a task in SAS Visual Investigator
  • Using the Copilot pane to learn more about your organization’s unique SAS Visual Investigator implementation

 

Please note the current limitations of the Copilot pane, including:

 

  • Copilot is unable to directly modify your SAS Visual Investigator configuration
  • Copilot is unable to display sensitive or restricted information
  • Copilot cannot provide you with an export of your system configuration

 

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:

 

  1. Assisted search: Use natural, conversational language to search within SAS Visual Investigator
  2. Image description generation: Use GenAI to create descriptions for images that appear on a page
  3. Prompt-based text generation: Use GenAI to create text based on a preconfigured prompt

 

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.

 

 

Feature Enablement

 

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:

 

  • GenAI Assisted Search
  • GenAI Image Description
  • GenAI Text Generation
  • GenAI Conversational Agent

 

01_AL_SAS_VI_Copilot_blog1_03.png01_AL_SAS_VI_Copilot_blog1_03.png

 

02_AL_SAS_VI_Copilot_blog1_04.png02_AL_SAS_VI_Copilot_blog1_04.png

The feature pertaining to the prompt-based text generation capability is GenAI Text Generation.

 

 

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.

 

 

Configuration

 

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.png03_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.png04_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.png05_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.png06_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.png07_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.png08_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.png09_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.png10_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.png11_AL_SAS_VI_Copilot_blog2_13.png

This is just one of many use cases for this GenAI feature.

 

 

Summary

 

In this post, I showcased the GenAI text generation feature within SAS Visual Investigator, including its configuration.

 

 

Read More

 

For additional content on SAS Visual Investigator, check out the following posts:

 

 

 

Find more articles from SAS Global Enablement and Learning here.

Contributors
Version history
Last update:
yesterday
Updated by:

Viya Copilot Motion Graphic.gifViya Copilot Motion Graphic

Ready to see what SAS Viya Copilot can do?

Visit the Tips & Tricks page for setup guidance, demos, and practical examples that show how Copilot supports your workflows.

Get Started →

SAS AI and Machine Learning Courses

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.

Get started

Article Tags