How do I call a deferred URI from the HTTP API call?

In my SAP environment we have deferred URI to get to more details. How can I use the HTTP Request tool to call the Deferred URI?
uri:https://XXXXXXX-api.s4hana.ondemand.com/sap/opu/odata/sap/API_MATERIAL_STOCK_SRV/A_MaterialStock(‘178’)/to_MatlStkInAcctMod

Hi @Harsh_AI,
I think you can add another HTTP tool node, set its URL automatically by the AI model, and write a clear description explaining how to call it..

This way, you’ll have two HTTP tool nodes, the first one calls the endpoint that returns another URL, and the second one uses that URL automatically by the AI..

If you want a more precise method that doesn’t rely on the AI, I’d suggest creating a sub-workflow, In that sub-workflow, first make an HTTP call to get the deferred URI, parse it, then make another HTTP call, Finally, use that sub-workflow as a tool in the main workflow that includes the AI agent..

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.