Trigger AI Agents with API

Vedavalli
Mega Sage

Hi

Can we trigger AI Agents via API?
If yes how we can?

Thanks in advance

6 REPLIES 6

In the flow, we can use API. 

 

Like: https://www.servicenow.com/community/developer-articles/outbound-rest-integration-using-flow-designe...

 

https://www.servicenow.com/docs/bundle/vancouver-build-workflows/page/administer/flow-designer/conce...

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************
In this video I show you how you use the JSON Parser when building a custom action to avoid scripting to get what you want from the response body. Link to Perspectium Webinar: https://www.perspectium.com/lp-witchdoctor-webinar/ Video Recorded in Quebec release

warren_chan
ServiceNow Employee

Yes, you can invoke AI Agents via API, but the functionality is currently limited. We have the foundation and groundwork laid down with the March 2025 release, but your mileage may vary with what you can do with it. This will be augmented in the May 2025 release, and subsequent releases this year.

 

You can review the "sn_aia.AiAgentRuntimeUtil" script include.