Google Docs
googledocsGoogle Docs is a cloud-based word processor with real-time collaboration, version history, and integration with other Google Workspace apps
Acciones disponibles (32)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Copy Google DocumentGOOGLEDOCS_COPY_DOCUMENTAcciónTool to create a copy of an existing google document. use this to duplicate a document, for example, when using an existing document as a template. the copied document will have a default title (e.g., 'copy of [original title]') if no new title is provided, and will be placed in the user's root google drive folder.
GOOGLEDOCS_COPY_DOCUMENTAcciónTool to create a copy of an existing google document. use this to duplicate a document, for example, when using an existing document as a template. the copied document will have a default title (e.g., 'copy of [original title]') if no new title is provided, and will be placed in the user's root google drive folder.
Parámetros de entrada
titlestringThe title for the new copied document. If not provided, the title will be 'Copy of [original document's title]'.
document_idstringObligatorioThe ID of the Google Document to be copied.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create a documentGOOGLEDOCS_CREATE_DOCUMENTAcciónCreates a new google docs document using the provided title as filename and inserts the initial text at the beginning if non-empty, returning the document's id and metadata (excluding body content).
GOOGLEDOCS_CREATE_DOCUMENTAcciónCreates a new google docs document using the provided title as filename and inserts the initial text at the beginning if non-empty, returning the document's id and metadata (excluding body content).
Parámetros de entrada
textstringObligatorioInitial text content to insert at the beginning of the new document.
titlestringObligatorioTitle for the new document, used as its filename in Google Drive.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Document MarkdownGOOGLEDOCS_CREATE_DOCUMENT_MARKDOWNAcciónCreates a new google docs document, optionally initializing it with a title and content provided as markdown text.
GOOGLEDOCS_CREATE_DOCUMENT_MARKDOWNAcciónCreates a new google docs document, optionally initializing it with a title and content provided as markdown text.
Parámetros de entrada
titlestringObligatorioThe title for the new Google Docs document.
markdown_textstringObligatorioThe initial content for the document, formatted as Markdown. Supports various Markdown elements including headings, lists (nested lists are not supported), tables, images (via publicly accessible URLs), blockquotes, code blocks, and text formatting (bold, italic, etc.). If an empty string is provided, the document will be created with only the title.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create FooterGOOGLEDOCS_CREATE_FOOTERAcciónTool to create a new footer in a google document. use when you need to add a footer, optionally specifying its type and the section it applies to.
GOOGLEDOCS_CREATE_FOOTERAcciónTool to create a new footer in a google document. use when you need to add a footer, optionally specifying its type and the section it applies to.
Parámetros de entrada
typestringObligatorioenumThe type of footer to create.
HEADER_FOOTER_TYPE_UNSPECIFIEDDEFAULTdocument_idstringObligatorioThe ID of the document to create the footer in.
section_break_locationobjectThe location of the SectionBreak immediately preceding the section whose SectionStyle this footer should belong to. If this is unset or refers to the first section break in the document, the footer applies to the document style.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create FootnoteGOOGLEDOCS_CREATE_FOOTNOTEAcciónTool to create a new footnote in a google document. use this when you need to add a footnote at a specific location or at the end of the document body.
GOOGLEDOCS_CREATE_FOOTNOTEAcciónTool to create a new footnote in a google document. use this when you need to add a footnote at a specific location or at the end of the document body.
Parámetros de entrada
locationobjectInserts the footnote reference at a specific index in the document. The segmentId within this Location object must be empty as footnotes can only be inserted in the document body.
documentIdstringObligatorioThe ID of the document to create the footnote in.
endOfSegmentLocationobjectInserts the footnote reference at the end of the document body. The segmentId within this EndOfSegmentLocation object must be empty.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create HeaderGOOGLEDOCS_CREATE_HEADERAcciónTool to create a new header in a google document. use this tool when you need to add a header to a document, optionally specifying the section it applies to.
GOOGLEDOCS_CREATE_HEADERAcciónTool to create a new header in a google document. use this tool when you need to add a header to a document, optionally specifying the section it applies to.
Parámetros de entrada
documentIdstringObligatorioThe ID of the document to create the header in.
createHeaderobjectObligatorioThe details of the header to create.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Named RangeGOOGLEDOCS_CREATE_NAMED_RANGEAcciónTool to create a new named range in a google document. use this to assign a name to a specific part of the document for easier reference or programmatic manipulation.
GOOGLEDOCS_CREATE_NAMED_RANGEAcciónTool to create a new named range in a google document. use this to assign a name to a specific part of the document for easier reference or programmatic manipulation.
Parámetros de entrada
namestringObligatorioThe name for the new named range. Must be 1-256 characters.
documentIdstringObligatorioThe ID of the document where the named range will be created.
rangeEndIndexintegerObligatorioThe zero-based end index of the range.
rangeSegmentIdstringOptional. The ID of the header, footer, or footnote. Empty for document body.
rangeStartIndexintegerObligatorioThe zero-based start index of the range.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Paragraph BulletsGOOGLEDOCS_CREATE_PARAGRAPH_BULLETSAcciónTool to add bullets to paragraphs within a specified range in a google document. use when you need to format a list or a set of paragraphs as bullet points.
GOOGLEDOCS_CREATE_PARAGRAPH_BULLETSAcciónTool to add bullets to paragraphs within a specified range in a google document. use when you need to format a list or a set of paragraphs as bullet points.
Parámetros de entrada
document_idstringObligatorioThe ID of the document to update.
createParagraphBulletsobjectObligatorio
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete Content Range in DocumentGOOGLEDOCS_DELETE_CONTENT_RANGEAcciónTool to delete a range of content from a google document. use when you need to remove a specific portion of text or other structural elements within a document.
GOOGLEDOCS_DELETE_CONTENT_RANGEAcciónTool to delete a range of content from a google document. use when you need to remove a specific portion of text or other structural elements within a document.
Parámetros de entrada
rangeobjectObligatorioThe range of content to delete. Deleting text across paragraph boundaries may merge paragraphs and affect styles. Certain deletions can invalidate document structure (e.g., part of a surrogate pair, last newline of critical elements, incomplete deletion of tables/equations).
document_idstringObligatorioThe ID of the document from which to delete content. This ID can be found in the URL of the Google Doc.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete FooterGOOGLEDOCS_DELETE_FOOTERAcciónTool to delete a footer from a google document. use when you need to remove a footer from a specific section or the default footer.
GOOGLEDOCS_DELETE_FOOTERAcciónTool to delete a footer from a google document. use when you need to remove a footer from a specific section or the default footer.
Parámetros de entrada
tab_idstringThe tab that contains the footer to delete. When omitted, the request is applied to the first tab.
footer_idstringObligatorioThe ID of the footer to delete. If this footer is defined on DocumentStyle, the reference to this footer is removed, resulting in no footer of that type for the first section of the document. If this footer is defined on a SectionStyle, the reference to this footer is removed and the footer of that type is now continued from the previous section.
document_idstringObligatorioThe ID of the document to delete the footer from.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete HeaderGOOGLEDOCS_DELETE_HEADERAcciónDeletes the header from the specified section or the default header if no section is specified. use this tool to remove a header from a google document.
GOOGLEDOCS_DELETE_HEADERAcciónDeletes the header from the specified section or the default header if no section is specified. use this tool to remove a header from a google document.
Parámetros de entrada
tab_idstringThe tab containing the header to delete. When omitted, the request is applied to the first tab.
header_idstringObligatorioThe ID of the header to delete. If this header is defined on `DocumentStyle`, the reference to this header is removed, resulting in no header of that type for the first section of the document. If this header is defined on a `SectionStyle`, the reference to this header is removed and the header of that type is now continued from the previous section.
document_idstringObligatorioThe ID of the document from which to delete the header.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete Named RangeGOOGLEDOCS_DELETE_NAMED_RANGEAcciónTool to delete a named range from a google document. use when you need to remove a previously defined named range by its id or name.
GOOGLEDOCS_DELETE_NAMED_RANGEAcciónTool to delete a named range from a google document. use when you need to remove a previously defined named range by its id or name.
Parámetros de entrada
document_idstringObligatorioThe ID of the document.
deleteNamedRangeobjectObligatorioSpecifies the named range to delete.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete Paragraph BulletsGOOGLEDOCS_DELETE_PARAGRAPH_BULLETSAcciónTool to remove bullets from paragraphs within a specified range in a google document. use when you need to clear bullet formatting from a section of a document.
GOOGLEDOCS_DELETE_PARAGRAPH_BULLETSAcciónTool to remove bullets from paragraphs within a specified range in a google document. use when you need to clear bullet formatting from a section of a document.
Parámetros de entrada
rangeobjectObligatorioThe range of the document from which to delete paragraph bullets. The range is applied to the document body by default. To specify a different segment (e.g. header, footer), include segment_id in the range object.
tab_idstringThe ID of the tab the range is in. If omitted, it applies to the first tab or the singular tab in a single-tab document.
document_idstringObligatorioThe ID of the document to update.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete TableGOOGLEDOCS_DELETE_TABLEAcciónTool to delete an entire table from a google document. use when you have the document id and the specific start and end index of the table element to be removed. the table's range can be found by inspecting the document's content structure.
GOOGLEDOCS_DELETE_TABLEAcciónTool to delete an entire table from a google document. use when you have the document id and the specific start and end index of the table element to be removed. the table's range can be found by inspecting the document's content structure.
Parámetros de entrada
tab_idstringThe ID of the tab containing the table, if the document uses tabs. If omitted, the action applies to the first tab or the only tab.
segment_idstringThe ID of the segment (e.g., header, footer) containing the table. If omitted or empty, the table is assumed to be in the main document body.
document_idstringObligatorioThe ID of the Google Document from which the table will be deleted.
table_end_indexintegerObligatorioThe end index (UTF-16 code unit) of the table's range to be deleted.
table_start_indexintegerObligatorioThe start index (UTF-16 code unit) of the table's range to be deleted.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete Table ColumnGOOGLEDOCS_DELETE_TABLE_COLUMNAcciónTool to delete a column from a table in a google document. use this tool when you need to remove a specific column from an existing table within a document.
GOOGLEDOCS_DELETE_TABLE_COLUMNAcciónTool to delete a column from a table in a google document. use this tool when you need to remove a specific column from an existing table within a document.
Parámetros de entrada
requestsobject[]ObligatorioA list of requests to be applied to the document.
document_idstringObligatorioThe ID of the document to delete the table column from.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete Table RowGOOGLEDOCS_DELETE_TABLE_ROWAcciónTool to delete a row from a table in a google document. use when you need to remove a specific row from an existing table.
GOOGLEDOCS_DELETE_TABLE_ROWAcciónTool to delete a row from a table in a google document. use when you need to remove a specific row from an existing table.
Parámetros de entrada
documentIdstringObligatorioThe ID of the document.
tableCellLocationobjectObligatorioThe reference table cell location from which the row will be deleted.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Charts from SpreadsheetGOOGLEDOCS_GET_CHARTS_FROM_SPREADSHEETAcciónTool to retrieve a list of all charts from a specified google sheets spreadsheet. use when you need to get chart ids and their specifications for embedding or referencing elsewhere, such as in google docs.
GOOGLEDOCS_GET_CHARTS_FROM_SPREADSHEETAcciónTool to retrieve a list of all charts from a specified google sheets spreadsheet. use when you need to get chart ids and their specifications for embedding or referencing elsewhere, such as in google docs.
Parámetros de entrada
spreadsheet_idstringObligatorioThe ID of the Google Sheets spreadsheet from which to retrieve charts.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get document by idGOOGLEDOCS_GET_DOCUMENT_BY_IDAcciónRetrieves an existing google document by its id; will error if the document is not found.
GOOGLEDOCS_GET_DOCUMENT_BY_IDAcciónRetrieves an existing google document by its id; will error if the document is not found.
Parámetros de entrada
idstringObligatorioThe unique identifier for the Google Document to be retrieved. This action specifically fetches an existing document and will not create a new one if the ID is not found.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Insert Inline ImageGOOGLEDOCS_INSERT_INLINE_IMAGEAcciónTool to insert an image from a given uri at a specified location in a google document as an inline image. use when you need to add an image to a document programmatically.
GOOGLEDOCS_INSERT_INLINE_IMAGEAcciónTool to insert an image from a given uri at a specified location in a google document as an inline image. use when you need to add an image to a document programmatically.
Parámetros de entrada
uristringObligatorioThe URI of the image. Images must be less than 50MB, not exceed 25 megapixels, and be in PNG, JPEG, or GIF format. The URI can be at most 2 kB.
locationobjectObligatorioThe location in the document to insert the image.
documentIdstringObligatorioThe ID of the document to update.
objectSizeobjectThe size of the image. If not specified, the image is rendered at its intrinsic size.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Insert Page BreakGOOGLEDOCS_INSERT_PAGE_BREAKAcciónTool to insert a page break into a google document. use when you need to start new content on a fresh page, such as at the end of a chapter or section.
GOOGLEDOCS_INSERT_PAGE_BREAKAcciónTool to insert a page break into a google document. use when you need to start new content on a fresh page, such as at the end of a chapter or section.
Parámetros de entrada
documentIdstringObligatorioThe ID of the document to update.
insertPageBreakobjectObligatorioThe details for the insertPageBreak request.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Insert Table in Google DocGOOGLEDOCS_INSERT_TABLE_ACTIONAcciónTool to insert a table into a google document. use when you need to add a new table at a specific location or at the end of a segment (like document body, header, or footer) in a document.
GOOGLEDOCS_INSERT_TABLE_ACTIONAcciónTool to insert a table into a google document. use when you need to add a new table at a specific location or at the end of a segment (like document body, header, or footer) in a document.
Parámetros de entrada
rowsintegerObligatorioThe number of rows in the table.
indexintegerThe zero-based index where the table will be inserted. If provided, 'location' will be used. If omitted and 'insertAtEndOfSegment' is false or omitted, 'endOfSegmentLocation' will be used for the document body.
tabIdstringThe tab that the location is in. When omitted, the request is applied to the first tab.
columnsintegerObligatorioThe number of columns in the table.
segmentIdstringThe ID of the header, footer or footnote the location is in. An empty segment ID signifies the document's body.
documentIdstringObligatorioThe ID of the document to update.
insertAtEndOfSegmentbooleanIf true, inserts the table at the end of the segment (document body, header, or footer specified by segment_id). If false or omitted, and 'index' is not provided, it defaults to inserting at the end of the document body. If 'index' is provided, this field is ignored.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Insert Table ColumnGOOGLEDOCS_INSERT_TABLE_COLUMNAcciónTool to insert a new column into a table in a google document. use this tool when you need to add a column to an existing table at a specific location.
GOOGLEDOCS_INSERT_TABLE_COLUMNAcciónTool to insert a new column into a table in a google document. use this tool when you need to add a column to an existing table at a specific location.
Parámetros de entrada
requestsobject[]ObligatorioA list of requests to be applied to the document. For this action, it will contain one InsertTableColumnRequest.
document_idstringObligatorioThe ID of the document to update.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Insert Text into DocumentGOOGLEDOCS_INSERT_TEXT_ACTIONAcciónTool to insert a string of text at a specified location within a google document. use when you need to add new text content to an existing document.
GOOGLEDOCS_INSERT_TEXT_ACTIONAcciónTool to insert a string of text at a specified location within a google document. use when you need to add new text content to an existing document.
Parámetros de entrada
document_idstringObligatorioThe ID of the document to insert text into.
text_to_insertstringObligatorioThe string of text to insert.
insertion_indexintegerObligatorioThe EOL character of the paragraph will be moved to the end of the inserted text. The index where the text will be inserted. The index is zero-based and refers to the UTF-16 code unit. For example, to insert text at the beginning of the document, use an index of 1 (to account for the first paragraph).
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Charts from SpreadsheetGOOGLEDOCS_LIST_SPREADSHEET_CHARTS_ACTIONAcciónTool to retrieve a list of charts with their ids and metadata from a google sheets spreadsheet. use to identify charts available for embedding into google docs.
GOOGLEDOCS_LIST_SPREADSHEET_CHARTS_ACTIONAcciónTool to retrieve a list of charts with their ids and metadata from a google sheets spreadsheet. use to identify charts available for embedding into google docs.
Parámetros de entrada
fields_maskstringField mask to specify which parts of the spreadsheet and chart resources to include. Example: '''sheets(properties(sheetId,title),charts(chartId,spec(title,altText)))'''
spreadsheet_idstringObligatorioThe ID of the Google Sheets spreadsheet.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Replace All Text in DocumentGOOGLEDOCS_REPLACE_ALL_TEXTAcciónTool to replace all occurrences of a specified text string with another text string throughout a google document. use when you need to perform a global find and replace operation within a document.
GOOGLEDOCS_REPLACE_ALL_TEXTAcciónTool to replace all occurrences of a specified text string with another text string throughout a google document. use when you need to perform a global find and replace operation within a document.
Parámetros de entrada
tab_idsstring[]Optional. A list of specific tab IDs to perform the replacement on. If not provided, replacement occurs on all tabs.
find_textstringObligatorioThe text to search for in the document.
match_casebooleanObligatorioIndicates whether the search should be case sensitive.
document_idstringObligatorioThe ID of the document to update.
replace_textstringObligatorioThe text that will replace the matched text.
search_by_regexbooleanOptional. If True, the find_text is treated as a regular expression. Defaults to False.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Replace Image in DocumentGOOGLEDOCS_REPLACE_IMAGEAcciónTool to replace a specific image in a document with a new image from a uri. use when you need to update an existing image within a google doc.
GOOGLEDOCS_REPLACE_IMAGEAcciónTool to replace a specific image in a document with a new image from a uri. use when you need to update an existing image within a google doc.
Parámetros de entrada
document_idstringObligatorioThe ID of the document containing the image to replace.
replace_imageobjectObligatorioThe details of the image replacement request.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Search DocumentsGOOGLEDOCS_SEARCH_DOCUMENTSAcciónSearch for google documents using various filters including name, content, date ranges, and more.
GOOGLEDOCS_SEARCH_DOCUMENTSAcciónSearch for google documents using various filters including name, content, date ranges, and more.
Parámetros de entrada
querystringSearch query to filter documents. Can search by name (name contains 'report'), full text content (fullText contains 'important'), or use complex queries with operators like 'and', 'or', 'not'. Leave empty to get all documents.
order_bystringOrder results by field. Common options: 'modifiedTime desc', 'modifiedTime asc', 'name', 'createdTime desc'
max_resultsintegerMaximum number of documents to return (1-1000). Defaults to 10.
starred_onlybooleanWhether to return only starred documents. Defaults to False.
created_afterstringReturn documents created after this date. Use RFC 3339 format like '2024-01-01T00:00:00Z'.
modified_afterstringReturn documents modified after this date. Use RFC 3339 format like '2024-01-01T00:00:00Z'.
shared_with_mebooleanWhether to return only documents shared with the current user. Defaults to False.
include_trashedbooleanWhether to include documents in trash. Defaults to False.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Unmerge Table CellsGOOGLEDOCS_UNMERGE_TABLE_CELLSAcciónTool to unmerge previously merged cells in a table. use this when you need to revert merged cells in a google document table back to their individual cell states.
GOOGLEDOCS_UNMERGE_TABLE_CELLSAcciónTool to unmerge previously merged cells in a table. use this when you need to revert merged cells in a google document table back to their individual cell states.
Parámetros de entrada
tableRangeobjectObligatorioThe table range specifying which cells of the table to unmerge.
document_idstringObligatorioThe ID of the document to unmerge table cells in.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update Document MarkdownGOOGLEDOCS_UPDATE_DOCUMENT_MARKDOWNAcciónReplaces the entire content of an existing google docs document with new markdown text; requires edit permissions for the document.
GOOGLEDOCS_UPDATE_DOCUMENT_MARKDOWNAcciónReplaces the entire content of an existing google docs document with new markdown text; requires edit permissions for the document.
Parámetros de entrada
document_idstringObligatorioIdentifier of the Google Docs document to update, found in the document's URL.
new_markdown_textstringObligatorioMarkdown content that will replace the document's entire existing content. Supports standard Markdown features.
Parámetros de salida
dataobjectA dictionary containing the raw response from the Google Docs API's `batchUpdate` endpoint. This can include details about the revisions made and the document's current state. Its structure is defined by the Google Docs API.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
document_idstringThe unique identifier of the Google Docs document that was successfully updated.
Update Document StyleGOOGLEDOCS_UPDATE_DOCUMENT_STYLEAcciónTool to update the overall document style, such as page size, margins, and default text direction. use when you need to modify the global style settings of a google document.
GOOGLEDOCS_UPDATE_DOCUMENT_STYLEAcciónTool to update the overall document style, such as page size, margins, and default text direction. use when you need to modify the global style settings of a google document.
Parámetros de entrada
fieldsstringObligatorioA comma-separated list of fields to update. Use '*' to update all fields in document_style. For example: "pageSize,marginTop,marginBottom".
tab_idstringThe ID of the tab to update the style for. If not provided, the first tab is used.
document_idstringObligatorioThe ID of the document to update.
document_styleobjectObligatorioThe DocumentStyle object with the new style settings.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update existing documentGOOGLEDOCS_UPDATE_EXISTING_DOCUMENTAcciónApplies programmatic edits, such as text insertion, deletion, or formatting, to a specified google doc using the `batchupdate` api method.
GOOGLEDOCS_UPDATE_EXISTING_DOCUMENTAcciónApplies programmatic edits, such as text insertion, deletion, or formatting, to a specified google doc using the `batchupdate` api method.
Parámetros de entrada
editDocsobject[]ObligatorioRequests conforming to the Google Docs API `batchUpdate` method, where each item specifies an operation. For full details and more request types, see https://developers.google.com/docs/api/reference/rest/v1/documents/batchUpdate. For example, to insert text at the beginning of the document: [ { "insertText": { "text": "This is a new paragraph.\n", "location": { "index": 1 } } } ] To delete a paragraph by its index: [{ "deleteContentRange": { "range": { "startIndex": 1, "endIndex": 20 } } }] To replace all text: [{ "replaceAllText": { "containsText": { "text": "old text" }, "replaceText": "new text" } }]
document_idstringObligatorioThe unique identifier of the Google Docs document to be updated.
Parámetros de salida
dataobjectThe full response data from the Google Docs API `batchUpdate` request, containing details about the applied edits and the state of the document.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
document_idstringThe unique identifier of the Google Docs document that was updated.
Update Table Row StyleGOOGLEDOCS_UPDATE_TABLE_ROW_STYLEAcciónTool to update the style of a table row in a google document. use when you need to modify the appearance of specific rows within a table, such as setting minimum row height or marking rows as headers.
GOOGLEDOCS_UPDATE_TABLE_ROW_STYLEAcciónTool to update the style of a table row in a google document. use when you need to modify the appearance of specific rows within a table, such as setting minimum row height or marking rows as headers.
Parámetros de entrada
documentIdstringObligatorioThe ID of the document to update.
updateTableRowStyleobjectObligatorio
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Triggers (10)
Los triggers son eventos externos que pueden iniciar un flujo en tus agentes (ej: nuevo email, mensaje recibido, registro creado).
New Document CreatedGOOGLEDOCS_DOCUMENT_CREATED_TRIGGERTriggerTriggers when a new Google Doc is created.
This trigger monitors Google Docs and fires when new documents are detected.
Uses timestamp filtering to efficiently poll for new documents.
GOOGLEDOCS_DOCUMENT_CREATED_TRIGGERTriggerTriggers when a new Google Doc is created. This trigger monitors Google Docs and fires when new documents are detected. Uses timestamp filtering to efficiently poll for new documents.
Configuración
intervalnumberPeriodic Interval to Check for Updates & Send a Trigger in Minutes
max_resultsintegerMaximum number of documents to check in each poll (1-1000)
querystringOptional search query to filter documents. Can search by name (name contains 'report'), full text content (fullText contains 'important'), or use complex queries with operators like 'and', 'or', 'not'. Leave empty to monitor all documents.
Payload del evento
documentobjectObligatorioThe newly created Google document
event_typestringType of event that occurred
Instrucciones
**Instructions for Setting Up the Trigger:** - This trigger monitors Google Docs for newly created documents. - You can optionally provide a search query to filter which documents to monitor. - The trigger will detect documents created after the trigger is set up. - Use max_results to control how many documents to check in each poll (default: 100). - Examples of search queries: - name contains 'report' - Monitor documents with 'report' in the name - fullText contains 'important' - Monitor documents containing the word 'important' - Leave query empty to monitor all new documents
Document DeletedGOOGLEDOCS_DOCUMENT_DELETED_TRIGGERTriggerTriggers when an existing Google Doc is deleted (moved to trash).
This trigger monitors Google Docs and fires when documents are trashed.
GOOGLEDOCS_DOCUMENT_DELETED_TRIGGERTriggerTriggers when an existing Google Doc is deleted (moved to trash). This trigger monitors Google Docs and fires when documents are trashed.
Configuración
intervalnumberPeriodic Interval to Check for Updates & Send a Trigger in Minutes
max_resultsintegerMaximum number of documents to check in each poll (1-1000)
querystringOptional search query to filter documents. Leave empty to monitor all documents for deletion.
Payload del evento
documentobjectObligatorioThe deleted Google document
event_typestringType of event that occurred
Instrucciones
**Instructions for Setting Up the Trigger:** - This trigger monitors Google Docs for documents moved to trash (deleted). - You can optionally provide a search query to filter which documents to monitor. - The trigger will detect when a document's trashed status changes from false to true. - Use max_results to control how many documents to check in each poll (default: 10).
Document Placeholder FilledGOOGLEDOCS_DOCUMENT_PLACEHOLDER_FILLED_TRIGGERTriggerTriggers when a Google Doc's plain text changes such that a configured placeholder
token/pattern is no longer present (i.e., the document has been filled in).
This trigger monitors a specific Google Doc and fires when a placeholder pattern
that was previously present is no longer found in the document's plain text.
GOOGLEDOCS_DOCUMENT_PLACEHOLDER_FILLED_TRIGGERTriggerTriggers when a Google Doc's plain text changes such that a configured placeholder token/pattern is no longer present (i.e., the document has been filled in). This trigger monitors a specific Google Doc and fires when a placeholder pattern that was previously present is no longer found in the document's plain text.
Configuración
case_sensitivebooleanWhether the placeholder pattern matching should be case-sensitive.
document_idstringObligatorioThe unique identifier for the Google Document to monitor. Accepts either a document ID (typically a 44-character alphanumeric string) or a full Google Docs URL.
include_footersbooleanWhether to include footer text when checking for placeholders.
include_footnotesbooleanWhether to include footnote text when checking for placeholders.
include_headersbooleanWhether to include header text when checking for placeholders.
intervalnumberPeriodic Interval to Check for Updates & Send a Trigger in Minutes
placeholder_patternstringObligatorioThe placeholder token/pattern to monitor (e.g., '{{NAME}}', '[FILL_ME]', 'TODO'). Can be a literal string or a regex pattern if use_regex is enabled.
use_regexbooleanIf true, treat placeholder_pattern as a regex pattern. If false, treat it as a literal string.
Payload del evento
documentobjectObligatorioThe document that was filled in
event_typestringType of event that occurred
placeholder_patternstringObligatorioThe placeholder pattern that is no longer present
Instrucciones
**Instructions for Setting Up the Trigger:** - This trigger monitors a specific Google Doc for placeholder patterns being removed/filled in. - Provide the document ID or full Google Docs URL of the document to monitor. - Specify the placeholder pattern to watch for (e.g., '{{NAME}}', '[TODO]', 'PLACEHOLDER'). - The trigger will fire when the placeholder pattern is no longer found in the document. - You can use regex patterns for more complex placeholder matching. - Optionally include headers, footers, and footnotes in the placeholder check. **Example Use Cases:** - Monitor contract templates where placeholders like '{{CLIENT_NAME}}' need to be filled - Track completion of documents with '[TODO]' markers - Detect when form documents with '___________' placeholders are completed
Document Search UpdateGOOGLEDOCS_DOCUMENT_SEARCH_UPDATE_TRIGGERTriggerTriggers when a Google Doc matching a user-defined search query is newly created or updated since the last poll.
This trigger uses timestamp filtering to efficiently monitor documents.
GOOGLEDOCS_DOCUMENT_SEARCH_UPDATE_TRIGGERTriggerTriggers when a Google Doc matching a user-defined search query is newly created or updated since the last poll. This trigger uses timestamp filtering to efficiently monitor documents.
Configuración
include_shared_drivesbooleanWhether to include documents from shared drives you have access to. Defaults to True.
include_trashedbooleanWhether to include documents in trash. Defaults to False.
intervalnumberPeriodic Interval to Check for Updates & Send a Trigger in Minutes
max_resultsintegerMaximum number of documents to check in each poll (1-100)
querystringObligatorioSearch query to filter documents. Provide either: (1) Plain text to search in document content (e.g., 'quarterly report'), which will search fullText, or (2) Drive API query syntax with operators like 'name contains', 'fullText contains', combined with 'and', 'or', 'not'.
shared_with_mebooleanWhether to return only documents shared with the current user. Defaults to False.
starred_onlybooleanWhether to return only starred documents. Defaults to False.
Payload del evento
documentobjectObligatorioThe document that was created or updated
event_typestringObligatorioType of event that occurred: 'document_created' or 'document_updated'
Instrucciones
**Instructions for Setting Up the Trigger:** - This trigger monitors Google Docs matching a specific search query for new or updated documents. - You must provide a search query to filter which documents to monitor. - The trigger will detect documents that are created or modified after the trigger is set up. - Uses timestamp-based filtering for efficient polling. - Examples of search queries: - "quarterly report" - Search for documents containing "quarterly report" - "name contains 'report'" - Monitor documents with 'report' in the name - "fullText contains 'important'" - Monitor documents containing the word 'important' - "name contains 'project' and fullText contains 'status'" - Complex query with multiple conditions - Optional filters: starred_only, shared_with_me, include_trashed, include_shared_drives
Document Structure ChangedGOOGLEDOCS_DOCUMENT_STRUCTURE_CHANGED_TRIGGERTriggerTriggers when a Google Doc's structure changes (headers/footers added/removed, tables/images count changes).
This trigger monitors a specific document for structural changes like:
- Headers added or removed
- Footers added or removed
- Tables added or removed
- Images (inline objects) added or removed
- Positioned objects added or removed
- Footnotes added or removed
GOOGLEDOCS_DOCUMENT_STRUCTURE_CHANGED_TRIGGERTriggerTriggers when a Google Doc's structure changes (headers/footers added/removed, tables/images count changes). This trigger monitors a specific document for structural changes like: - Headers added or removed - Footers added or removed - Tables added or removed - Images (inline objects) added or removed - Positioned objects added or removed - Footnotes added or removed
Configuración
document_idstringObligatorioThe unique identifier for the Google Docs document to monitor. You can provide either a document ID or a full Google Docs URL.
intervalnumberPeriodic Interval to Check for Updates & Send a Trigger in Minutes
Payload del evento
changesobject[]ObligatorioList of structural changes detected
current_snapshotobjectObligatorioCurrent structural snapshot of the document
document_idstringObligatorioID of the document that changed
document_titlestringObligatorioTitle of the document
document_urlstringObligatorioURL to view the document
previous_snapshotobjectSnapshot of document structural elements.
Instrucciones
**Instructions for Setting Up the Trigger:** - This trigger monitors a specific Google Doc for structural changes. - Provide the document ID or URL of the document you want to monitor. - The trigger will detect changes such as: - Headers or footers being added or removed - Tables being added or removed - Images (inline objects) being added or removed - Positioned objects being added or removed - Footnotes being added or removed - The trigger compares the current document structure with the previous snapshot to detect changes. - On the first run, it will capture the initial structure without triggering an event.
Document UpdatedGOOGLEDOCS_DOCUMENT_UPDATED_TRIGGERTriggerTriggers when an existing Google Doc is updated or modified.
This trigger monitors Google Docs and fires when documents are updated.
GOOGLEDOCS_DOCUMENT_UPDATED_TRIGGERTriggerTriggers when an existing Google Doc is updated or modified. This trigger monitors Google Docs and fires when documents are updated.
Configuración
intervalnumberPeriodic Interval to Check for Updates & Send a Trigger in Minutes
max_resultsintegerMaximum number of documents to check in each poll (1-1000)
querystringOptional search query to filter documents. Leave empty to monitor all documents.
Payload del evento
documentobjectObligatorioThe updated Google document
event_typestringType of event that occurred
Instrucciones
**Instructions for Setting Up the Trigger:** - This trigger monitors Google Docs for updates to existing documents. - You can optionally provide a search query to filter which documents to monitor. - The trigger will detect modifications based on the document's modifiedTime. - Use max_results to control how many documents to check in each poll (default: 10).
Document Word Count ThresholdGOOGLEDOCS_DOCUMENT_WORD_COUNT_THRESHOLD_TRIGGERTriggerTriggers when a Google Doc's word/character count crosses a user-defined threshold.
This trigger monitors a specific Google Doc and fires when its word or character count
becomes greater than or equal to the configured threshold value.
GOOGLEDOCS_DOCUMENT_WORD_COUNT_THRESHOLD_TRIGGERTriggerTriggers when a Google Doc's word/character count crosses a user-defined threshold. This trigger monitors a specific Google Doc and fires when its word or character count becomes greater than or equal to the configured threshold value.
Configuración
document_idstringObligatorioThe unique identifier for the Google Document to monitor. Accepts either a document ID (typically a 44-character alphanumeric string) or a full Google Docs URL. When a URL is provided, the document ID will be automatically extracted.
intervalnumberPeriodic Interval to Check for Updates & Send a Trigger in Minutes
use_character_countbooleanIf True, use character count instead of word count for the threshold comparison.
word_count_thresholdintegerThe word count threshold. Trigger fires when the document's word count becomes greater than or equal to this value.
Payload del evento
current_character_countintegerObligatorioThe current character count of the document
current_word_countintegerObligatorioThe current word count of the document
document_idstringObligatorioThe unique identifier of the document
document_titlestringObligatorioThe title of the document
event_typestringType of event that occurred
previous_character_countintegerObligatorioThe previous character count of the document
previous_word_countintegerObligatorioThe previous word count of the document
thresholdintegerObligatorioThe configured threshold value
threshold_typestringObligatorioWhether the threshold is for 'words' or 'characters'
web_view_linkstringObligatorioLink to view the document in browser
Instrucciones
**Instructions for Setting Up the Trigger:** - This trigger monitors a specific Google Doc's word or character count. - Provide the document ID or URL of the document to monitor. - Set a threshold value (e.g., 1000 words or characters). - The trigger fires when the count becomes >= the threshold for the first time. - By default, it monitors word count. Set use_character_count=True to monitor character count instead. - The trigger will only fire once when the threshold is first crossed, not on subsequent polls. - Examples: - Monitor when a document reaches 1000 words - Monitor when a document reaches 5000 characters
New Folder Created in RootGOOGLEDOCS_FOLDER_CREATED_TRIGGERTriggerTriggers when a new folder is created in the root folder of Google Drive.
This trigger monitors Google Drive and fires when new folders are detected in the root directory.
GOOGLEDOCS_FOLDER_CREATED_TRIGGERTriggerTriggers when a new folder is created in the root folder of Google Drive. This trigger monitors Google Drive and fires when new folders are detected in the root directory.
Configuración
intervalnumberPeriodic Interval to Check for Updates & Send a Trigger in Minutes
max_resultsintegerMaximum number of folders to check in each poll (1-1000)
Payload del evento
event_typestringType of event that occurred
folderobjectObligatorioThe newly created Google Drive folder
Instrucciones
**Instructions for Setting Up the Trigger:** - This trigger monitors Google Drive for newly created folders in the root directory. - Only folders created directly in the root folder (My Drive) will trigger this event. - The trigger will detect folders created after the trigger is set up. - Use max_results to control how many folders to check in each poll (default: 10). - Folders in trash are automatically excluded from monitoring.
Keyword Detected in DocumentGOOGLEDOCS_KEYWORD_DETECTED_TRIGGERTriggerTriggers when a specific keyword or phrase first appears in a Google Doc.
This trigger monitors a Google Doc and fires once when the specified keyword is detected.
After the keyword is found, the trigger will not fire again until reset.
GOOGLEDOCS_KEYWORD_DETECTED_TRIGGERTriggerTriggers when a specific keyword or phrase first appears in a Google Doc. This trigger monitors a Google Doc and fires once when the specified keyword is detected. After the keyword is found, the trigger will not fire again until reset.
Configuración
case_sensitivebooleanWhether the keyword search should be case-sensitive. Set to False to ignore case when matching.
document_idstringObligatorioThe unique identifier for the Google Document to monitor. Accepts either a document ID (typically a 44-character alphanumeric string) or a full Google Docs URL.
include_footersbooleanWhether to include footer text when searching for the keyword.
include_footnotesbooleanWhether to include footnote text when searching for the keyword.
include_headersbooleanWhether to include header text when searching for the keyword.
intervalnumberPeriodic Interval to Check for Updates & Send a Trigger in Minutes
keywordstringObligatorioThe keyword or phrase to detect in the document (case-sensitive). The trigger will fire when this text first appears anywhere in the document's plain text.
Payload del evento
document_idstringObligatorioThe ID of the document
document_titlestringObligatorioThe title of the document
document_urlstringObligatorioWeb view link to the document in Google Docs
event_typestringType of event that occurred
keywordstringObligatorioThe keyword that was detected
plain_text_excerptstringObligatorioA short excerpt of the document text around the keyword (max 500 chars)
Instrucciones
**Instructions for Setting Up the Trigger:** - This trigger monitors a specific Google Doc for a keyword or phrase. - Provide the document ID or full URL of the document to monitor. - Specify the keyword or phrase to detect (e.g., "APPROVED", "FINAL VERSION"). - The trigger fires ONCE when the keyword is first detected in the document. - After the keyword is found, the trigger will not fire again for subsequent polls. - You can optionally include headers, footers, and footnotes in the search. - By default, the search is case-sensitive. Set case_sensitive to False to ignore case. **Use Cases:** - Detect when a document status changes (e.g., "APPROVED" appears) - Monitor for specific approval keywords in contracts or proposals - Track when documents reach a certain state (e.g., "FINAL", "COMPLETE")
New Document AddedGOOGLEDOCS_PAGE_ADDED_TRIGGERTriggerTriggers when a new Google Doc is added/created.
This trigger monitors Google Docs and fires when new documents are detected.
GOOGLEDOCS_PAGE_ADDED_TRIGGERTriggerTriggers when a new Google Doc is added/created. This trigger monitors Google Docs and fires when new documents are detected.
Configuración
intervalnumberPeriodic Interval to Check for Updates & Send a Trigger in Minutes
max_resultsintegerMaximum number of documents to check in each poll (1-1000)
querystringOptional search query to filter documents. Can search by name (name contains 'report'), full text content (fullText contains 'important'), or use complex queries with operators like 'and', 'or', 'not'. Leave empty to monitor all documents.
Payload del evento
documentobjectObligatorioThe newly added Google document
event_typestringType of event that occurred
Instrucciones
**Instructions for Setting Up the Trigger:** - This trigger monitors Google Docs for newly created documents. - You can optionally provide a search query to filter which documents to monitor. - The trigger will detect documents created after the trigger is set up. - Use max_results to control how many documents to check in each poll (default: 10). - Examples of search queries: - name contains 'report' - Monitor documents with 'report' in the name - fullText contains 'important' - Monitor documents containing the word 'important' - Leave query empty to monitor all new documents