Introduction
Here is a simple example of agent invoking agent. I have 2 agents, each backed by tools running on OIC.
- our Order Processing Agent - hopefully well known to you all
- our CRM agent - responsible for managing customer order history
Our CRM agent has access to the following tool -
- API Request
- Custom Component - Agent -> Webhook Body
The Custom Component transforms the agent output into the required format for the API Request.
So which API are we requesting?
Well, here's the second flow -
The core is the Agent/MCP Tools that update our CRM system, after the customer's order has been processed.
The initial action is the Webhook, which is what the API Request from the first flow calls. The next 2 actions, marshal the incoming data int the correct format -
The Parser output is the input to the Agent -
Note the 2 Chat Output actions; these will show the request and response from the agent.
Now I run the first agent, processing the following order -
Now I run the first agent, processing the following order -
create order with the order number 310397 for Irish customer Riobard Crowley, for the product, iBike, price is 456. Customer email is xxx@gmail.com
This scenario was simple to implement, thanks to chatGPT. Net, net - no matter which agent topology you have, OIC tools are there for you.
