# Update Google Doc

## Configuration

### Account&#x20;

#### Dynamic (Ask at runtime)

This setting will ask a user to login to their Google Drive account when they run the app.

#### Connect a New Account

Follow the instructions on the pop-up window to directly connect MindStudio to your Google Drive account.&#x20;

### Document&#x20;

Add the document URL for the document you want to update. If you have connected your Google Drive account, you can search for your document by selecting the **search folder icon** next to the text field.&#x20;

### Operation

Select how you would like to update the document. Options include:

* **Overwrite Content:** Overwrites the existing content
* **Add to Top:** Adds new content to the top of the document&#x20;
* **Add to Bottom:** Adds new content to the bottom of the document

### Document Format&#x20;

Select the format for the content being sent to the document. The options include:

* **Plain Text**
* **Markdown**
* **HTML**

### **Content**&#x20;

Add the content that will be added to the document. This section can include variables.


---

# Agent Instructions: 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:

```
GET https://university.mindstudio.ai/docs/building-ai-agents/blocks-reference/update-google-doc.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
