The flow
Starts it 1Model 4Logic 6Service 7
The steps in the order they run, from what starts it.
- 1Run inventory check every 6 hoursSchedule triggerStarts it
- 2Tool: Get supplier catalogTool WorkflowModel
- 3Tool: Check budget availabilityTool WorkflowModel
- 4Mistral AI language modelLm Chat Mistral CloudModel
- 5Query ERP for low stock itemsPostgresService
- 6Generate optimized purchase orders with Mistral AIAgentModel
- 7Fetch 90-day sales velocity dataPostgresService
- 8Parse and validate AI responseCodeLogic
- 9Combine stock and sales dataMergeLogic
- 10Route based on approval criteriaIfLogic
- 11Calculate sales velocity and stockout riskCodeLogic
- 12Insert approved POs into ERP databasePostgresService
- 13Flag for manager approvalSetLogic
- 14Update inventory with pending ordersPostgresService
- 15Group purchase orders by supplierCodeLogic
- 16Email purchase order to supplierEmail SendService
- 17Create audit log for compliancePostgresService
- 18Send summary notification to SlackSlackService