ServiceNow AI Agent Trigger Issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2025 03:23 AM
I'm working on a use case where I want to trigger an AI Agent use case when an incident is created in ServiceNow. I’ve configured the trigger correctly — the use case is active, the condition is properly set, and the assigned roles are in place — but still, the trigger doesn't fire automatically as expected when a new incident is created.
To work around this, I decided to use the "Trigger AI Agent Use Case" flow action, which allows me to invoke the use case programmatically through a script. This approach works initially, and the AI Agent executes as expected. However, when I try to run it again for the same record, it fails silently and doesn't trigger the agent. On checking the logs, I noticed that it reports an open or in-progress conversation already exists for the record, which blocks the agent from running again.
Getting below error:
*** Script: sn_aia.TriggerRuntimeUtil: invokeAIATrigger() - Run as User [db929************e45a01] has an open or in progress agent conversation for this triggered target record [69***********************e9]
Now, I’m trying to understand how I can properly close or reset the agent conversation associated with a record so that the flow action can be used more than once if needed.
Alternatively, it would be helpful to know why the original trigger configuration is not working automatically, even though all the required settings appear to be correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2025 07:26 PM
@YashKumarV in your case if its supervised--> but you condition of trigger is not allowing any human interaction since Tool execution is happening on SUBMIT of An Incident.
Regards
RP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2025 11:26 PM
Hi @YashKumarV ,
Issue generally if AI Agent is supervised then system wait for user approval which interrupts the automatic nature of the trigger. However , you can still use supervised mechanism for AI Agent but don't expect automatic firing the trigger.
When your tool is Autonomous, Agent can act freely no need to wait manual action it will start triggering and execute the action.
Please mark helpful and correct answer if it's worthy for you.