# Design a fitted wardrobe

URL: https://docs.ajusteur.com/guides/wardrobe

From a measured recess to a request link, call by call

A customer has a bedroom recess, 2400 mm wide and 2300 mm high. They want hanging space at both ends and shelves in the middle. This guide walks the calls an agent makes. The [`design_wardrobe` prompt](/mcp/prompts) starts the same conversation in one command.

## Before you start [#before-you-start]

Ask for the width at three heights, the height at both ends and the depth. Use the smallest of each. Say that Ajusteur measures again before making anything.

## The calls [#the-calls]

### Create the run [#create-the-run]

A fitted run fills the recess and keeps its overall width. Leave the bay widths out and the engine shares the width equally.

<Tabs items={["Arguments", "Answer"]}>
<Tab value="Arguments">

```json title="design_storage_create"
{
  "name": "Bedroom wardrobe",
  "context": "fitted",
  "widthMm": 2400,
  "heightMm": 2300,
  "depthMm": 600,
  "bays": [
    {
      "doors": 2,
      "shelves": 1,
      "rail": true
    },
    {
      "doors": 2,
      "shelves": 4
    },
    {
      "doors": 2,
      "shelves": 1,
      "rail": true
    }
  ]
}
```

</Tab>
<Tab value="Answer">

```json
{
  "ok": true,
  "design": "…the design document. Pass it back unchanged…",
  "summary": {
    "sizeMm": {
      "w": 2400,
      "h": 2300,
      "d": 600
    },
    "boxes": [
      {
        "id": "bay-1",
        "label": "bay-1",
        "widthMm": 800,
        "heightMm": 2182,
        "depthMm": 557,
        "fitOut": [
          "2 doors, 1 shelf, hanging rail"
        ]
      },
      {
        "id": "bay-2",
        "label": "bay-2",
        "widthMm": 800,
        "heightMm": 2182,
        "depthMm": 557,
        "fitOut": [
          "2 doors, 4 shelves"
        ]
      },
      {
        "id": "bay-3",
        "label": "bay-3",
        "widthMm": 800,
        "heightMm": 2182,
        "depthMm": 557,
        "fitOut": [
          "2 doors, 1 shelf, hanging rail"
        ]
      }
    ],
    "partCount": 36,
    "boardsToOrder": {
      "thick18": 6,
      "thin9": 2
    },
    "hardware": [
      {
        "item": "Hinges, soft-close 35 mm",
        "qty": 30
      },
      {
        "item": "Handles",
        "qty": 6
      },
      {
        "item": "Shelf pins",
        "qty": 24
      },
      {
        "item": "Wardrobe rails with brackets",
        "qty": 2
      },
      {
        "item": "8 mm dowels, glue, screws",
        "qty": "1 lot"
      },
      {
        "item": "Edge banding, veneer",
        "qty": "1 lot"
      }
    ],
    "glassDoors": 0,
    "warnings": [
      {
        "code": "anti-tip",
        "message": "The piece is 2300 high: fix it to the wall so it cannot tip."
      }
    ]
  },
  "say": "The storage run is 2400 mm wide and every bay, door and shelf fits the workshop's rules. Nothing here is a price."
}
```

</Tab>
</Tabs>

### Change a bay [#change-a-bay]

The customer wants a narrower middle bay. In a fitted run the neighbours take the difference, and `changes` says who moved.

<Tabs items={["Arguments", "Answer"]}>
<Tab value="Arguments">

```json title="design_storage_resize_bay"
{
  "design": "…the design from the step before, unchanged…",
  "bayId": "bay-2",
  "widthMm": 600
}
```

</Tab>
<Tab value="Answer">

```json
{
  "ok": true,
  "design": "…the new design document…",
  "changes": [
    {
      "id": "bay-1",
      "beforeWidthMm": 800,
      "afterWidthMm": 1000
    },
    {
      "id": "bay-2",
      "beforeWidthMm": 800,
      "afterWidthMm": 600
    }
  ],
  "say": "The storage run is 2400 mm wide and every bay, door and shelf fits the workshop's rules. Nothing here is a price."
}
```

</Tab>
</Tabs>

### When the engine says no [#when-the-engine-says-no]

Ask for something the workshop cannot build and the answer says why. Here the customer asks for a 1200 mm bay, and a loose shelf cannot span that far.

```json
{
  "ok": false,
  "issues": [
    {
      "code": "construction",
      "ids": [
        "bay-2"
      ],
      "message": "The shelf span exceeds the supported construction.",
      "alternative": "Reduce the bay width or introduce a reviewed divider behavior."
    }
  ],
  "say": "The design needs a change before it can be built: The shelf span exceeds the supported construction."
}
```

Read the issue to the customer in your own words and offer the alternative. [`families_rules`](/tools/families_rules) gives the reason behind every rule.

### Describe it and draw it [#describe-it-and-draw-it]

[`design_describe`](/tools/design_describe) gives the sentence to say:

> Bedroom wardrobe, made to fit your recess: 2400 mm wide, 2300 mm high and 600 mm deep, in 3 bays. Bay 1: two doors, one shelf, a hanging rail. Bay 2: two doors, 4 shelves. Bay 3: two doors, one shelf, a hanging rail. 18 mm board on a 100 mm plinth.

[`design_drawing`](/tools/design_drawing) gives a front view as SVG. This is the drawing it returned for this design:

![Bedroom wardrobe, front elevation](/drawings/wardrobe.svg)

### Estimate [#estimate]

The rate book is being filled, so today this design comes back blocked, with each missing rate named. Pass that on as it is. Never fill in a number yourself.

<Tabs items={["Arguments", "Answer"]}>
<Tab value="Arguments">

```json title="estimate_get"
{
  "design": "…the design from the step before, unchanged…"
}
```

</Tab>
<Tab value="Answer">

```json
{
  "payable": false,
  "currency": "AED",
  "status": "blocked",
  "groups": [
    {
      "id": "making",
      "label": "Cabinets, fronts and hardware, made in the workshop",
      "aed": null
    },
    {
      "id": "installation",
      "label": "Delivery and installation",
      "aed": null
    }
  ],
  "netAed": null,
  "vatAed": null,
  "totalAed": null,
  "blockers": {
    "missing": [
      "No approved rate yet for: veneered board 18.",
      "No approved rate yet for: board 9 (backs).",
      "No approved rate yet for: panel saw cut.",
      "No approved rate yet for: edge banding, applied.",
      "No approved rate yet for: workshop labour, closet or wall box.",
      "No approved rate yet for: hinge, soft-close.",
      "No approved rate yet for: wardrobe rail with brackets.",
      "No approved rate yet for: handle.",
      "No approved rate yet for: installation team.",
      "No approved rate yet for: screws, plugs, glue, sundries."
    ],
    "next": "Ajusteur cannot price this automatically yet. Send the design through ajusteur.com and the team prices it by hand."
  },
  "basis": "This is an indicative estimate from Ajusteur's current rates, not a quote. A reviewed quote follows a site visit.",
  "say": "Ajusteur cannot price this automatically yet. Send the design through ajusteur.com and the team prices it by hand."
}
```

</Tab>
</Tabs>

### Hand over [#hand-over]

When the customer is happy, call [`request_link`](/tools/request_link) with the design and a brief in their own words. Leave names and contact details out. Give them the link as it is. They add how to reach them on ajusteur.com and send. Ajusteur reviews the design, visits, measures and sends a quote.

```json title="request_link"
{
  "design": "…the design from the step before, unchanged…",
  "brief": "What the customer told you about the room, the need and the timing."
}
```

<small>Every call on this page ran against the engine when the docs were built, with an empty rate book. This page is generated. Do not edit it by hand.</small>

