We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Not able to access subflow output in subflow tool of AI agent

anidhya_gupta
Tera Contributor

I was making a AI agents and one of the tool of AI agent is subflow. I am facing an issue in this tool. The subflow has inputs as well as Ouputs. I am able to put the values in the input but i also need the output of this subflow to be used in some other tool. But I am getting this error "Unexpected error in tool execution."

1 REPLY 1

chrismcdevi
ServiceNow Employee

Hi,

  • Verify your subflow is working.
  • Verify your subflow has been published.
  • Verify that your subflow's, Application, Accessible from, and Run As (and Role) make sense for the context in which you are running this AI Agent in.
  • Ensure you are on the latest version.
  • I built a quick subflow and then an AI Agent and added the tool successfully.