Google Docs
Last updated: August 29, 2025
Introduction
The Google Docs integration in Zams enables your AI agents to create, edit, and format documents directly in Google Docs. With this integration, you can draft new documents, add tables or images, manage headers and footers, perform global text replacements, and collaborate more efficiently—all through natural language prompts.
This guide explains how to connect Google Docs to Zams, what functionalities are available, and how you can use them.
Connection Method
The Google Docs integration uses OAuth flow for authentication.
You need a Google account with access to Google Docs.
When you connect Google Docs in Zams, you will be prompted to sign in and grant permissions.
Once connected, your AI agents can create and edit your Docs directly.
Note
Agents can only manage documents that you have permission to view or edit.
Available Functionalities
Document Creation and Management
Action | Action Description |
Create Document | Create a new Google Doc with a title and optional initial text. |
Create Document from Markdown | Start a new document from markdown-formatted text. |
Copy Document | Duplicate an existing document, useful for templates. |
Get Document by ID | Retrieve a document’s metadata and content by its ID. |
Search Documents | Find documents by name, content, or date. |
Editing Content
Action | Action Description |
Insert Text | Add text at a specific location in a document. |
Replace All Text | Replace all occurrences of one text string with another. |
Delete Content Range | Remove a section of text or elements. |
Update Document Markdown | Replace the entire document with new markdown content. |
Update Existing Document | Apply batch edits such as inserting, deleting, or formatting. |
Formatting and Structure
Action | Action Description |
Insert Table | Add a new table to the document. |
Insert Table Column / Row | Add a new column or row to an existing table. |
Delete Table / Column / Row | Remove tables or specific rows/columns. |
Unmerge Table Cells | Split merged table cells back into individual cells. |
Create Paragraph Bullets | Apply bullet points to text ranges. |
Delete Paragraph Bullets | Remove bullet formatting. |
Insert Page Break | Start new content on a fresh page. |
Headers, Footers, and Footnotes
Action | Action Description |
Create Header / Footer | Add a header or footer to a document. |
Delete Header / Footer | Remove headers or footers. |
Create Footnote | Add a footnote at a specific location. |
Images and Media
Action | Action Description |
Insert Inline Image | Insert an image from a URL into the document. |
Replace Image | Replace an existing image with a new one. |
Get Charts from Spreadsheet | Retrieve charts from a linked Google Sheet. |
List Charts from Spreadsheet | List charts with metadata for embedding. |
---
### Styles and Formatting
Action | Action Description |
Create Named Range | Define a named range for easier reference. |
Delete Named Range | Remove a named range. |
Update Document Style | Change global styles such as margins, page size, or direction. |
Update Table Row Style | Adjust row formatting (e.g., shading, alignment). |
Example Prompts for Usage
Here are examples of how you can use:
Document Creation and Management
“Create a new Google Doc called Weekly Summary with the text Team updates for this week.”
“Copy the document ProjectTemplate.docx and name it Project A Plan.”
“Search for Google Docs that mention Q1 Roadmap.”
Editing Content
“Insert the text Meeting scheduled for next Tuesday at the top of TeamAgenda.docx.”
“Replace all instances of Q3 2024 with Q4 2024 in StrategyPlan.docx.”
“Delete the section between page 3 and page 4 in PolicyDoc.docx.”
Formatting and Structure
“Insert a 3x4 table at the end of BudgetReport.docx.”
“Add a new column to the first table in SurveyResults.docx.”
“Delete the second row of the table in ContactList.docx.”
“Turn the paragraphs on page 2 of Notes.docx into bullet points.”
“Insert a page break before the section titled Appendix.”
Headers, Footers, and Footnotes
“Add a header with the text Confidential to Proposal.docx.”
“Remove the footer from DraftContract.docx.”
“Insert a footnote at the end of Report.docx saying Source: Internal Data.”
Images and Media
“Insert the company logo from this URL into the first page of PresentationNotes.docx.”
“Replace the image in MarketingPlan.docx with a new one from this URL.”
“Show me available charts in SalesData.xlsx for embedding in QuarterlyReport.docx.”
Styles and Formatting
“Name the introduction section of Report.docx as ExecSummary.”
“Update the document style in Whitepaper.docx to A4 page size with 1-inch margins.”
“Change the background shading of the first row in the table in Schedule.docx.”
Tip
You don’t need to specify tool names like Insert Table or Replace All Text. Just describe your request in natural language, and your agent will apply the right function in Google Docs.