---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://segmentstream.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# Orders, stock and suppliers, modelled the way you operate.

Orders, stock, suppliers and purchase orders as entities with your approval rules inside actions, on the same customers as sales and finance, with an app, an API and MCP tools.

Operations, supply chain and back-office teams

Orders, products, stock, suppliers and purchase orders become entities with your rules inside actions. A purchase order over a threshold needs a second approver, and a stock adjustment needs a reason. Finance and sales see the same customers.

[Start a pilot](https://segmentstream.com/solutions/operations#pilot) · [Request access](https://segmentstream.com/solutions/operations#waitlist)

Open orders on the same customers as sales and finance, purchase orders waiting for the right approver, and stock below its reorder point.

northwind.segmentstream.app

![An operations app: open orders with customer, total, status and due date, purchase orders waiting for approval with approve and reject buttons, and stock below its reorder point](https://segmentstream.com/screens/dark/mock-operations.webp)

Swipe the screen sideways to see all of it.

Operations, supply chain and back-office teams

## Operations and back office: what it does

Tell your agent how an order moves through your business. It writes the entities, the approval and adjustment actions, and the roles that may run them.

What it does

- Orders, products, stock, suppliers and purchase orders become entities with your rules inside actions.
- A purchase order over your threshold needs a second approver, and a stock adjustment needs a reason.
- Finance and sales see the same customers as operations, not a copy in another tool.
- Agents ask "what's late this week?" with the operator's own permissions.

## What it covers

- ### Orders

  Orders and their lines with statuses that change only through your actions, linked to the same clients as sales and finance.

- ### Stock

  Stock per product and location. Every adjustment needs a reason and is kept with who made it.

- ### Suppliers and purchase orders

  Suppliers and purchase orders. Over your threshold, a second approver; nobody approves their own.

- ### Margin and stock reports

  Margin and stock models in the warehouse from your orders, costs and store data.

- ### [The company agent →](https://segmentstream.com/platform/agent)

  Ask what is late this week in Slack, Teams, WhatsApp, Telegram or email. The company agent answers with the operator's own permissions.

- ### [Your store and carriers →](https://segmentstream.com/integrations)

  Your store, marketplaces and carriers connect to the same records, and we set them up with you.

## Built from typed blocks

No new product to buy: the blocks below, written by an agent into your workspace's repository and deployed with one command.

Entitiesontology/

- order
- order_line
- product
- stock_item
- supplier
- purchase_order
- shipment

Actionsontology/

- order.confirm
- purchase_order.approve
- stock_item.adjust
- shipment.dispatch

Rolesontology/roles.ts

- ops
- warehouse
- finance

Connectionsconnections/

- stripe
- your store and carrier APIsAPI key or OAuth 2.0

Pipelinespipeline/

- margin by order
- stock levels and reorder points

Appapp/

- Orders
- Stock
- Purchase orders

Agentagent/

- Company agent in Slack, Teams, WhatsApp, Telegram and email

One deploy

$ segmentstream deploy

Every block ships together from one git repository your company owns. SegmentStream runs it.

order

- number
- status
- total

* client
* order_line

- confirmops

order

\_​line

- quantity
- unit price

* order
* product

product

- sku
- name
- unit cost

* stock_item
* supplier

stock

\_​item

- location
- on hand
- reorder point

* product

- adjustwarehouse

supplier

- name
- payment terms

* purchase_order

purchase

\_​order

- status
- total

* supplier
* raised by

- approvefinance

shipment

- carrier
- tracking
- status

* order

- dispatchwarehouse

The entities, how they link, and which role may run each action. Your agent writes your own names and rules.

Rules live in actions

### The rule is code, not a setting someone can skip.

Every change goes through an action. The role that may run it is checked first, then the rule inside it. The same check applies to people in the app, to API keys and to agents over MCP.

ontology/purchase-order.ts

```
export const PurchaseOrder = entity("purchase_order", {
  description: "An order to a supplier. Over £5,000 it needs a finance approver.",
  properties: {
    status: p.select(PO_STATUS, { default: "draft", managed: true }),
    totalMinor: p.integer({ min: 0 }),
  },
  relationships: {
    supplier: rel.one("supplier", { inverse: "purchaseOrders" }),
    raisedBy: rel.one(User, { inverse: "raisedPurchaseOrders" }),
  },
}).actions((self) => ({
  approve: action({
    description: "Approve a draft order. Nobody approves their own.",
    input: Schema.Struct({ order: self.ref }),
    handler: ({ input, principal }) =>
      Effect.gen(function* () {
        const order = yield* self.get(input.order, { forUpdate: true });
        if (order.raisedById === principal.id)
          return yield* reject("Nobody approves their own order.");
        if (order.totalMinor > 500_000 && !principal.roles.includes("finance"))
          return yield* reject("Over £5,000 needs a finance approver.");
        yield* self.update(order, { status: "approved" });
      }),
  }),
}));
```

Inside SegmentStream

## Who may approve what, read from the rules.

Every read and action with the permission it needs, and which roles hold it, for people, apps and agents alike.

segmentstream.com

![The console's role comparison for the growth, sales and invoice_printer roles: each read and action in rows, with the permission it requires, and a dot where a role holds it](https://segmentstream.com/screens/dark/console-roles-compare.webp)

Who may do what, read from the rules: here, three roles side by side. People, apps, agents and API keys are held to the same table.

What it replaces

- spreadsheets
- Airtable bases
- light ERP modules such as Odoo, Katana or Cin7
- back-office SaaS

Moving off spreadsheets and light ERPs

Your orders, stock and suppliers come in from the spreadsheets and tools you use today, with your rules written as actions. Both run side by side through a full cycle, and the team switches when the numbers match.

Moving from

- [Airtable](https://segmentstream.com/solutions/airtable-alternative)
- [Spreadsheet](https://segmentstream.com/solutions/spreadsheet-alternative)

Done for you · Moving off spreadsheets and light ERPs

### We can do the whole move for you.

Our forward-deployed engineers take the migration end to end: the model, the export, the import, the side-by-side comparison, and the switch. It starts with a fixed-scope pilot, and nothing is switched off until the numbers match.

[Request a pilot](https://segmentstream.com/solutions/operations#pilot) · [How the pilot works](https://segmentstream.com/enterprise)

Have us build it

### Enterprise, with our engineers

Our engineers model your orders, stock and suppliers with the people who run them, connect your store and carrier APIs, and run the new system beside your spreadsheets until the numbers match.

[Start a pilot](https://segmentstream.com/solutions/operations#pilot)

Build it yourself

### Self-serve, with your own agent

Tell your agent how an order moves through your business. It writes the entities, the approval and adjustment actions, and the roles that may run them.

`curl -fsSL https://segmentstream.com/install.sh | sh`

[Request access](https://segmentstream.com/solutions/operations#waitlist)

## Related solutions

[Finance and accounting](https://segmentstream.com/solutions/finance)

[Contracts, revenue recognition and documents](https://segmentstream.com/solutions/finance)

·

[Internal tools and dashboards](https://segmentstream.com/solutions/internal-tools)

[Pages and dashboards on your records and data](https://segmentstream.com/solutions/internal-tools)

·

[Projects and tasks](https://segmentstream.com/solutions/projects)

[Projects, tasks and cycles with your workflow](https://segmentstream.com/solutions/projects)

## Read more

- [3 October 2026 SaaS becomes company context Agents are now how people ask questions and get work done. The CRM, the BI tool and the warehouse stop being separate products and become one thing a company owns: its context. Here is what that is made of, and why we're building it.](https://segmentstream.com/blog/saas-becomes-company-context)

[All posts →](https://segmentstream.com/blog)

## Questions

### How does it connect to our store and carriers?

Stripe, Shopify, other stores, marketplaces and carriers all connect, and we set them up with you.

### Can an agent work in it?

Yes. Ask the company agent which orders are late this week and it answers with the operator's own permissions. Any agent connected over MCP works the same way.

### What does the first version include?

Orders, stock and purchase orders with your rules, the app your team opens, and the reports you rely on. Our engineers build it on your data in a two-week pilot, or your own agent builds it from the same blocks.

Enterprise pilot

## Rather have it built for you? Start a pilot.

Our engineers model your orders, stock and suppliers with the people who run them, connect your store and carrier APIs, and run the new system beside your spreadsheets until the numbers match.

- One solution, on your data, in your own workspace
- First version live in two weeks
- Parity proven before anything is switched off
- Fixed scope and price, credited to your contract if you continue

Not ready for a pilot? Send the form anyway with your question. An engineer will reply, not a sales rep.

[How the pilot works](https://segmentstream.com/enterprise)

NameWork email

CompanyWhat should the pilot cover?

Anything we should knowHow did you hear about us?

Goes to our founder’s inbox. No sales queue, no newsletter.

## Build your company’s own software. Let agents run it.

$ segmentstream workspace create acme --region eu --subdomain acme

▸ Created workspace acme · database, warehouse and a private git repository

$ segmentstream workspace WORKSPACE-ID clone acme && cd acme

▸ your coding agent builds what your team asked for and runs the checks

$ git add -A && git commit -m "First version"

$ segmentstream deploy

▸ app, company agent, API and MCP tools live for your invited members

[Start a pilot](https://segmentstream.com/solutions/operations#pilot)

Our engineers build the first version on your data in two weeks, at a fixed price.

Or build it yourself with your coding agent:

`curl -fsSL https://segmentstream.com/install.sh | sh`

Work email

We’ll email you product updates, tips and onboarding help. Unsubscribe anytime.
