Part 3: Integrate Your Agent into Business Processes
You've built powerful tools and created an intelligent agent—now it's time to put them to work! In this final part, you'll embed your Inventory Management Agent into an automated Boomi integration process that responds to real business events. This transforms your agent from an interactive chatbot into a true business process automation solution.
Think about how a human inventory specialist works: they don't just sit around waiting to be asked questions. They actively monitor for events—a low stock alert arrives, a new purchase order is submitted, a shipment tracking update comes in—and they take action. Your agent will work the same way, automatically triggered by business events and responding intelligently based on the context.
Agentic systems are "event-driven and continuous." The agent doesn't just "run"—it's "activated" by a goal or an event. It remains active and works until the goal is achieved, not just until a script finishes. This is a fundamental difference from traditional integrations!
The Business Scenario
Here's what you're building: When inventory levels fall below a critical threshold, your warehouse system will send a low stock alert. Your Boomi integration process will catch this event, invoke your Inventory Management Agent, and let the agent intelligently handle the situation. The agent might:
- Check current inventory levels across all warehouses
- Validate if there are existing purchase orders covering the shortfall
- Track inbound shipments to see if relief is on the way
- Generate a reorder recommendation with supplier information
- Return a comprehensive analysis for the procurement team
All of this happens automatically, without human intervention—unless the agent determines it needs human approval (which you'll configure).
Create the Integration Process
Let's start by creating a new integration process in Boomi.
-
Return to the Boomi Integration platform by clicking Integration in the menu next to the AI icon.
Navigation TipIf you're already in the Boomi Platform, you may already be on the Integration tab. Look for the "Build" navigation menu on the left side.
-
In the component library, navigate to Workshop Assets → Participants and locate the folder with your email or name.
-
Right-click on your folder (or click the three dots to the right) and select New Component → Process, then click Create.
-
In the dialog:
-
Type: Choose Data Passthrough
-
Click the Make the recommended changes for me link
Why Data Passthrough?Data Passthrough is a simple process type that's perfect for event-driven workflows. It receives data, processes it, and returns a response—exactly what we need for handling inventory alerts.
-
-
Click OK.
-
Rename the process from New Process to
Inventory Alert Handler. -
Click Save.
Build out the Process
Now you'll construct the process that receives an inventory alert and invokes your agent.
Add a Message Step to Simulate an Event
To test your process, you'll first create a message step that simulates an incoming low stock alert. In a production environment, this would be replaced by an actual trigger (like a webhook, queue listener, or scheduled check).
-
On the process canvas, click the + icon after the Start step.
-
In the search box, type
messageand select the Message step.The Message StepThe Message step allows you to create static test data. This is incredibly useful during development—you can test your agent's response without connecting to real systems. Later, you can simply replace this with a real data source.
-
In the Message content area, paste the following JSON alert:
'{
"alert_type": "low_stock",
"timestamp": "2025-11-14T10:30:00Z",
"warehouse_id": "W-001",
"product_id": "PROD-8472",
"product_name": "Industrial Sensor Module",
"current_quantity": 12,
"reorder_point": 50,
"product_category": "Electronics",
"priority": "high",
"context": "Current inventory for Industrial Sensor Module at Warehouse W-001 has fallen to 12 units, which is below the reorder point of 50 units. This is a high-priority item with frequent demand. Please investigate current stock status, check for existing purchase orders, track any inbound shipments, and provide reorder recommendations including supplier information and estimated lead times."
}'Understanding the Alert DataThis JSON structure contains all the context your agent needs to make intelligent decisions: which item is low, where, how critical the situation is, and what actions to consider. The "context" field provides a natural language summary that helps the agent understand the business urgency.
-
Click OK.
Add the Agent Step
Now comes the exciting part—adding your Inventory Management Agent to the process!
-
Click the + icon after the Message step.
-
In the search box, type
agentand select the Agent step.The Agent StepThe Agent step is a specialized Boomi connector that programmatically invokes Agentstudio agents. It sends the input data to your agent, waits for the agent to complete its reasoning and tool calls, and returns the agent's response—all within your integration process flow!
-
Click Configure below the Agent step.
-
In the configuration dialog, click the Agent dropdown and select Inventory Manager [builderInitials] (the agent you created in Part 2).
Agent SelectionYou're connecting this integration process directly to your deployed agent. The process will invoke the agent's full capabilities—all the tasks, tools, and reasoning you configured.
-
Click Generate Configuration.
Auto-ConfigurationThe Generate Configuration button automatically creates the proper data mappings and settings needed to invoke your agent. This saves you from having to manually configure complex API calls and authentication.
-
Click the Authentication tab.
-
Enter the Platform API Token:
- Platform API Token:
a31aa3a0-219f-4e5f-8ef1-c22429be943f
Security NoteIn a production environment, you would use environment-specific tokens and store them securely in Boomi's Password Management system. For this workshop, we're using a shared training token.
- Platform API Token:
-
Click OK to close the configuration dialog.
Add a Stop Step
Let's complete the process by adding a Stop step so you can see the agent's response.
-
Click the + icon after the Agent step.
-
Search for
stopand select the Stop step.The Stop StepThe Stop step ends the process flow and makes all data available for inspection. This is perfect for testing—you'll be able to see exactly what your agent returned.
-
At the top of the canvas, rename your process to
Inventory Alert Handlerif it's not already named that. -
Click Save in the top right of the canvas.
Process SavedYour integration process is now saved to your Boomi account. Before testing, make sure you have a runtime environment available (this should have been set up in the prerequisites).
Test Your Automated Agent
Now for the moment of truth—let's see your agent in action within an automated process!
-
Click Test at the top of the canvas.
-
In the test execution dialog, select your Test runtime environment (this should have been configured during workshop setup).
Runtime SelectionThe runtime environment is where your process actually executes. In a production setup, you'd have development, test, and production environments with different configurations.
-
Click OK to start the test execution.
-
Wait for the process to complete. You'll see a progress indicator as the process runs through each step.
What's Happening?Behind the scenes, your process is: (1) generating the test alert message, (2) sending it to your agent via API, (3) waiting for your agent to reason and execute tool calls, and (4) receiving the agent's complete response. This typically takes 10-30 seconds depending on how many tools the agent needs to call.
Examine the Agent's Response
Once the process completes, let's see what your agent did!
-
On the process canvas, click the Stop step.
-
Click Step Source Data in the properties panel.
-
Click the paper icon (view document) to open the response data.
Multiple Documents?If you see multiple documents listed, you're seeing each execution instance. Click on the most recent one to view that execution's results.
-
Scroll through the Agent response.
Understanding Tool CallsThis is where you see the agent's intelligence in action! You might see that it:
- First called
Query Inventorywithwarehouse_id: "W-001"to check the local situation - Then called
Query Inventorywithproduct_id: "PROD-8472"to check all warehouses - Then called
Track Shipmentwithproduct_id: "PROD-8472"to see if any deliveries are pending - Then called
Get Supplier Infowithproduct_category: "Electronics"to find reorder options - Finally synthesized all this data into actionable recommendations
The agent DECIDED this sequence based on the alert context—you didn't program these specific steps!
- First called
Understanding What Just Happened
Take a moment to appreciate what you've built. This is fundamentally different from traditional integration:
Traditional Integration Approach
A traditional integration would have looked like this:
IF stock < reorder_point THEN
Call API: Get Purchase Orders
IF no_open_pos THEN
Call API: Get Supplier
Send Email: "Reorder needed"
END IF
END IF
This rigid flowchart breaks if:
- The API response format changes
- There are multiple warehouses to check
- You need to consider in-transit shipments
- The business rules become more complex
Your Agentic Approach
Your agent-powered solution works like this:
WHEN low_stock_alert RECEIVED
Agent Goal: Resolve inventory situation for PROD-8472
Agent Toolbox: Query Inventory, Track Shipment, Validate PO, Get Supplier
AGENT REASONS:
"I need to understand the full inventory picture"
→ Calls Query Inventory across all warehouses
"I should check if relief is already on the way"
→ Calls Track Shipment for this product
"I need supplier options for recommendations"
→ Calls Get Supplier Info
"I can now provide comprehensive recommendations"
→ Synthesizes all data into actionable report
END
The agent dynamically decides its path based on the data it discovers. If it finds an existing PO, it might not need supplier info. If inventory is low everywhere, it prioritizes differently than if other warehouses have stock. This is role-based resilience.
Next Steps: Production Considerations
You've successfully created a working agent-powered automation! Before deploying this to production, consider these enhancements:
1. Replace the Message Step with Real Triggers
In production, you'd replace the test Message step with actual event sources:
- Webhook Listener - Let your warehouse system POST alerts directly to Boomi
- Database Query - Schedule periodic checks of inventory levels
- Queue Listener - Subscribe to inventory events from message queues
- Salesforce/NetSuite Connector - Listen for ERP events
A key benefit of this architecture: your agent doesn't care how it's triggered. The same agent works with webhooks, scheduled jobs, or manual invocations. This is the "separation of concerns" that makes agentic systems so flexible!
2. Add Error Handling
Production processes need robust error handling:
TRY
Invoke Agent
IF agent_response.confidence < 0.7 THEN
Escalate to Human
ELSE
Process Recommendations
END IF
CATCH
Log Error
Send Alert to IT Team
Retry with Backoff
END
3. Implement Human-in-the-Loop for High-Value Actions
For critical decisions (like ordering expensive inventory), add approval gates:
IF agent_recommendation.order_value > $10,000 THEN
Send Approval Request to Procurement Manager
WAIT FOR approval_response
IF approved THEN
Execute Agent Recommendation
END IF
END IF
This is the "Human-in-the-Loop" pattern from the Architecting for Agents framework. For high-stakes or low-confidence decisions, the agent pauses and escalates to a human, proposing its plan for approval. This turns the agent into a collaborator, not just an autonomous actor.
4. Add the Update Inventory Tool
Remember the fifth tool you created in Part 1 but didn't attach yet? In a production scenario, you could attach the Update Inventory tool to a new task called "Execute Approved Changes" that allows the agent to automatically adjust inventory records after validation or shipment receipt.
Agent Task: Execute Approved Changes
Instructions:
- Only update inventory when changes are confirmed and authorized
- Always include a reason code for audit trail
- Never adjust quantities by more than 1000 units without human approval
- Log all changes with timestamp and source information
Tools:
- Update Inventory (with optional reason parameter)
This would enable fully autonomous inventory management—but only with proper guardrails!
5. Monitor Agent Performance
Track key metrics to ensure your agent is performing well:
- Response Time - How long does the agent take to analyze and respond?
- Tool Call Efficiency - Is the agent making appropriate tool choices?
- Escalation Rate - How often does the agent need human help?
- Action Accuracy - Are the agent's recommendations correct?
Boomi's logging and monitoring capabilities can capture all agent interactions for analysis.
What You've Accomplished
Congratulations! You've completed all three parts of the Inventory Management Lab. You've built a complete agentic automation solution that:
- ✅ Created Flexible Tools - Five API tools with optional parameters that enable role-based design
- ✅ Built an Intelligent Agent - An Inventory Manager that reasons about which tools to use and when
- ✅ Integrated into Business Processes - An event-driven automation that responds to inventory alerts
More importantly, you've learned the fundamental principles of agentic architecture:
- Design for Roles, Not Tasks - Your agent fills the role of Inventory Manager, not just "check stock" or "create PO"
- Flexible Tool Use - The agent dynamically decides which tools to call based on context
- Dynamic Data Flow - The agent synthesizes information from multiple sources (inventory, shipments, suppliers)
- Event-Driven Activation - The agent is triggered by business events and works until goals are achieved
- Governed Autonomy - Guardrails ensure the agent operates safely within approved boundaries
Comparing to Traditional Integration
Let's reflect on the key differences between what you built and a traditional integration:
| Aspect | Traditional Integration | Your Agentic Solution |
|---|---|---|
| Design Focus | Task (execute steps A→B→C) | Role (manage inventory operations) |
| Data Requirements | Rigid schemas and mappings | Flexible, handles unstructured context |
| Process Flow | Hard-coded flowchart | Dynamic reasoning and tool selection |
| Error Handling | Breaks and flags exceptions | Reasons about failures, tries alternatives |
| Maintenance | Breaks when APIs change | Adapts to changes through reasoning |
| Scope | Solves one specific problem | Handles multiple related problems |
Real Business Value
The solution you've built delivers measurable business outcomes:
- Faster Response to Inventory Issues - Minutes instead of hours or days
- Reduced Stock-Outs - Proactive identification of shortages before they impact operations
- Lower Carrying Costs - Intelligent reorder recommendations based on multiple data sources
- Better Supplier Decisions - Automated analysis of supplier options with lead times and pricing
- Complete Audit Trail - Every agent action is logged with reasoning and data sources
- Human Oversight Where Needed - Guardrails ensure critical decisions get human approval
You've successfully built an intelligent Inventory Management Agent that automates complex business processes while maintaining human oversight and governance. Your agent can monitor stock levels, validate purchase orders, track shipments, and provide intelligent recommendations—transforming manual, reactive inventory management into intelligent, proactive automation!
Continue Your Agentic Journey
Ready to build more? Consider these next steps:
- Expand Your Agent's Capabilities - Add more tools for additional inventory operations like cycle counting, vendor performance tracking, or demand forecasting
- Create Specialized Agents - Build focused agents for specific roles like "Warehouse Operations Manager" or "Procurement Specialist"
- Build Agent Collaboration - Design workflows where multiple agents work together, each with specialized expertise
- Integrate with Your Systems - Connect to your actual ERP, warehouse management, and supplier systems
The principles you've learned in this lab apply to any business process that requires intelligent decision-making, data synthesis, and adaptive behavior. Welcome to the world of agentic automation!