The CreatorCon Call for Content is officially open! Get started here.

Sameer K Pandey
ServiceNow Employee
ServiceNow Employee

Ever wonder how to trigger GenAI Auto-summarization for incident, problem tickets, from the Flows / BRs?

Though this may not be a use case with your implementation or customer, I thought of tinkering while exploring GenAI Capabilities in ServiceNow. If you have similar requirements (such as agents are not adopting Summarization feature and you want them to use summarization when Agent change happens in the incident record or when incident is reopened by the caller), then below article may help.

 

Please note: using this feature will increase the Gen AI skill usage. So, use with caution. 

 

Pre-requisite: You must have installed the store app - Platform AI Agents and Skills

 

1. Setup a custom Action like below. I have called my action as Generate Incident Summarization, but you can give a generic name. It takes two inputs: tableName and recordSysID.

Screenshot 2025-09-24 at 11.53.47 AM.png

 

2. Setup a script step

Screenshot 2025-09-24 at 11.56.50 AM.png

 

 

Screenshot 2025-09-24 at 11.57.06 AM.png

I have setup three outputs, but you should be good with just one, which is summary_issue.

3. In the Action outputs, map the script output.

Screenshot 2025-09-24 at 11.58.42 AM.png

4. Test the action with few records (by passing the table name, i.e. incident and sample incident sysID) and Publish the action

 

5. Setup a flow to consume the action. Example: In my example, I am generating summarization when the priority changes. But this is likely not a great use case. 

 

Screenshot 2025-09-24 at 12.02.32 PM.png

 

6. You can use "Copy code snippet" from the Flow Action Menu (...) and use the code in the BR as well. Don't forget to pass the inputs in the code (in this example: tableName and recordSysID).

Screenshot 2025-09-24 at 12.33.25 PM.png

5 Comments
nkouloungis
Tera Contributor

Thank you for this. I've followed the steps, but am getting the following error message:

 

Error: "sn_uxc_genai" is not defined.,Detail: "sn_uxc_genai" is not defined.

 

Can you tell me where "sn_uxc_genai" comes from? Am I missing a plugin or something? I'm on the Zurich Patch 1 version.

Sameer K Pandey
ServiceNow Employee
ServiceNow Employee

Hello @nkouloungis 

I should have listed this in the pre-requisites. Thanks for pointing this out. This script include comes with the store app named - Platform AI Agents and Skills

nkouloungis
Tera Contributor

I show the Platform AI Agents and Skills store app installed in my instance, yet I still get the error. Do you have any other suggestions on potential causes?

nkouloungis
Tera Contributor

Does the action need to be built in the Generative AI Controller application scope?

Sameer K Pandey
ServiceNow Employee
ServiceNow Employee

In my case, I had set this Action and Flow in the Global Scope.