Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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

Chris McDevitt
ServiceNow Employee
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.