How to trigger an AI agent ??

Apurv Kumar
Tera Expert

I have created an AI Agent which is performing certain action on an HR Case when tested from the console. But, i am unable to call it from my flow to trigger automatically when a record is created from the portal. I have also put the trigger condition in the agent i build. Kindly let me know the best way to trigger the AI Agent everytime when a fresh record gets created.
Thank you in advance!!

5 REPLIES 5

Danish Bhairag2
Tera Sage

Hi @Apurv Kumar ,

 

Pls see if the below link helps, similar issue i feel.

 

https://www.servicenow.com/community/now-assist-forum/servicenow-ai-agent-trigger-issue/m-p/3341273/...

 

Thanks,

Danish

Tanushree Maiti
Tera Patron

Hi @Apurv Kumar 

 

Refer Servicenow Documentation: Use an AI agent action 

https://www.youtube.com/watch?v=6OtrqomrWYQ&t=2s

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti
In this video, you'll learn how to invoke AI Agents in Salesforce using record-triggered flows with Agentforce. This tutorial walks you through the exact steps to connect your flows with intelligent agents and automate actions like never before. ✅ What's Covered: Calling AI Agents using ...

Thanks for the help.

The agent i have created is giving me a correct result when tested alone. But, when i am trying to call it from flow it is updating the field with a new choice called 'none'. Any idea why is it doing so? am i doing anything wrong? 

iCertGlobal
Mega Contributor

Often, the most dependable method is to call the AI Agent directly from Flow Designer using the appropriate AI Agent action rather than relying solely on the agent's trigger conditions. Also, check the Flow Designer execution logs and AI Agent logs to verify whether the flow is running and whether the agent invocation is failing or being skipped. This should help identify the source of the issue.