Google Docs

Google Docs é o serviço colaborativo de documentos na nuvem do Google, que permite criar, editar e compartilhar documentos em tempo real. Como parte integral do Google Workspace, o Docs oferece ferramentas ricas de formatação, comentários, histórico de versões e integração fluida com outras ferramentas de produtividade do Google.

O Google Docs capacita indivíduos e equipes a:

  • Criar e formatar documentos: Desenvolver documentos de texto rico com formatação avançada, imagens e tabelas.
  • Colaborar e comentar: Vários usuários podem editar e comentar com sugestões instantaneamente.
  • Acompanhar alterações e histórico de versões: Revisar, reverter e gerenciar revisões ao longo do tempo.
  • Acessar de qualquer dispositivo: Trabalhar em documentos pela web, celular ou desktop com sincronização completa na nuvem.
  • Integrar entre serviços do Google: Conectar o Docs ao Drive, Sheets, Slides e plataformas externas para fluxos de trabalho poderosos.

No Zoen, a integração do Google Docs permite que seus agentes leiam o conteúdo de documentos, escrevam novos conteúdos e criem documentos de forma programática como parte de fluxos de trabalho automatizados. Essa integração desbloqueia automações como geração de documentos, escrita de relatórios, extração de conteúdo e edição colaborativa — conectando fluxos orientados por IA à gestão de documentos na sua organização.

Usage Instructions

Integrate Google Docs into the workflow. Read, write, and create documents, insert text, tables, images, and page breaks, find and replace text, and apply text styling.

Actions

google_docs_read

Read content from a Google Docs document

Input

ParameterTypeRequiredDescription
documentIdstringYesGoogle Docs document ID

Output

ParameterTypeDescription
contentstringExtracted document text content
metadatajsonDocument metadata including ID, title, and URL
documentIdstringGoogle Docs document ID
titlestringDocument title
mimeTypestringDocument MIME type
urlstringDocument URL

google_docs_write

Append content to a Google Docs document. Content is inserted literally; Markdown is not interpreted. For formatted output from Markdown, use the Create operation with the markdown toggle enabled.

Input

ParameterTypeRequiredDescription
documentIdstringYesThe ID of the document to write to
contentstringYesThe content to write to the document

Output

ParameterTypeDescription
updatedContentbooleanIndicates if document content was updated successfully
metadatajsonUpdated document metadata including ID, title, and URL
documentIdstringGoogle Docs document ID
titlestringDocument title
mimeTypestringDocument MIME type
urlstringDocument URL

google_docs_create

Create a new Google Docs document

Input

ParameterTypeRequiredDescription
titlestringYesThe title of the document to create
contentstringNoThe content of the document to create
folderSelectorstringNoGoogle Drive folder ID to create the document in (e.g., 1ABCxyz...)
folderIdstringNoThe ID of the folder to create the document in (internal use)
markdownbooleanNoWhen true, content is interpreted as Markdown and converted to formatted Google Docs content (headings, bold/italic, lists, tables, links, code blocks, blockquotes). Default: false (content inserted as plain text).

Output

ParameterTypeDescription
metadatajsonCreated document metadata including ID, title, and URL
documentIdstringGoogle Docs document ID
titlestringDocument title
mimeTypestringDocument MIME type
urlstringDocument URL

google_docs_insert_text

Insert text at a specific index in a Google Docs document. When no index is provided, text is appended to the end of the document. Text is inserted literally; Markdown is not interpreted.

Input

ParameterTypeRequiredDescription
documentIdstringYesThe ID of the document to insert text into
textstringYesThe text to insert
indexnumberNoThe character index (the document body starts at index 1) at which to insert the text. When omitted, text is appended to the end of the document.

Output

ParameterTypeDescription
updatedContentbooleanIndicates if text was inserted successfully
metadatajsonUpdated document metadata including ID, title, and URL
documentIdstringGoogle Docs document ID
titlestringDocument title
mimeTypestringDocument MIME type
urlstringDocument URL

google_docs_replace_text

Replace all occurrences of a search string with new text across a Google Docs document.

Input

ParameterTypeRequiredDescription
documentIdstringYesThe ID of the document to update
searchTextstringYesThe text to find
replaceTextstringNoThe text to replace matches with. Use an empty string to delete matches.
matchCasebooleanNoWhether the search should be case sensitive. Defaults to false.

Output

ParameterTypeDescription
occurrencesChangednumberThe number of occurrences that were replaced
metadatajsonUpdated document metadata including ID, title, and URL
documentIdstringGoogle Docs document ID
titlestringDocument title
mimeTypestringDocument MIME type
urlstringDocument URL

google_docs_insert_table

Insert an empty table with the given number of rows and columns into a Google Docs document. When no index is provided, the table is appended to the end of the document.

Input

ParameterTypeRequiredDescription
documentIdstringYesThe ID of the document to insert the table into
rowsnumberYesThe number of rows in the table
columnsnumberYesThe number of columns in the table
indexnumberNoThe character index (the document body starts at index 1) at which to insert the table. When omitted, the table is appended to the end of the document.

Output

ParameterTypeDescription
updatedContentbooleanIndicates if the table was inserted successfully
metadatajsonUpdated document metadata including ID, title, and URL
documentIdstringGoogle Docs document ID
titlestringDocument title
mimeTypestringDocument MIME type
urlstringDocument URL

google_docs_insert_image

Insert an inline image from a public URL into a Google Docs document. The image must be publicly accessible and under 50 MB. When no index is provided, the image is appended to the end of the document.

Input

ParameterTypeRequiredDescription
documentIdstringYesThe ID of the document to insert the image into
imageUrlstringYesThe publicly accessible URL of the image to insert
indexnumberNoThe character index (the document body starts at index 1) at which to insert the image. When omitted, the image is appended to the end of the document.
widthnumberNoOptional image width in points (PT)
heightnumberNoOptional image height in points (PT)

Output

ParameterTypeDescription
objectIdstringThe ID of the inserted inline image object
metadatajsonUpdated document metadata including ID, title, and URL
documentIdstringGoogle Docs document ID
titlestringDocument title
mimeTypestringDocument MIME type
urlstringDocument URL

google_docs_insert_page_break

Insert a page break into a Google Docs document. When no index is provided, the page break is appended to the end of the document.

Input

ParameterTypeRequiredDescription
documentIdstringYesThe ID of the document to insert the page break into
indexnumberNoThe character index (the document body starts at index 1) at which to insert the page break. When omitted, the page break is appended to the end of the document.

Output

ParameterTypeDescription
updatedContentbooleanIndicates if the page break was inserted successfully
metadatajsonUpdated document metadata including ID, title, and URL
documentIdstringGoogle Docs document ID
titlestringDocument title
mimeTypestringDocument MIME type
urlstringDocument URL

google_docs_update_text_style

Apply bold, italic, underline, and/or font size to a range of text in a Google Docs document, identified by its start and end character index.

Input

ParameterTypeRequiredDescription
documentIdstringYesThe ID of the document to update
startIndexnumberYesThe start character index (the document body starts at index 1) of the range to style (inclusive)
endIndexnumberYesThe end character index of the range to style (exclusive)
boldbooleanNoWhether to make the text bold
italicbooleanNoWhether to make the text italic
underlinebooleanNoWhether to underline the text
fontSizenumberNoThe font size to apply, in points (PT)

Output

ParameterTypeDescription
updatedContentbooleanIndicates if the text style was applied successfully
metadatajsonUpdated document metadata including ID, title, and URL
documentIdstringGoogle Docs document ID
titlestringDocument title
mimeTypestringDocument MIME type
urlstringDocument URL

google_docs_update_paragraph_style

Apply a named paragraph style (such as a heading or title) and/or alignment to the paragraphs overlapping a range of text in a Google Docs document, identified by its start and end character index.

Input

ParameterTypeRequiredDescription
documentIdstringYesThe ID of the document to update
startIndexnumberYesThe start character index (the document body starts at index 1) of the range to style (inclusive)
endIndexnumberYesThe end character index of the range to style (exclusive)
namedStyleTypestringNoThe named paragraph style to apply. One of: NORMAL_TEXT, TITLE, SUBTITLE, HEADING_1, HEADING_2, HEADING_3, HEADING_4, HEADING_5, HEADING_6.
alignmentstringNoThe paragraph alignment to apply. One of: LEFT, CENTER, RIGHT, JUSTIFY.

Output

ParameterTypeDescription
updatedContentbooleanIndicates if the paragraph style was applied successfully
metadatajsonUpdated document metadata including ID, title, and URL
documentIdstringGoogle Docs document ID
titlestringDocument title
mimeTypestringDocument MIME type
urlstringDocument URL

google_docs_create_paragraph_bullets

Add bulleted or numbered list formatting to the paragraphs overlapping a range of text in a Google Docs document, using a chosen bullet glyph preset.

Input

ParameterTypeRequiredDescription
documentIdstringYesThe ID of the document to update
startIndexnumberYesThe start character index (the document body starts at index 1) of the range to bullet (inclusive)
endIndexnumberYesThe end character index of the range to bullet (exclusive)
bulletPresetstringNoThe bullet glyph preset to apply. Defaults to BULLET_DISC_CIRCLE_SQUARE. Examples: BULLET_DISC_CIRCLE_SQUARE, BULLET_CHECKBOX, NUMBERED_DECIMAL_ALPHA_ROMAN, NUMBERED_DECIMAL_NESTED.

Output

ParameterTypeDescription
updatedContentbooleanIndicates if the bullets were applied successfully
metadatajsonUpdated document metadata including ID, title, and URL
documentIdstringGoogle Docs document ID
titlestringDocument title
mimeTypestringDocument MIME type
urlstringDocument URL

google_docs_delete_paragraph_bullets

Remove bullet or numbered list formatting from the paragraphs overlapping a range of text in a Google Docs document, identified by its start and end character index.

Input

ParameterTypeRequiredDescription
documentIdstringYesThe ID of the document to update
startIndexnumberYesThe start character index (the document body starts at index 1) of the range to clear bullets from (inclusive)
endIndexnumberYesThe end character index of the range to clear bullets from (exclusive)

Output

ParameterTypeDescription
updatedContentbooleanIndicates if the bullets were removed successfully
metadatajsonUpdated document metadata including ID, title, and URL
documentIdstringGoogle Docs document ID
titlestringDocument title
mimeTypestringDocument MIME type
urlstringDocument URL

google_docs_delete_content_range

Delete all content between a start and end character index in a Google Docs document. The endIndex is exclusive and must be greater than the startIndex.

Input

ParameterTypeRequiredDescription
documentIdstringYesThe ID of the document to delete content from
startIndexnumberYesThe start character index (the document body starts at index 1) of the range to delete (inclusive)
endIndexnumberYesThe end character index of the range to delete (exclusive)

Output

ParameterTypeDescription
updatedContentbooleanIndicates if the content range was deleted successfully
metadatajsonUpdated document metadata including ID, title, and URL
documentIdstringGoogle Docs document ID
titlestringDocument title
mimeTypestringDocument MIME type
urlstringDocument URL

google_docs_create_named_range

Create a named range over a span of content in a Google Docs document so it can be referenced or deleted later. The name may be 1-256 characters and need not be unique.

Input

ParameterTypeRequiredDescription
documentIdstringYesThe ID of the document to update
namestringYesThe name of the range to create (1-256 characters)
startIndexnumberYesThe start character index (the document body starts at index 1) of the range (inclusive)
endIndexnumberYesThe end character index of the range (exclusive)

Output

ParameterTypeDescription
namedRangeIdstringThe ID of the created named range
metadatajsonUpdated document metadata including ID, title, and URL
documentIdstringGoogle Docs document ID
titlestringDocument title
mimeTypestringDocument MIME type
urlstringDocument URL

google_docs_delete_named_range

Delete one or more named ranges from a Google Docs document by their ID or by name. Provide exactly one of namedRangeId or name; deleting by name removes all ranges sharing that name. The content itself is not removed.

Input

ParameterTypeRequiredDescription
documentIdstringYesThe ID of the document to update
namedRangeIdstringNoThe ID of the named range to delete. Provide exactly one of namedRangeId or namedRangeName.
namedRangeNamestringNoThe name of the named range(s) to delete. All ranges sharing this name are removed. Provide exactly one of namedRangeId or namedRangeName.

Output

ParameterTypeDescription
updatedContentbooleanIndicates if the named range(s) were deleted successfully
metadatajsonUpdated document metadata including ID, title, and URL
documentIdstringGoogle Docs document ID
titlestringDocument title
mimeTypestringDocument MIME type
urlstringDocument URL

On this page