Short answer. Put the model behind a gateway, redact payment and personal data before the call, and resolve price, stock and delivery in your own services. Use retrieval for policy and product evidence, require a citation, and hand off to a human when the evidence is missing or the customer asks for an exception. Cloud regions handle catalogue and content work; private VPC or on-premises deployment handles order and customer data. Measure containment, citation accuracy and escalation, not just deflection.
What the retail workload actually is
Retail AI is rarely one assistant. It is a set of jobs with different evidence and different risk.
Customer support answers “where is my order”, “can I return this” and “which size fits” from order state, policy and product data. Catalogue enrichment turns supplier documents and images into attributes, titles and translations. Search re-ranking decides which products appear for a query. Review analysis summarises complaints and detects safety or compliance signals. Dispute and fraud triage routes a case to a human with a short evidence pack.
The support job is a common starting point, and it is easy to damage trust if it is built as a generic chatbot. A support answer is only as good as the order lookup, the returns policy version and the product record behind it. If those are stale, a fluent answer is a liability.
| Workload | Evidence source | Model capability | Primary control | Human gate |
|---|---|---|---|---|
| Order and returns support | Order service, returns policy, carrier events | Retrieval, citation, JSON output | No card data; policy version pin | Agent takes over on exceptions |
| Product Q&A | PIM attributes, size guide, review snippets | Retrieval, multilingual answer | Attribute allow-list; no invented specs | Merchandiser reviews low-confidence answers |
| Catalogue enrichment | Supplier PDFs, images, existing taxonomy | Document and image input, JSON output | Schema validation against taxonomy | Merchandiser approves new attributes |
| Search re-ranking | Query, product index, stock and margin rules | Classification or embedding similarity | Deterministic business rules after the model | Merchandising owns the rule set |
| Review analysis | Reviews, returns reasons, support notes | Summarisation, topic extraction | Aggregate only; no customer identifiers | Quality or safety team reviews signals |
The constraint is card-data scope, then peak load
The first constraint is not model quality. It is the cardholder data environment.
PCI DSS scopes the systems that store, process or transmit cardholder data or sensitive authentication data, and connecting an AI service to order or payment systems can pull that service into scope. The safe design is boring: the assistant never receives a primary account number, never asks for one, and never writes one to a prompt log. Payment fields are tokenised or removed upstream. If the use case genuinely needs payment data, stop and involve the payment and compliance owners before writing code.
The PCI Security Standards Council publishes the current PCI DSS document set at v4.x. Use the Council's document library as the authority for your assessment; do not rely on a summary in a vendor page, including this one. The same discipline applies to personal data: names, addresses, phone numbers and order identifiers should be minimised, and the log-retention rule should be set before the first prompt is stored.
The second constraint is peak load. Retail traffic is spiky by design: a promotion, a payday, a holiday window or a price error can multiply concurrency in minutes. A pilot that works at 10 requests per minute can queue when traffic reaches 600. Model the peak from last season's traffic, reserve concurrency for the support path, and put a queue and a fallback in front of the model. A plan's fair-use concurrency limit is a design input, not a footnote.
Base URL. Examples use
https://api.plugsky.com/v1. Plugsky docs also showhttps://plugsky.com/v1; both resolve, and the alias is not a second backend. Keep one host in client configuration so logs and egress rules stay consistent.
Deployment pattern: three tiers, one redaction boundary
Retail teams usually need two tiers, and sometimes three. The classification rule decides: public catalogue content can use a shared region; order and customer data need a private boundary; store or payment-adjacent data may need on-premises. Do not let a feature team pick a tier by convenience.
| Tier | What runs there | Data allowed | Typical workload | Trade-off |
|---|---|---|---|---|
| Cloud region | Plugsky API in EU Frankfurt, GCC UAE, APAC Singapore or US Virginia | Public catalogue, marketing copy, published policy | Catalogue enrichment, content drafting, general Q&A | Fast to ship; not for order or customer data |
| Private VPC or endpoint | Dedicated inference inside a contracted boundary | Redacted order history, customer records, unpublished pricing | Support copilot, dispute triage, search re-ranking | Contract-led; needs identity and network work |
| On-premises or air-gapped | Model runtime in a retailer-controlled environment | Payment-adjacent or store data that cannot leave | Store operations, restricted fraud review | Highest control; highest operating burden |
The redaction boundary sits in front of every tier, including the cloud one. A gateway should classify the request, strip blocked fields, attach the customer's consent and region, and route to an approved endpoint. It should also record which model served the request; the AI gateway page covers routing and policy, and private AI covers the deployment boundary.
Reference architecture for a support copilot
The pipeline below answers order and policy questions without giving the model authority to change an order. It is deliberately narrow. Start with one intent family, such as returns, and expand only after the evaluation set is stable.
- Receive. A support event carries the customer ID, order ID, locale and channel. Authenticate the session before any lookup.
- Redact. Replace names, addresses, phone numbers and payment fields with stable tokens. Keep the mapping in a service the model cannot query.
- Resolve facts. Call the order, inventory and pricing services. Price, stock and delivery promise are resolved here, not generated by the model.
- Retrieve policy. Fetch the current returns, warranty and shipping policy for the customer's market and locale. Pin the policy version to the response.
- Generate. Call
https://api.plugsky.com/v1/chat/completionswith the resolved facts, policy passages and a strict output schema. - Check. Reject an answer that cites a policy not in the retrieved set, quotes a price that differs from the resolved value, or promises an exception the policy does not allow.
- Hand off or answer. Low-risk answers go to the customer with a citation link. Exceptions, complaints and high-value orders go to an agent with the evidence pack.
curl https://api.plugsky.com/v1/chat/completions \
-H "Authorization: Bearer $PLUGSKY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "plugsky-lite",
"messages": [{"role": "user", "content": "Answer only from the resolved facts and policy passages. Return JSON: answer, policy_id, order_id, confidence, handoff_reason."}],
"response_format": {"type": "json_object"}
}'
Two details make the pipeline auditable. First, the resolved facts are passed as structured fields, not as prose the model can reinterpret. Second, the model's output is checked against those fields before it reaches the customer. A mismatch is a failed request, not a clever answer.
What to measure
Deflection is a business outcome, not a quality metric. A bot that deflects contacts by refusing to help looks efficient and loses customers. Measure quality first, then containment, then cost.
| Metric | What it detects | Data source | Guardrail |
|---|---|---|---|
| Grounded-answer rate | Claims with no supporting policy or order fact | Citation check against retrieved passages | Fail closed when unsupported |
| Policy-citation accuracy | Right answer, wrong policy version or market | Policy ID and version in the response | Pin the version per request |
| Price and stock mismatch rate | Model contradicts the pricing service | Compare output with resolved values | Block the response on mismatch |
| Containment with CSAT guardrail | Deflection that harms satisfaction | Contact outcome joined to survey | Pause rollout if CSAT drops |
| Escalation and repeat-contact rate | Answers that do not resolve the task | Ticket events within 72 hours | Review a weekly sample |
| p95 latency at promotion peak | Queueing under burst traffic | Histogram by endpoint and intent | Queue plus human fallback |
| Prompt-injection block rate | Hostile text in reviews, uploads or chat | Gateway policy events | Treat retrieved text as untrusted |
Prompt injection belongs on the list because retail ingests untrusted text: reviews, supplier documents, customer uploads and chat messages. The OWASP Top 10 for LLM Applications lists prompt injection as LLM01 in its 2025 edition. The practical control is architectural: retrieved text never carries authority, tool calls are allow-listed, and an instruction found inside a document cannot change the output schema or the refund policy.
Where retail AI goes wrong
A common failure is a stale price. A model answers from a cached product page while the pricing service has moved on, and the customer screenshots the difference. The fix is to remove price generation from the model entirely.
The second is an unauthorised discount: a support assistant invents a goodwill credit because the prompt says “be helpful”. The third is a policy mismatch across markets, where an EU returns window is applied to a GCC order. The fourth is personal data in a log: a redaction step that misses a free-text address field.
Each failure has a non-model fix. Resolve money in a service. Put discount authority in a rules engine with a human approval step.
Key policy retrieval by market and locale. Test redaction against real free-text patterns, not just structured fields. If the fix requires the model to “be careful”, it is not a control.
A governance structure such as the NIST AI Risk Management Framework can assign owners for these controls, but it does not replace the measurement.
Plan fit and procurement
Self-serve plans cover API work in a live region. Starter at $20/month includes 2,000 requests/day, 5M tokens/day, 6 concurrent requests and 240 RPM. Builder at $60/month and Scale at $120/month remove the monthly token cap and per-token overage; fair-use concurrency (10 or 16 requests) and RPM limits (600 or 1,200) still apply. For seasonal peaks, the concurrency number matters more than the monthly total. The model catalogue lists 39 public IDs and their context limits; /pricing is the canonical plan source.
For customer or order data, ask for a private VPC or dedicated endpoint and confirm the scope in writing. For a market without a local region, choose the nearest live region, private VPC, on-premises or air-gapped deployment and say which one applies. The data residency guide lists the evidence to request. Request the current SOC 2 report under NDA and confirm the audit period, scope and exceptions. /facts holds the canonical product facts used on this page.
What this page does not verify. No retailer deployment, conversion lift, cost saving or customer result is reported here, and no PCI assessment was reviewed for this page. Treat the architecture as a starting point for your own pilot and evidence review.
Frequently asked questions
Can a retail AI assistant take a card number?
It should not. Card data belongs in the payment flow, not in a prompt, a retrieval index or a support transcript. Tokenise or redact payment fields before any model call and keep the assistant unable to request a full card number. If a system that touches card data is connected to the AI path, PCI DSS scope can expand, so involve the payment and compliance owners before the pilot.
Which deployment fits an online store?
Use a live cloud region for product content, catalogue enrichment and general policy answers. Use a private VPC or dedicated endpoint when order history, customer records or unpublished pricing are in the prompt. On-premises or air-gapped deployment is for retailers that cannot send store or customer data to a multi-tenant region at all. Private deployment is contract-led, so confirm scope in writing.
How do we stop the assistant quoting a stale price?
Do not let the model supply the price from memory. Resolve price, stock and delivery promise in a deterministic service at request time, pass the resolved values into the prompt as read-only facts, and require the answer to cite that record. Cache the product copy, not the price. Re-run the evaluation set after every pricing or promotion change.
Does Plugsky offer a local region in every retail market?
No. Live regions are EU Frankfurt, GCC UAE, APAC Singapore and US Virginia; Riyadh is Enterprise only. For other markets the options are the nearest live region, a private VPC, on-premises or air-gapped deployment. State which one a workload uses and do not describe a region as local when it is not.
What should a retail AI pilot measure?
Measure grounded-answer rate, policy-citation accuracy, price and stock mismatch rate, containment with a customer-satisfaction guardrail, escalation and repeat-contact rate, p95 latency during promotions, prompt-injection block rate and cost per resolved contact. Report the evaluation set and its size so the numbers can be checked.
Is a 262,144-token context enough for a product catalogue?
No. A catalogue is larger than any context window and changes constantly. Retrieve the handful of products and policies a request needs, keep the index refreshed from the catalogue service, and use long context for a bounded set such as a single order's history. Context length is not a substitute for retrieval or for a current source of truth.
Related pages
Build the redaction boundary first
Prototype on the free plan with public catalogue data, then move customer and order workloads to a private endpoint.
Start Free → See pricingSources
Official sources below were checked on 20 November 2026. Standards and guidance change; confirm the current version for your assessment.
| Source | What it supports | Checked |
|---|---|---|
| PCI Security Standards Council: PCI DSS | Cardholder data scope and the current v4.x document set | 20 Nov 2026 |
| OWASP Top 10 for LLM Applications | Prompt injection as LLM01 in the 2025 edition | 20 Nov 2026 |
| NIST AI Risk Management Framework | Voluntary governance structure for AI risk | 20 Nov 2026 |
Last checked 20 November 2026. Plugsky's canonical plan numbers live at /pricing; this page describes an architecture and does not replace the contract.