> For the complete documentation index, see [llms.txt](https://mistwriter.gitbook.io/mistwriter-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mistwriter.gitbook.io/mistwriter-docs/vung-soan-thao-canvas/chinh-sua-noi-dung/su-dung-tinh-nang-viet-lai.md).

# Sử dụng tính năng Viết lại

Bạn có thể chỉnh sửa nội dung của một câu hoặc một đoạn với chức năng Viết lại.

Hãy bôi đen nội dung cần viết lại, lựa chọn tùy chỉnh mong muốn (diễn đạt lại, sâu hơn, ngắn hơn, dài hơn, đơn giản hóa) hoặc nhập yêu cầu viết lại cụ thể, sau đó click vào button mũi tên ở bên phải ô nhập yêu cầu hoặc nhấn Enter để AI xử lý.

Bạn có thể thiết lập Web, Library và chế độ viết trước khi yêu cầu AI viết lại. Nếu đoạn được chọn đã có trích dẫn, MistWriter sẽ giữ nguyên các trích dẫn hiện có và chỉ điều chỉnh phần nội dung.

![Hình minh họa](https://2663630306-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUr2Icd4NxX2jbLP1Bvs6%2Fuploads%2Fgit-blob-30e5299809c49495c3a50b448e219969c3b8fad2%2Fimage-043.png?alt=media)

Kết quả viết lại sẽ hiển thị trong popup, bạn có thể làm các hành động sau:

* Click **Chấp nhận thay thế** để thay thế nội dung được bôi đen bằng kết quả viết lại
* Click **Tạo lại** nếu bạn muốn AI tạo một kết quả viết lại khác
* Click **Từ chối** để đóng kết quả hiện tại và giữ nguyên nội dung ban đầu

![Hình minh họa](https://2663630306-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUr2Icd4NxX2jbLP1Bvs6%2Fuploads%2Fgit-blob-c55f8c04ca0d9af9f362f820957051babeb55953%2Fimage-044.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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://mistwriter.gitbook.io/mistwriter-docs/vung-soan-thao-canvas/chinh-sua-noi-dung/su-dung-tinh-nang-viet-lai.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
