Skip to content

Solutions · Retail

Yesterday's sale. Today's decision.

Store chains, e-commerce and wholesale run on thin margins. The NNumbers stack closes the night's data, gives the metrics a single meaning, decides replenishment and takes the board's question through to the answer.

Talk about your retail case

Thin margin.
Daily decision.

In retail, yesterday's data is worth something today. Tomorrow is too late.

  1. 01

    The stockout shows up after the lost sale.

    Inventory sits in one system, sales in another and the purchase order in a third. By the time someone cross-references the three, the shelf is already empty.

  2. 02

    Each channel has its own margin.

    Store, website and marketplace calculate margin with different rules. The meeting debates the math, not the decision.

  3. 03

    The peak has a date on the calendar.

    Campaign, holiday, collection change. The application has to hold up, and roll back fast if something fails.

A stockout,
before it happens.

01 · Close

The overnight pipeline closes the sales.

Infinite Data runs vendas_diario: it extracts the orders, validates, calculates and publishes. Each task shows status, duration and log.

vendas_diario · Completed · 5 of 5 tasks

02 · Meaning

“Coverage” means one thing only.

The Ontology defines coverage in days and stockout for the whole network. Store, distribution center and purchasing start reading the same number.

cobertura_dias v6 = stock ÷ 28-day average sales

03 · Decision

Restock now? Yes or no, per store and product.

Reflex receives the state of each store-and-product pair and answers the closed question, with the probability of yes. Below the threshold, it abstains.

"repor_agora": 0.97

04 · Purchase

The order assembles itself. The buyer approves.

Agents groups the items by supplier and assembles the purchase order. Above the authority limit, the run stops and waits for the category buyer.

Approval pending: order #4907, R$ 27,360.00

05 · Question

The board asks. The math is the same.

In Imaginne, the question becomes a dashboard, with the asker's access. The number is the same one that triggered the purchase, because the definition is the same.

Output: order #4907 issued · dashboard “Stockout by store”

  1. AIImaginneanswers the board
  2. AIReflexanswers yes or no
  3. AutomationAgentsassembles the order and asks for approval
  4. DataOntologydefines “coverage”
  5. DataInfinite Datacloses the day's sales
  6. ApplicationsZero
  7. Infra[N]umbersCloudWhere this case runs: infrastructure operated by NNumbers, in 2 zones in Brazil.
Stock replenishmentstore 031 · SKU 20418fictitious example

01Infinite Data04:00 · 4 min 24 s

vendas_diariopipeline · run of 11/18/2026

  1. Extract orders
  2. Validate integrity
  3. Calculate revenue
  4. Enrich channels
  5. Publish the mart

5 of 5 tasks completed · partition published

02Ontologyv6 · published

cobertura_dias v6 = estoque ÷ venda_media_28dpublished version, it does not change

Product
SKU 20418 · Roasted coffee 500 g
Store
031 · Ribeirão Preto
Stock
96 units
Average sales
41 per day
Coverage
2.3 days
Delivery
4 days, per the supplier's lead time

03Reflex2 questions · 0.6 s

noul Restock now?

  • yes0.97

score With what urgency?

  • today0.81
  • this week0.17
  • can wait0.02

threshold 0.60 · 2.3 days of coverage, 4-day lead time

04Agentshuman approval

Approved

order #4907R$ 27,360.00

Supplier
Torrefação Serra Dourada
Items
38 products, for 11 stores
Who decides
Category buyer, assigned in the step

Renata Guimarães approved at 07:52The run resumes where it stopped.

05ImaginneWebChat

@insight Where did we lose sales to stockouts yesterday?

Worked 4 s · 2 actions

In 7 stores and 23 products. The biggest loss was in Ribeirão Preto, in groceries. Order #4907 covers 19 of the 23.

Stockout by storeInsight · dashboard · cited cobertura_dias v6

Governancehistory: every run keeps the tasks and the logs.meaning: the published definition applies to the whole network.proof: the probability and the threshold stay in the answer.approval: above the authority limit, only the buyer decides.access: the answer comes out with the asker's role.

Four more cases.
The same path.

Each case says what goes in, which products it passes through and in what order, and what comes out. The data are examples.

Case 02

“Where is my order?”, answered on the website.

The customer asks in the order portal, without opening a ticket. The conversation reaches only the operations your backend declares.

  1. Input“Where is my order 88142?”
  2. 01Imaginne EmbedThe dock opens on the order page and carries its context.
  3. 02Your backendAuthenticates the customer, trims the catalog and signs the ticket.
  4. 03ImaginneIt talks and calls your system to read the delivery status.
  5. Output“It left Curitiba at 06:40. It arrives today, by 6pm.”

Case 03

One margin for every channel.

Store, website and marketplace subtract different things before calling the result margin. Once published, the definition applies to all three.

  1. Inputstore sales · website orders · marketplace settlements
  2. 01Infinite DataIt queries the three sources without copying any of them.
  3. 02Ontology“contribution margin” published, with the same deductions in every channel.
  4. 03ImaginneIt delivers the dashboard by channel and by category.
  5. Outputmargin by channel and category · cited margem_contribuicao v11

Case 04

Exchange or return, decided on the spot.

The reason arrives as free text. Reflex classifies it, and the exchange policy settles what does not need a person.

  1. Input“The sneaker came one size smaller. I want to exchange it.”
  2. 01ReflexIt classifies the reason and the urgency.
  3. 02Reflex DTIt applies the exchange policy and delivers the rule it used.
  4. 03AgentsIt issues the shipping label. Refunds above the authority limit wait for a person.
  5. Outputexchange authorized · label sent · exchange policy, item 3.1

Case 05

The campaign live, with a fast rollback.

The campaign application is published on Zero, which runs on infrastructure operated by NNumbers. If a publication fails, the previous version stays live.

  1. Inputthe campaign application repository, on the eve of the date
  2. 01ZeroIt publishes the service and the project address. Restoring the previous version is a switch, not a rebuild.
  3. 02[N]umbersCloudCompute, databases and network in 2 zones in Brazil, in reais.
  4. Outputthe eve-of-launch publication failed · the campaign opened with the previous version

The close,
on the real screen.

This is the pipeline run screen in Infinite Data: the vendas_diario from step 01, task by task, with status, duration and log.

Real product screen · sample data

The stack,
read by the industry.

The same products, from top to bottom, with the role of each in a retail chain. Each case uses only the products it needs.

AI

Imaginne

Sales, purchasing and the board ask in plain language and receive a dashboard or a report. With Embed, the conversation goes into the website and the store app.

@insight Where did we lose sales yesterday?

Reflex

Restock or not, exchange or return, which queue: closed questions, answered in hundreds of milliseconds.

"repor_agora": 0.97

Reflex DT

The exchange policy and the pricing policy become the rule that decides, with the proof in every decision.

decision verified · item 3.1

Automation

Agents

Replenishment, exchange and refund become versioned flows, with human approval above the authority limit.

Approval pending: order #4907

Data

Infinite Data

Sales, inventory and purchasing queried where they are. The overnight pipeline shows every task.

vendas_diario · Completed

Ontology

“Coverage”, “stockout” and “margin” have one definition for the whole network, with a version.

cobertura_dias v6 · published

Applications and infra

Zero

The campaign website, the orders API and the internal services published from the repository.

api-pedidos · live

[N]umbersCloud

Compute, managed databases, storage and network in 2 zones in Brazil, in reais.

2 zones · in reais

Customer data
has an owner and a rule.

Consumer data protection demands purpose, access control and a record. At NNumbers, that is product capability.

Auditorder #4907append-only
  1. vendas_diariopipeline completed · 5 of 5 taskssuccess
  2. svc-reposicaoquery on estoque.posicao · 11 storessuccess
  3. reflexrepor_agora: 0.97 · SKU 20418success
  4. agentsapproval requested · order #4907pending
  5. renata.guimaraesapproval decided · order #4907success
  6. agentsorder issued to the suppliersuccess

A recorded event is never edited or deleted. The record exports to a file.

Data and operations in Brazil.
The products run on infrastructure operated by NNumbers, in Brazil, in 2 zones, as contracted, with the bill in reais.
Customer records are protected in the query.
CPF and email arrive masked for those who do not need them. Without a rule, the answer is a denial.
Purchases above the authority limit carry a signature.
Who approved, when, and which version of the flow ran stay in the run.
One definition per metric.
The board dashboard and the purchase decision cite the same version of the same calculation.

This is product capability. The compliance assessment is your company's, with the evidence in hand.

Bring a store.
We show you the replenishment.

You bring one store's sales and inventory, as sample data. We show the path from the close to the purchase order.

Talk about your retail case