Wednesday, December 3, 2025

#1105 - Another Agentic AI example with Langflow & OIC Tools



Introduction

Sure why not another example? This is fun!

Here are the tools in my OIC project - 

Needless to say, behind every tool is an OIC integration -

The logic of these integrations is simple - 

Validate Order - all orders are valid, except for orders > 50k for Irish customers.

Check Inventory - all products are in stock, except our famous iCar.

Create an order in SAP - just returns a GUID.

Create an order in Netsuite - just returns a guid.

So these 4 are exposed as AI Agent tools, let's sanity test the MCP server connection in Postman -






back to Langflow - I create a new Simple Agent


I add my OpenAI api key - 

I enter the following agent instructions - 

Let's provide the agent with the relevant tools - 

Remember from the JSON we need to connect to the OIC MCP server? Here it is again -


{ "mcpServers": { "myOICOrderProcessingToolkit": { "disabled": true, "timeout": 300, "type": "stdio", "command": "npx", "args": [ "-y", "supergateway", "--streamableHttp", "yourOICMCPURL", "--oauth2Bearer", "yourOAuthToken" ] } } }

I click to add a new MCP Server -

and paste in the JSON - 

Tools are being loaded -

Connect - 

Now my agent has access to the 4 tools.

Let's try this out in the Playground - 

Test 1 will create an order for a German customer. The user input is - create an order for a German customer. The product is an iBike with price 3999. Ensure the order is valid and also check that the product ordered is in stock

Test 2 will create an order for an Irish customer - 
Test 3 is for an Irish order > 50K












Test 4 is a German order for an iCar - 








 

No comments: