WhatsApp Agent Shopify tools Draft order OpenAI · DeepSeek Human handoff

Independent product work · Conversational commerce · 2025 – 2026

WhatsApp Sales Agent

A WhatsApp sales agent whose catalog, price and stock come from Shopify. The model does not invent a number. A human takes over when the conversation leaves the tools.

WhatsApp · Shopify · Tool calling · OpenAI · DeepSeek · Failover

Context

The store already lived in Shopify. Buyers were already on WhatsApp. The failure mode of a naive bot is well known: it invents a price, confirms stock it does not have, and a human has to unwind the mess.

My ownership

Constraints

Architecture

WhatsApp message
  → agent
  → tools: Shopify catalog / price / stock
  → tool: create draft order
  → OpenAI, fail over to DeepSeek
  → reply on WhatsApp
  → human handoff on tool failure, unsupported intent, or an explicit escalation rule

AI architecture

Tradeoffs

The model does not create the charge. It opens a Shopify draft order. Payment stays with a human or the existing checkout.

Impact

The agent reads Shopify for catalog, price and stock, opens a draft order, and hands off to a human when the tools cannot answer.

What I learned

Example exchange

Illustration of the tool path. Not a customer transcript.

Buyer: Do you have the 2kg bag?
Agent: Shopify shows 14 in stock. I can open a draft order.
Buyer: Yes.
Agent: Draft order is open. A person on the team confirms payment.