> For the complete documentation index, see [llms.txt](https://guide.plusai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.plusai.com/ai-for-google-docs/edit-documents.md).

# Edit documents

Plus AI can help you revise, rewrite, or even translate existing text in your Google Docs.

## Launch Edit with Plus AI

Create a [new Google Doc](http://docs.new) or open an existing one, then launch the Plus add-on from the Extensions menu: **Extensions** > **Plus AI** > **Edit with Plus AI**.

<figure><img src="https://3528250745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F54nb5b7bqXPHgn40UzoV%2Fuploads%2F1pGHFopGTibj32QgU23I%2FCleanShot%202024-02-06%20at%2016.26.47%402x.png?alt=media&amp;token=0e08395c-4187-43ea-ba85-623a64b3ade0" alt=""><figcaption><p>Open the Plus AI extension in Google Docs</p></figcaption></figure>

Navigate to the **Edit** tab.

<figure><img src="https://3528250745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F54nb5b7bqXPHgn40UzoV%2Fuploads%2Fbivf6nSIaWFzrScZ9Xit%2FCleanShot%202024-02-06%20at%2016.44.37%402x.png?alt=media&amp;token=346024cb-1d50-4a20-b512-5439dc25c175" alt=""><figcaption></figcaption></figure>

Select the text you want to rewrite

Enter a prompt or use one of our presets.&#x20;

<figure><img src="https://3528250745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F54nb5b7bqXPHgn40UzoV%2Fuploads%2FtGkPiGpPifwnp6Q5vV9Y%2FCleanShot%202024-02-06%20at%2016.47.48%402x.png?alt=media&amp;token=756d1900-d7c4-4f22-9857-5b4542d98044" alt=""><figcaption></figcaption></figure>

Then click Generate. This usually takes a few seconds, but can take up to a minute or so for more complex content.

## Undo and redo

You can use the native undo and redo actions in Google Docs on any Plus AI insertions or edits.

To undo, click the button in the Google Docs toolbar or press ⌘Z  (or Ctrl + Z) on your keyboard.

<figure><img src="https://3528250745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F54nb5b7bqXPHgn40UzoV%2Fuploads%2FeydMMHPiTaeXMaNVwvyp%2FCleanShot%202024-02-06%20at%2016.36.46%402x.png?alt=media&amp;token=2952b87d-9aa8-4739-8bb4-327120de8537" alt=""><figcaption></figcaption></figure>

## Text formatting

While Plus AI can do basic formatting (paragraph breaks, headers, bullets and lists), it cannot do more advanced formatting, like changing colors or fonts, or add media like images or videos.

## Translating text

Select the section you want to translate (you can select the entire document if you want), and use the Translate preset prompt.

Use the language dropdown to select the language you want to translate ***to*** (Plus AI will automatically detect the language you're translating *from*). Make sure you select the language instead of putting it in the prompt.

<figure><img src="https://3528250745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F54nb5b7bqXPHgn40UzoV%2Fuploads%2FsiYc4lUx52oSHk394RhH%2FCleanShot%202024-02-06%20at%2016.50.37%402x.png?alt=media&amp;token=8b34f8dc-b308-458b-99d7-bd7914a5192f" alt=""><figcaption></figcaption></figure>


---

# 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://guide.plusai.com/ai-for-google-docs/edit-documents.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.
