> For the complete documentation index, see [llms.txt](https://docs.struct.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.struct.com/tutorials/guides/how-to-use-drafts/how-to-review-and-merge-drafts.md). Agents can also search and read this documentation through its [MCP server](https://docs.struct.com/~gitbook/mcp).

# How to review and merge drafts

A guide to finding drafts waiting for review, deciding each change and merging it into the current data

Drafts sent for review wait for someone to decide what happens to each change. This guide shows how to find them, review several at once or one product at a time, and handle conflicts.

{% hint style="info" %}
**Before you start**

You need the **Decide the outcome of drafts** permission and permission to edit the products, variant groups or variants concerned. Without it you can open the review, but not decide it.
{% endhint %}

## How to find drafts waiting for review

Drafts are listed in the **Open drafts** dashboard widget.

1. On your dashboard, click the pencil at the bottom right to edit it, then the add widget button, and choose **Open drafts**.
2. Optionally, give the widget a **Headline**, for example "Team drafts".
3. Under **Whose drafts**, choose where the drafts come from. **Users** follows drafts written in the editor. Pick one or more users to narrow it down, or leave it empty to follow everyone.
4. Click **Add widget**, then save the dashboard.

![Open drafts widget settings, following drafts from users](https://2141378775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuUonpFWM7AJ0xVVXV1tr%2Fuploads%2Fo1x0FHgnCn4Co6YBDMz6%2Fdrafts-widget-settings.png?alt=media)

**Sent for review** shows only drafts waiting for a decision. **All** also shows drafts that are still being worked on.

You can add the widget more than once, for example one for your team and one for your suppliers.

## How to review several drafts at once

1. In the widget, select the drafts you want to review.
2. Click **Review** at the bottom of the widget.

![Three drafts selected for review](https://2141378775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuUonpFWM7AJ0xVVXV1tr%2Fuploads%2FY4tmOmjvJSsDWwsn8v88%2Fdrafts-team-widget.png?alt=media)

**Review changes** opens with a tab for products, variant groups and variants. You can review up to 50 drafts at a time.

### Choosing a layout

Use the layout menu next to **Accept all** to choose how the changes are laid out:

* **Queue** shows one draft at a time. It is best when each draft changes something different. Click **Approve & next** to accept the draft and move on.
* **Matrix** shows one row per product, variant group or variant, and the changed attributes as columns. It is best when the drafts change the same fields.
* **Automatic** picks the layout for you, based on how much the drafts overlap.

![Review changes in the Queue layout, with a conflict](https://2141378775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuUonpFWM7AJ0xVVXV1tr%2Fuploads%2FFY0nJDQehN7UHdPIP2eG%2Fdrafts-review-queue.png?alt=media)

![The same review in the Matrix layout](https://2141378775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuUonpFWM7AJ0xVVXV1tr%2Fuploads%2FbJ24liyf9n90Juxiam8H%2Fdrafts-review-matrix.png?alt=media)

### Deciding each change

* **Accept** writes the value to the current data.
* **Reject** removes the change from the draft. Nothing is written.
* **Request changes** sends the change back to the author with a note. Click the speech bubble next to the value, or right-click it, and write what should change. A note is required.

![Requesting changes with a note](https://2141378775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuUonpFWM7AJ0xVVXV1tr%2Fuploads%2FyAAgVLgfNFp8vS4lIG8I%2Fdrafts-review-request-changes.png?alt=media)

Use **Accept all** or **Reject all** to decide every change on the current tab. **Accept this draft** and **Reject this draft** decide every change in one draft. Changes you do not decide stay in the draft for later.

Click **Submit review**, check the summary and confirm.

### Handling conflicts

A conflict means the current data changed in the same field after the draft was written. The review screen shows how many conflicts there are, and each one is marked **Conflict**.

Decide each conflict with **Keep current** or **Take draft**. Conflicts stay on the current value until you decide. Turn on **Conflicts only** to see just the conflicts.

If several drafts change the same field, you are asked to pick which value wins.

## How to review a single product

1. Open the product, variant group or variant from the widget with **Open**, or choose the draft in the editor.
2. Click **Review & merge** in the banner.
3. For each change, choose **Keep current** or **Take this**. Use **Keep all current** or **Take all from this** to decide every change at once.
4. To send a change back, write in **Explain what needs changing** next to the field.
5. Click **Submit review**.

![Compare and merge for one product](https://2141378775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuUonpFWM7AJ0xVVXV1tr%2Fuploads%2F1osYloQW91CDiwPIMXwm%2Fdrafts-compare-merge.png?alt=media)

When you take changes, you are asked to confirm the merge. **Delete the draft after merging** is ticked by default. Any change you did not take is deleted with the draft. Untick it to keep working in the draft instead. If you have written notes, the draft is kept so the author can read them.

![Confirming the merge](https://2141378775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuUonpFWM7AJ0xVVXV1tr%2Fuploads%2Fe4VYJbuHtcD0tALgRIDI%2Fdrafts-merge-confirm.png?alt=media)

## What happens after the review

* **Accepted** changes are written to the current data and recorded in the changelog.
* **Rejected** changes are removed from the draft.
* **Requested changes** stay in the draft with your note, and the draft's status changes to **Changes requested**. The author fixes the value and sends it again.
* **Undecided** changes stay in the draft.

When nothing is left in a draft, it is deleted.

![A draft with changes requested in the Open drafts widget](https://2141378775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuUonpFWM7AJ0xVVXV1tr%2Fuploads%2FnD0UkCRsV9NIl9FbgwbT%2Fdrafts-team-widget-changes-requested.png?alt=media)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.struct.com/tutorials/guides/how-to-use-drafts/how-to-review-and-merge-drafts.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
