Use document context in your prompt
Provide the model with your document content to define more detailed instructions, or to set a context to expand a paragraph while taking into account other elements in the document.
Prerequisites
Use the whole document as context
Select Write custom prompt and write a prompt. We are writing a thank you note.
Write all the necessary context in your Google document if there is none present yet.
Select Use selection or document as context and click Submit.
GPT for Docs adds the context of your document to the prompt, enabling the model to generate a note based on that context.
Use a selection as context to expand your content
Select Write custom prompt and write a prompt. We want GPT for Docs to expand on an important theme in our letter.
Select the content to expand.
Select Use selection or document as context and click Submit.
GPT for Docs adds your selection to the prompt, enabling the model to generate expanded content based on that context.
Use multiple selections as context
Select Write custom prompt and write a prompt. We want GPT for Docs to expand on a paragraph.
Select multiple paragraphs. We are selecting the paragraph to be expanded and the context to take into account, like the teacher's name.
Select Use selection or document as context and click Submit.
GPT for Docs adds your selections to the prompt, enabling the model to generate expanded content based on those multiple contexts.