How Do You Abort/Stop a Running AI Agent

SN Arch Guy
Giga Guru

How do you abort or stop a running AI Agent? See the screenshot below taken from the AI Agent Studio Activity tab, where some of the executions have a state of In progress. In the first instance, I initiated the agent from the Now Assist panel on a customer service case; in the second and third instances, I initiated the agent from the AI Agent Studio Create and manage tab. The third instance cancelled after some timeout period but I want to be able to cancel these earlier during development testing.

 

SNArchGuy_0-1765825524133.png

 

9 REPLIES 9

warren_chan
ServiceNow Employee

It depends on where you are and how the execution is running.

 

If you're in a live running execution in AI Agent Studio Testing playground, you can use the "End flow" button here:

 

Screenshot 2025-12-17 at 9.22.50 PM 1.png

 

If you're looking at a list of Execution Plans [sn_aia_execution_plan], then you are probably going to have to kill the conversation with a VA script call. This is one way, but there are others:

 

sn_cs.VASystemObject.endConversation(conversation_id);

 

Thanks @warren_chan , this looks like what I want to do, but I am not clear how to navigate to the point shown in your screen shot. I am in the AI Agent Studio per my earlier screen shot, and per the screen shot below. I started an agent manually by entering a prompt into the Test AI reasoning input area under the Testing tab. I then tried to click on various items in the Testing tab, including on the Manage evaluation runs button (which opens a new tab that shows no active runs); and on various steps in the AI agent decision logs area; and in the center AI process map area; but haven't found the menu items in shown in your screen shot.

 

SNArchGuy_0-1766065657339.png

 

There have been times when I did not start an agent manually and want to kill it, so I can use your other technique for that. But I do hope that method gets easier as the product matures.

@warren_chan I see your Testing UI has More Options than us as we do testing in AI Agent IDE.

 

What is the Version you are Using?

 

Regards

RP

warren_chan
ServiceNow Employee

My screenshot is from Now Assist AI Agents 6.0.17 (Zurich Patch 4 + December 2025 release), so it looks slightly different from yours. I can't recall when exactly we introduced the "End flow" button, but updating your app version will likely open that up. This was a big customer ask to have a way to terminate execution in AI Agent Studio.

SN Arch Guy
Giga Guru

@warren_chan I upgraded to Zurich Patch 4 and to Now Assist AI Agents (sn_aia) 6.0.17, then to 6.0.23, and still no End flow button (see below for a screen print from Agent Studio; on the Activity tab the flow still shows In progress). My other plugins look to be up to date as well. Anything else you can think of as to why I can't see that button?

 

SNArchGuy_0-1767643662201.png