Skip to main content

Natural skincare ingredients eCommerce brand · ~190 SKUs

Intelligent AI Pricing Agent

Agentic repricing that checks every proposal against three decision gates. Nothing ships until a human approves it in Slack.

By Ali Hassaan Qureshi · Published · Updated

n8nTemporalMastraClaudeChannableOdooShopifySlackSupabaseArizeNext.js
Intelligent AI Pricing Agent · AI-generated explainer

Before

Manual repricing across ~190 SKUs risked margin

After

Agent proposes, 3 gates check, a human approves in Slack

01 · Problem

What was broken.

Competitor prices change constantly across ~190 SKUs. Repricing by hand is slow and risky: one wrong move can wipe out margin or tie up cash in stock.

02 · Constraints

What the system had to respect.

  • ~190 SKUs with competitor prices changing constantly
  • No price may go below a 25% margin floor
  • Inventory and cash flow must be considered, not just competitor prices
  • Every change must be auditable

03 · Architecture

How it works.

Competitor feeds flow through n8n into a durable Temporal "PricingDecision" workflow. A Mastra + Claude agent proposes prices, which pass three gates before a Slack approval pauses and resumes the workflow. ACCA performance-management rules (target costing, margin analysis, elasticity, working capital) are written as code.

01Competitor feedsChannable → n8n02PricingDecisionTemporal workflow03Agent proposalMastra + Claude04Gate 125% margin floor05Gate 2Inventory & cash06Gate 3Elasticity (Claude)07Human approvalSlack08PublishOdoo costs → Shopify09AuditSupabase + Arize

04 · Human approval points

Where people stay in control.

  • Every proposed price change pauses for approval in Slack
  • Gate failures stop the change before a human ever sees it
  • Approved prices are the only ones published to Shopify

05 · What shipped

Delivered.

  • Competitor feeds via Channable into n8n
  • Durable Temporal "PricingDecision" workflow
  • Mastra + Claude agent that proposes prices
  • Three gates: margin floor, inventory and cash, elasticity
  • Odoo costs in, approved prices out to Shopify
  • Supabase + Arize audit trail and a Next.js decision dashboard

06 · Results

Where it stands.

Designed so no price can go below the 25% margin floor, and every change has a human approval and an audit record behind it.

Services used in this build

What clients said

★★★★★

“Great work!”
Upwork · Client · digital publishing business · Jun 2025
n8n workflows for automatic AI content creation for WordPress sites

★★★★★

Rated 5.0 with no written comment.

Upwork · Client · automation project · Jul 2025
n8n developer with experience in dev languages (ongoing)

Real feedback, quoted word for word. Client names are left out.

Want a system like this?

Start with a free 30-minute AI systems audit. You get a short written plan with 3 ideas, with no obligation.

Next case studyAircraft Parts RFQ-to-Quote Automation

See all 21 case studies →