# Comments and review threads

> Anchor questions to cells, text, records, or elements, and follow review decisions through replies and resolution.

- Human documentation: [https://docs.univer.ai/overview/features/shared/comments](https://docs.univer.ai/overview/features/shared/comments)

- Agent Markdown: [https://docs.univer.ai/overview/features/shared/comments.md](https://docs.univer.ai/overview/features/shared/comments.md)

- Requested language: `en-US`

- Content language: `en-US`

- Documentation version: `1.6.1`

- Source: [features/shared/comments.mdx](https://github.com/dream-num/documentation/blob/dev/content/docs/features/shared/comments.mdx)

---

Comments keep discussions next to the content. Reviewers can raise questions about a value, a paragraph, or a graphic, authors reply in the same thread, and other participants add context, so the discussion does not spread to external chat tools.

## From question to decision

1. **Anchor the question** to a cell, selected text, a record, an element, or a page position. The anchor retains a reference to the content it points to.
2. **Discuss it in a thread** consisting of a root comment and replies, each with its author, timestamp, and comment text.
3. **Resolve or reopen** the thread after making changes. Reopen a thread when follow-up is required; the earlier discussion remains intact.

The comment panel filters by all, unresolved, or resolved threads, or by discussions involving the current user. Resolving a thread does not delete it; the decision remains available for review.

## Comments and annotations by product

The screenshots use a single Northstar launch project in English. They were captured through Facade APIs in real editors to show frontend comments and annotations. Click an image to enlarge it.

### Sheets

A discussion anchored to a single cell allows a reviewer to confirm a forecast, a cost detail, or an approval directly beside the budget number. The example shows several threads, a run of consecutive replies, and a resolved section. Cell comments are added through `range.addCommentAsync()`; comments on images, charts, and shapes require the corresponding drawing-comment integration.

![Sheets comments: launch budget, anchored cells, reviewer replies, and resolved discussion](https://raw.githubusercontent.com/dream-num/documentation/dev/public/assets/features/comments/sheets.png)

[Product integration and API](https://docs.univer.ai/guides/sheets/features/comments.md)

### Docs

Select a text range and add a comment when reviewing contract clauses, proposal wording, or launch dates. Comment cards retain the quoted text, and comment decorations maintain the anchor while the surrounding text changes. The example discusses the release date, metric definitions, and the replacement of an old workflow. Call `document.getTextRange(...).createCommentAsync()`.

![Docs comments: launch brief with quoted text and three review discussions](https://raw.githubusercontent.com/dream-num/documentation/dev/public/assets/features/comments/docs.png)

[Product integration and API](https://docs.univer.ai/guides/docs/features/comments.md)

### Slides

Comments can target a single element or a free position on a slide. Element comments reference stable IDs for text boxes, images, charts, and other objects; position comments use normalized page coordinates. The example discusses launch targets and layout. Call `slide.createElementCommentAsync()` and `slide.createPositionCommentAsync()`.

![Slides comments: launch review, element anchors, and multiple reviewer replies](https://raw.githubusercontent.com/dream-num/documentation/dev/public/assets/features/comments/slides.png)

[Product integration and API](https://docs.univer.ai/guides/slides/features/comments.md)

### Relational Table

Comments reference record IDs, so a discussion remains tied to a business record rather than to its visible row number. They are used for handoffs, customer follow-up, and acceptance reviews. The launch tracker shows owner discussions, pending approvals, and comment markers beside records. Call `record.createCommentAsync()`.

![Relational Table comments: launch records, comment markers, and handoff discussions](https://raw.githubusercontent.com/dream-num/documentation/dev/public/assets/features/comments/bases.png)

[Product integration and API](https://docs.univer.ai/guides/bases/features/thread-comment.md)

### Canvases

A comment can be attached to an element such as a shape, or left as a note at a specific board position. Element comments reference an object; position comments retain board coordinates. The example discusses customer research, engineering handoff, and launch risks in context. Call `board.createElementCommentAsync()` and `board.createPositionCommentAsync()`.

![Canvases comments: colored release workflow, element and position anchors, and replies](https://raw.githubusercontent.com/dream-num/documentation/dev/public/assets/features/comments/boards.png)

[Product integration and API](https://docs.univer.ai/guides/boards/features/comments.md)

### PDF: page annotations

PDF currently provides page annotations: highlights, underlines, strikeouts, squiggly lines, and ink. These are persistable PDF annotation objects, separate from the threads above that support replies and resolution. The example highlights a launch date, marks acceptance criteria, and crosses out an old approval step. Call `page.insertAnnotation()`.

![PDF annotations: launch review with highlighting, underline, strikeout, and ink](https://raw.githubusercontent.com/dream-num/documentation/dev/public/assets/features/comments/pdfs.png)

[Product integration and API](https://docs.univer.ai/guides/pdfs/features/core/annotations-and-native-text.md)

## Integration

**Frontend**: register the comment and UI plugins of the product, and import the shared and product-specific comment `/facade` entries. Product-specific methods establish anchors, while shared APIs such as `replyCommentAsync()`, `updateCommentAsync()`, and `resolveCommentAsync()` handle the discussion operations that follow. Pass `resolved: false` to reopen a thread. PDF uses a separate annotation API.

**Shared discussions**: add Comment Service, Comment Endpoint, and an independent database adapter alongside core collaboration, then configure the remote frontend data source. The main document retains anchors, which change with the content; Comment Service stores text, replies, and resolution state, and publishes comment updates to document rooms. See [comment packages](https://docs.univer.ai/server/collaboration/packages.md#thread-comment) and the [Comments example](https://docs.univer.ai/server/collaboration/examples.md#comments).

Comment permission can be configured separately from permission to edit content. For application identity and server-side authorization, see [permissions and authorization](https://docs.univer.ai/overview/features/shared/permissions.md).

[Back to all features](https://docs.univer.ai/overview/features.md)
