> For the complete documentation index, see [llms.txt](https://help.hippoly.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.hippoly.com/using-hippoly/hi/use-hi-in-documents.md). Agents can also search and read this documentation through its [MCP server](https://help.hippoly.com/~gitbook/mcp).

# Use hi in documents

Fix, shorten or translate selected text with hi's quick actions in the document editor, and chat with hi about the document.

**Who:** anyone who edits the document, or reads it · **Where:** the document editor and the `Assistant` tool beside the document

In a document, hi works in two ways. On selected text, a quick action rewrites the selection in place. In the chat beside the document, hi reads the whole document, answers about it and edits it when you ask.

## Quick actions on selected text

{% stepper %}
{% step %}
Open the document for editing and select the text.
{% endstep %}

{% step %}
In the menu that appears over the selection, click the hi button and choose `Fix grammar`, `Make shorter` or `Translate`, with the language under it.

![The menu over selected text with hi's quick actions](https://3173263302-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY1YkCM6jOTDyK3vc5yxn%2Fuploads%2Fgit-blob-204b8d56891b49dd99ae35bdd94aeea805f7ac2e%2Fhi-doc-quick-actions.png?alt=media)
{% endstep %}
{% endstepper %}

The selection is replaced at once, with no preview. `Undo` in the toolbar brings the original back.

## Chat about the document

{% stepper %}
{% step %}
Open the document and click `Assistant` among the tools on the right. hi opens with the document as its context. It suggests what to do with it: summarise it, check spelling and grammar, say what is missing or unclear, or compare it with similar documents in the workspace.

![hi opened beside a document](https://3173263302-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY1YkCM6jOTDyK3vc5yxn%2Fuploads%2Fgit-blob-09eff678f33b057ccec5b81e0d47e5435675c41b%2Fhi-in-document.png?alt=media)
{% endstep %}

{% step %}
Ask what you need: a summary, a more formal tone, a conclusion, a section written from a few points. When the answer is a change to the document, hi shows the change in a preview card; `Confirm` applies it to the document, live for everyone editing it.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
**Note:** The quick actions translate between English, Swedish, German, French, Spanish, Finnish, Danish and Norwegian. Reading the document in the chat needs content access to be on in the workspace.
{% endhint %}

## Related

* [Edit a document](https://help.hippoly.com/using-hippoly/documents/edit-a-document.md)
* [hi](https://help.hippoly.com/using-hippoly/hi.md)
