# Operating BOMs & assembly BOMs

What a connected AI assistant with write access can do with your bills of materials and assembly BOMs — build, compose, stock, and configure them.

import { Aside } from "@astrojs/starlight/components";
import Term from "~/components/Term.astro";
import DocUpdated from "~/components/DocUpdated.astro";

With **write access**, an assistant connected to Assemblified can do more than read your <Term def="bom">bills of materials</Term> — it can build and maintain them: create finished goods, compose them from materials and <Term def="assembly-bill">assembly BOMs</Term> (the app's newer name for subassemblies), adjust pre-assembled stock, set what a bill does at each location, and toggle a bill's settings. This page explains what that covers and the guardrails around it.

## On this page

- What it takes
- Building and composing BOMs
- Working with assembly BOMs
- Copying a bill
- Editing many BOMs at once
- Attaching additional costs
- Recording pre-assembled stock
- Configuring a BOM's behaviour
- Per-location rules
- Pushing a cost to Shopify
- Saving and restoring a version
- Doing it in bulk
- Guardrails
- Safety & audit

## What it takes

Write access is opt-in. The assistant needs either:

- an **API key created with read & write scope** — see [API keys](/features/agent-access/api-keys/), or
- a **web-chat connection that was granted read & write when it was linked** — see [Connect claude.ai or ChatGPT](/features/agent-access/connect-web-chat/).

A read-only connection sees none of these actions — they aren't even visible to it, and any attempt to use them fails. Existing connections keep the scope they were granted; to upgrade a chat, revoke it and reconnect with a read & write code.

## Building and composing BOMs

The assistant can drive everything you'd do by hand on a BOM:

- **Create** a bill of materials for a finished-good variant.
- **Edit** its details, and **delete** a BOM you no longer need.
- **Add, remove, and re-quantify** component materials.
- **Add and remove nested assembly BOMs.**

When an assistant successfully adds materials to a BOM or assembly BOM, the result includes an English confirmation and separate counts for added, updated and skipped materials.

When the assistant references a Shopify variant that isn't a material yet — either as the finished good or as a component — Assemblified **registers it as a material automatically**, so the assistant doesn't have to set that up as a separate step.

<span id="working-with-assembly-bills"></span>

## Working with assembly BOMs

Assembly BOMs get the same treatment: the assistant can **create**, **edit**, **duplicate** and **delete** them, and **add or remove** the materials and nested assembly BOMs inside them — so a reusable component tree can be built up and reused across many finished goods.

## Copying a bill

The assistant can **duplicate** a bill onto a different Shopify variant in one step. Components,
nested assembly BOMs, tags and additional costs come across. The behaviour switches follow the same
mutual-exclusion rules as other copies; the source bill stays unchanged. The copy starts **inactive**
with **zero** pre-assembled stock. A historical automation link is not copied.

If the assistant leaves out the target SKU or supplies no value, the copy inherits the source bill's
saved SKU, even for a different variant. This does not change the SKU in Shopify or confirm the
target's details. Ask the assistant to read the actual target variant, supply deliberate nonblank
details, and check both the returned copy and the saved bill.

The assistant should choose the copy's identifier once and keep the same source, target and copy
identifier for an unchanged retry. If the outcome is uncertain, it should read the saved bill first
and ask you to resolve any remaining uncertainty before another write. It should never automatically
repeat the write or choose a new identifier to hide uncertainty. An identical retry returns the
existing copy, but still requires the source bill and does not refresh the copy's details.

A bill belongs to one variant, so duplicating onto a variant that already has one is refused and the
existing bill is named. Leaving out the target variant selects the source variant and is refused
for the same reason. Assembly BOMs can also be duplicated into separate assembly BOMs.

<span id="editing-many-recipes-at-once"></span>

## Editing many BOMs at once

Beyond editing one bill, the assistant can apply **one ordered list of composition edits to a whole selection of bills** — either the bills you named or every bill matching a search. Four kinds of edit are available:

- **Add** a component to every bill that lacks it — either at a fixed quantity, or "the same quantity as _that_ component already has in each bill", which is how "one cap per bolt" is expressed across bills with different batch sizes.
- **Remove** a component.
- **Replace** one component with another, keeping each bill's own quantity or setting a new one.
- **Adjust a quantity**, either to a fixed value or by a relative amount.

The edits apply in order, per bill, so a later edit sees the result of the earlier ones. A bill an edit does not apply to (the material is not on it, or is already there) is reported as **skipped**, not failed. There is a **preview mode** that validates the whole list against your real bills and writes nothing — worth using, because this is the one call that can touch hundreds of BOMs at once.

## Attaching additional costs

The assistant can also manage your [cost rates](/features/cost-factors/overview/): create a labour or overhead rate in the shared catalogue, then **attach or detach** it on a BOM or assembly BOM with the quantity consumed per one finished unit. Editing a rate re-prices every BOM that references it and never moves an existing <Term def="work-order">work order</Term>.

See [Additional costs for agents and scripts](/features/cost-factors/agent-access/) for the calls and the one caveat about reading full cost.

## Recording pre-assembled stock

When finished goods or assembly BOMs are physically assembled ahead of demand — or counted during a stock-take — the assistant can record that <Term def="pre-assembled">pre-assembled</Term> stock directly, per location, without creating a work order:

- **Add or subtract** a quantity (a delta — "we just built 3 more").
- **Set** an exact quantity (an absolute count — the safe choice for a stock-take, because repeating it can't double-count).

A BOM with **Only sell pre-assembled** enabled automatically re-anchors its Shopify availability to the new pre-assembled quantity, exactly as it does in the app.

## Configuring a BOM's behaviour

The assistant can flip the same per-BOM switches you control in the app:

- **Active / inactive** status.
- **Dynamic adjustment** — whether the BOM re-checks stock as orders come in.
- **Maintain same inventory level.**
- **Keep assembled on return.**
- **Auto-generate material list** — building a BOM's component list automatically. This one requires the **Enhanced** plan.
- **Only sell pre-assembled** — whether the finished good sells only the units you have already built. This one requires the **Enhanced** plan, and it is the one switch with immediate stock consequences, so it is treated carefully: see below.

Turning on dynamic adjustment arms the order-time behaviour but doesn't push anything to Shopify at the moment it's toggled — the effect happens when orders arrive, just as in the app.

### Only sell pre-assembled

Turning this on changes what Shopify shows as available, so the assistant has to say which number wins: either **adopt Shopify's current availability** as the bill's pre-assembled stock, or **push the pre-assembled numbers** the app already holds. There is no default — asked to "turn it on" with no direction, the assistant should ask you which.

Two consequences worth knowing:

- Switching it on **clears dynamic adjustment and "maintain same inventory level"** on that bill. The three are mutually exclusive.
- The Shopify re-anchor is **queued, not immediate**. The answer reports that the setting was written; the availability in Shopify follows shortly after. A bill with no usable Shopify inventory record is refused rather than half-flagged.

## Per-location rules

If a bill is built differently at different locations, the assistant can maintain those rules too — for bills and assembly BOMs alike:

- **Read** the rules configured on a bill: the execution mode at each location (follow the base bill, pre-assembled only, made to order, or not built there at all) and the material changes that location carries.
- **Read the bill as seen from a location** — the BOM with that location's rule already applied. This is a separate, computed read: a bill switched off at a location comes back with an empty material list _and_ a note saying it is disabled there, which is not the same thing as "no materials".
- **Set** one location's rule, including the materials added, changed or removed there. The materials you send are the **whole intent** for that location — anything you leave out is removed.
- **Remove** one location's rule, or every location's rule at once. The bill itself is untouched; the location simply goes back to the base BOM.
- **Switch many bills at a location** in one call — for example, turning a whole list of bills off at a warehouse. The bulk form changes only the mode and leaves each bill's material overrides in place.

<Aside type="caution">
    **Writing a location rule needs the Enhanced plan *and* the "multi-location sensitive adjustments" setting switched on.** Without the
    setting the write is refused with that reason, while reading rules and deleting them stay open — so rules left behind by a store that
    turned the setting off can still be cleaned up.
</Aside>

## Pushing a cost to Shopify

The assistant can compare what Assemblified computes a finished good costs against the **cost per item** Shopify currently holds, and then write yours to Shopify. It is deliberately a two-step job:

1. **Preview** — one row per bill: what Shopify holds today, the materials-only cost, and the additional-costs figure separately, so you decide whether labour and overhead are part of the number you push. Rows that cannot be pushed at all (no Shopify variant, or a variant that no longer exists) are named as such. Nothing is written.
2. **Push** — writes the cost you chose for up to 250 finished goods in one call. A row whose cost already matches is skipped and never sent, and each row reports its own outcome with Shopify's own message when Shopify refuses.

Every push is recorded before it is sent. If that record cannot be written, the whole call is refused and nothing is pushed.

## Saving and restoring a version

A bill's BOM has a history. Before an edit you may need to undo, ask the assistant to save the current BOM and confirm that the saved version can be opened. It can then compare versions or restore that saved BOM; unsaved changes are not automatically preserved. Reading the history is open on every plan; saving and restoring need **Enhanced**.

See [Operating bill versions](/features/agent-access/operating-bill-versions/) for what a version does and does not capture.

## Doing it in bulk

Bulk work is first-class, so an assistant can build out a whole catalog in a few calls instead of hundreds:

- **Create many** BOMs, assembly BOMs, or their materials in one request.
- **Delete many** at once.
- **Adjust pre-assembled stock for many** BOMs or assembly BOMs in one pass — ideal for a full stock-take.

Every bulk call reports a **per-item result**, so a single bad row doesn't sink the batch — the assistant sees exactly which items succeeded, which were skipped as duplicates, and which failed, and can resend just the failures. Bulk calls also offer a **preview mode** that validates everything and writes nothing, so the assistant can check a plan before committing it.

<Aside type="tip">
    See [Build and stock BOMs from your catalog via the API](/guides/build-boms-via-api/) for the end-to-end flow: find variants, register
    materials in bulk, create BOMs, check buildable quantities, and record pre-assembled stock.
</Aside>

## Guardrails

Write access follows the same rules as the app:

- **In-use materials are protected.** A material, assembly BOM, or cost rate that's still referenced by a BOM can't be silently deleted — the attempt fails per item with a clear reason.
- **Duplicates are caught.** Bulk creates can skip items that already exist (matched by SKU, then by name), so re-running a build is safe.
- **Every refusal is guidance.** When an action is blocked, the assistant is told exactly why and what to do instead, so a capable assistant self-corrects without your involvement.

## Safety & audit

Every call the assistant makes is tied to the API key or connection it used, and access can be revoked at any time — see [Managing access & security](/features/agent-access/managing-and-security/). Write access is scoped to your single store, and a connection can never reach anything beyond the scope its key or connection was granted. That scope is wider than this one page: the full list of write surfaces is the [operating pages index](/features/agent-access/overview/#the-operating-pages).

## See also

- [Operating materials & stock](/features/agent-access/operating-raw-materials-and-stock/) — the write surface for materials and virtual inventory.
- [Operating bill versions](/features/agent-access/operating-bill-versions/) — snapshotting and restoring a BOM.
- [Operating bulk bill-builder rules](/features/agent-access/operating-bulk-bom-rules/) — the saved rules the bulk builder replays.
- [Operating groups & saved views](/features/agent-access/operating-groups-and-views/) — grouping bills, assembly BOMs and materials.
- [What the assistant can read](/features/agent-access/what-the-agent-can-read/) — the read surface.
- [API keys](/features/agent-access/api-keys/) — issuing a read & write key.

<DocUpdated date="2026-11-19" />