Automation Architect / Technical Lead ยท 2025
Procurement Decision Automation Platform
A deterministic-first procurement automation platform for a precious metals retailer, automating reorder decisions across four metals and five sales channels with AI constrained strictly to an advisory role.
A leading precious metals retailer's procurement relied on manual replenishment decisions across gold, silver, platinum, and palladium, spanning five sales channels. The process was slow, inconsistent, and produced no audit trail for decisions touching high-value inventory.
Architected and delivered the platform end to end as technical lead for the QBrainX Phase 1 engagement. The defining design choice was glass-box, deterministic-first: all procurement quantities are produced by auditable rules-based math. AI (Amazon Bedrock running Qwen3-32B) is constrained to advisory and narrative output and is never permitted to emit a purchase quantity. That guardrail is enforced in code as a non-retryable error. Built a reusable primitives library on n8n Enterprise (Queue Mode) that abstracts connection management, error handling, and S3 I/O away from business workflows. The deterministic engine itself handles large-order exclusion, low-velocity gating, promotional adjustments, and per-metal thresholds. Owned seven deliverables across four payment gates: standards and AI guardrails pack, primitives library, business-rules engine, AI reasoning and validation layer, operations readiness, production setup, and full knowledge-transfer handover.
Automated procurement reorder decisions across four metals and five sales channels, replacing a manual process. Production infrastructure on EKS with zero static credentials throughout. [Add SKU count, order volume, or time-saved metric when available.]
The core architectural bet was that AI has no business owning a purchase quantity in a high-stakes financial workflow. The glass-box design enforces this in code rather than in policy: the LLM layer receives context and produces reasoning and narrative, but if it attempts to return a quantity, the system raises a non-retryable error. That boundary is what makes the platform auditable and trustworthy to a finance team, not just technically impressive.
The primitives library was the quiet enabler. Every workflow node in n8n that touches infrastructure goes through a shared abstraction: connection logic, retry behaviour, error taxonomy, and S3 I/O are encapsulated once and reused everywhere. Business-logic workflows never manage infrastructure directly. This was the decision that made the seven-deliverable scope achievable without the codebase becoming a maintenance problem on handover.
The no-static-credentials principle was non-negotiable from day one. Production runs on EKS with IRSA for pod-level AWS access; dev and staging run on EC2 with instance profiles. AWS Secrets Manager with External Secrets Operator handles secret rotation. The Terraform repo is modular across environments so the same infrastructure definition covers all three tiers with environment-specific overrides.
KEDA autoscaling on the n8n worker tier means the platform handles order-volume spikes without manual intervention. The queue-mode architecture separates workflow execution from the n8n main process, keeping the control plane stable under load.