NAiOS IconNAiOS Logo
Volver al catálogo

Google Docs

googledocs

Google Docs is a cloud-based word processor with real-time collaboration, version history, and integration with other Google Workspace apps

Acciones
32
Triggers
10
Autenticación
OAuth gestionado
Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

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ón

Tool 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

  • titlestring

    The title for the new copied document. If not provided, the title will be 'Copy of [original document's title]'.

  • document_idstringObligatorio

    The ID of the Google Document to be copied.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create a documentGOOGLEDOCS_CREATE_DOCUMENTAcción

Creates 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

  • textstringObligatorio

    Initial text content to insert at the beginning of the new document.

  • titlestringObligatorio

    Title for the new document, used as its filename in Google Drive.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Document MarkdownGOOGLEDOCS_CREATE_DOCUMENT_MARKDOWNAcción

Creates a new google docs document, optionally initializing it with a title and content provided as markdown text.

Parámetros de entrada

  • titlestringObligatorio

    The title for the new Google Docs document.

  • markdown_textstringObligatorio

    The 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

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create FooterGOOGLEDOCS_CREATE_FOOTERAcción

Tool 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

  • typestringObligatorioenum

    The type of footer to create.

    HEADER_FOOTER_TYPE_UNSPECIFIEDDEFAULT
  • document_idstringObligatorio

    The ID of the document to create the footer in.

  • section_break_locationobject

    The 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

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create FootnoteGOOGLEDOCS_CREATE_FOOTNOTEAcción

Tool 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

  • locationobject

    Inserts 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.

  • documentIdstringObligatorio

    The ID of the document to create the footnote in.

  • endOfSegmentLocationobject

    Inserts the footnote reference at the end of the document body. The segmentId within this EndOfSegmentLocation object must be empty.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create HeaderGOOGLEDOCS_CREATE_HEADERAcción

Tool 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

  • documentIdstringObligatorio

    The ID of the document to create the header in.

  • createHeaderobjectObligatorio

    The details of the header to create.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Named RangeGOOGLEDOCS_CREATE_NAMED_RANGEAcción

Tool 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

  • namestringObligatorio

    The name for the new named range. Must be 1-256 characters.

  • documentIdstringObligatorio

    The ID of the document where the named range will be created.

  • rangeEndIndexintegerObligatorio

    The zero-based end index of the range.

  • rangeSegmentIdstring

    Optional. The ID of the header, footer, or footnote. Empty for document body.

  • rangeStartIndexintegerObligatorio

    The zero-based start index of the range.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Paragraph BulletsGOOGLEDOCS_CREATE_PARAGRAPH_BULLETSAcción

Tool 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_idstringObligatorio

    The ID of the document to update.

  • createParagraphBulletsobjectObligatorio

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete Content Range in DocumentGOOGLEDOCS_DELETE_CONTENT_RANGEAcción

Tool 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

  • rangeobjectObligatorio

    The 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_idstringObligatorio

    The 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

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete FooterGOOGLEDOCS_DELETE_FOOTERAcción

Tool 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_idstring

    The tab that contains the footer to delete. When omitted, the request is applied to the first tab.

  • footer_idstringObligatorio

    The 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_idstringObligatorio

    The ID of the document to delete the footer from.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete HeaderGOOGLEDOCS_DELETE_HEADERAcción

Deletes 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_idstring

    The tab containing the header to delete. When omitted, the request is applied to the first tab.

  • header_idstringObligatorio

    The 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_idstringObligatorio

    The ID of the document from which to delete the header.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete Named RangeGOOGLEDOCS_DELETE_NAMED_RANGEAcción

Tool 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_idstringObligatorio

    The ID of the document.

  • deleteNamedRangeobjectObligatorio

    Specifies the named range to delete.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete Paragraph BulletsGOOGLEDOCS_DELETE_PARAGRAPH_BULLETSAcción

Tool 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

  • rangeobjectObligatorio

    The 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_idstring

    The 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_idstringObligatorio

    The ID of the document to update.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete TableGOOGLEDOCS_DELETE_TABLEAcción

Tool 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_idstring

    The 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_idstring

    The 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_idstringObligatorio

    The ID of the Google Document from which the table will be deleted.

  • table_end_indexintegerObligatorio

    The end index (UTF-16 code unit) of the table's range to be deleted.

  • table_start_indexintegerObligatorio

    The start index (UTF-16 code unit) of the table's range to be deleted.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete Table ColumnGOOGLEDOCS_DELETE_TABLE_COLUMNAcción

Tool 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[]Obligatorio

    A list of requests to be applied to the document.

  • document_idstringObligatorio

    The ID of the document to delete the table column from.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete Table RowGOOGLEDOCS_DELETE_TABLE_ROWAcción

Tool 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

  • documentIdstringObligatorio

    The ID of the document.

  • tableCellLocationobjectObligatorio

    The reference table cell location from which the row will be deleted.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Charts from SpreadsheetGOOGLEDOCS_GET_CHARTS_FROM_SPREADSHEETAcción

Tool 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_idstringObligatorio

    The ID of the Google Sheets spreadsheet from which to retrieve charts.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get document by idGOOGLEDOCS_GET_DOCUMENT_BY_IDAcción

Retrieves an existing google document by its id; will error if the document is not found.

Parámetros de entrada

  • idstringObligatorio

    The 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

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Insert Inline ImageGOOGLEDOCS_INSERT_INLINE_IMAGEAcción

Tool 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

  • uristringObligatorio

    The 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.

  • locationobjectObligatorio

    The location in the document to insert the image.

  • documentIdstringObligatorio

    The ID of the document to update.

  • objectSizeobject

    The size of the image. If not specified, the image is rendered at its intrinsic size.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Insert Page BreakGOOGLEDOCS_INSERT_PAGE_BREAKAcción

Tool 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

  • documentIdstringObligatorio

    The ID of the document to update.

  • insertPageBreakobjectObligatorio

    The details for the insertPageBreak request.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Insert Table in Google DocGOOGLEDOCS_INSERT_TABLE_ACTIONAcción

Tool 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

  • rowsintegerObligatorio

    The number of rows in the table.

  • indexinteger

    The 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.

  • tabIdstring

    The tab that the location is in. When omitted, the request is applied to the first tab.

  • columnsintegerObligatorio

    The number of columns in the table.

  • segmentIdstring

    The ID of the header, footer or footnote the location is in. An empty segment ID signifies the document's body.

  • documentIdstringObligatorio

    The ID of the document to update.

  • insertAtEndOfSegmentboolean

    If 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

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Insert Table ColumnGOOGLEDOCS_INSERT_TABLE_COLUMNAcción

Tool 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[]Obligatorio

    A list of requests to be applied to the document. For this action, it will contain one InsertTableColumnRequest.

  • document_idstringObligatorio

    The ID of the document to update.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Insert Text into DocumentGOOGLEDOCS_INSERT_TEXT_ACTIONAcción

Tool 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_idstringObligatorio

    The ID of the document to insert text into.

  • text_to_insertstringObligatorio

    The string of text to insert.

  • insertion_indexintegerObligatorio

    The 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

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Charts from SpreadsheetGOOGLEDOCS_LIST_SPREADSHEET_CHARTS_ACTIONAcción

Tool 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_maskstring

    Field mask to specify which parts of the spreadsheet and chart resources to include. Example: '''sheets(properties(sheetId,title),charts(chartId,spec(title,altText)))'''

  • spreadsheet_idstringObligatorio

    The ID of the Google Sheets spreadsheet.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Replace All Text in DocumentGOOGLEDOCS_REPLACE_ALL_TEXTAcción

Tool 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_textstringObligatorio

    The text to search for in the document.

  • match_casebooleanObligatorio

    Indicates whether the search should be case sensitive.

  • document_idstringObligatorio

    The ID of the document to update.

  • replace_textstringObligatorio

    The text that will replace the matched text.

  • search_by_regexboolean

    Optional. If True, the find_text is treated as a regular expression. Defaults to False.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Replace Image in DocumentGOOGLEDOCS_REPLACE_IMAGEAcción

Tool 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_idstringObligatorio

    The ID of the document containing the image to replace.

  • replace_imageobjectObligatorio

    The details of the image replacement request.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Search DocumentsGOOGLEDOCS_SEARCH_DOCUMENTSAcción

Search for google documents using various filters including name, content, date ranges, and more.

Parámetros de entrada

  • querystring

    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 get all documents.

  • order_bystring

    Order results by field. Common options: 'modifiedTime desc', 'modifiedTime asc', 'name', 'createdTime desc'

  • max_resultsinteger

    Maximum number of documents to return (1-1000). Defaults to 10.

  • starred_onlyboolean

    Whether to return only starred documents. Defaults to False.

  • created_afterstring

    Return documents created after this date. Use RFC 3339 format like '2024-01-01T00:00:00Z'.

  • modified_afterstring

    Return documents modified after this date. Use RFC 3339 format like '2024-01-01T00:00:00Z'.

  • shared_with_meboolean

    Whether to return only documents shared with the current user. Defaults to False.

  • include_trashedboolean

    Whether to include documents in trash. Defaults to False.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Unmerge Table CellsGOOGLEDOCS_UNMERGE_TABLE_CELLSAcción

Tool 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

  • tableRangeobjectObligatorio

    The table range specifying which cells of the table to unmerge.

  • document_idstringObligatorio

    The ID of the document to unmerge table cells in.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Update Document MarkdownGOOGLEDOCS_UPDATE_DOCUMENT_MARKDOWNAcción

Replaces the entire content of an existing google docs document with new markdown text; requires edit permissions for the document.

Parámetros de entrada

  • document_idstringObligatorio

    Identifier of the Google Docs document to update, found in the document's URL.

  • new_markdown_textstringObligatorio

    Markdown content that will replace the document's entire existing content. Supports standard Markdown features.

Parámetros de salida

  • dataobject

    A 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.

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

  • document_idstring

    The unique identifier of the Google Docs document that was successfully updated.

Update Document StyleGOOGLEDOCS_UPDATE_DOCUMENT_STYLEAcción

Tool 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

  • fieldsstringObligatorio

    A comma-separated list of fields to update. Use '*' to update all fields in document_style. For example: "pageSize,marginTop,marginBottom".

  • tab_idstring

    The ID of the tab to update the style for. If not provided, the first tab is used.

  • document_idstringObligatorio

    The ID of the document to update.

  • document_styleobjectObligatorio

    The DocumentStyle object with the new style settings.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Update existing documentGOOGLEDOCS_UPDATE_EXISTING_DOCUMENTAcción

Applies programmatic edits, such as text insertion, deletion, or formatting, to a specified google doc using the `batchupdate` api method.

Parámetros de entrada

  • editDocsobject[]Obligatorio

    Requests 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_idstringObligatorio

    The unique identifier of the Google Docs document to be updated.

Parámetros de salida

  • dataobject

    The full response data from the Google Docs API `batchUpdate` request, containing details about the applied edits and the state of the document.

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

  • document_idstring

    The unique identifier of the Google Docs document that was updated.

Update Table Row StyleGOOGLEDOCS_UPDATE_TABLE_ROW_STYLEAcción

Tool 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

  • documentIdstringObligatorio

    The ID of the document to update.

  • updateTableRowStyleobjectObligatorio

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether 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_TRIGGERTrigger

Triggers 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

  • intervalnumber

    Periodic Interval to Check for Updates & Send a Trigger in Minutes

  • max_resultsinteger

    Maximum number of documents to check in each poll (1-1000)

  • querystring

    Optional 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

  • documentobjectObligatorio

    The newly created Google document

  • event_typestring

    Type 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_TRIGGERTrigger

Triggers when an existing Google Doc is deleted (moved to trash). This trigger monitors Google Docs and fires when documents are trashed.

Configuración

  • intervalnumber

    Periodic Interval to Check for Updates & Send a Trigger in Minutes

  • max_resultsinteger

    Maximum number of documents to check in each poll (1-1000)

  • querystring

    Optional search query to filter documents. Leave empty to monitor all documents for deletion.

Payload del evento

  • documentobjectObligatorio

    The deleted Google document

  • event_typestring

    Type 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_TRIGGERTrigger

Triggers 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_sensitiveboolean

    Whether the placeholder pattern matching should be case-sensitive.

  • document_idstringObligatorio

    The 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_footersboolean

    Whether to include footer text when checking for placeholders.

  • include_footnotesboolean

    Whether to include footnote text when checking for placeholders.

  • include_headersboolean

    Whether to include header text when checking for placeholders.

  • intervalnumber

    Periodic Interval to Check for Updates & Send a Trigger in Minutes

  • placeholder_patternstringObligatorio

    The 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_regexboolean

    If true, treat placeholder_pattern as a regex pattern. If false, treat it as a literal string.

Payload del evento

  • documentobjectObligatorio

    The document that was filled in

  • event_typestring

    Type of event that occurred

  • placeholder_patternstringObligatorio

    The 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_TRIGGERTrigger

Triggers 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_drivesboolean

    Whether to include documents from shared drives you have access to. Defaults to True.

  • include_trashedboolean

    Whether to include documents in trash. Defaults to False.

  • intervalnumber

    Periodic Interval to Check for Updates & Send a Trigger in Minutes

  • max_resultsinteger

    Maximum number of documents to check in each poll (1-100)

  • querystringObligatorio

    Search 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_meboolean

    Whether to return only documents shared with the current user. Defaults to False.

  • starred_onlyboolean

    Whether to return only starred documents. Defaults to False.

Payload del evento

  • documentobjectObligatorio

    The document that was created or updated

  • event_typestringObligatorio

    Type 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_TRIGGERTrigger

Triggers 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_idstringObligatorio

    The unique identifier for the Google Docs document to monitor. You can provide either a document ID or a full Google Docs URL.

  • intervalnumber

    Periodic Interval to Check for Updates & Send a Trigger in Minutes

Payload del evento

  • changesobject[]Obligatorio

    List of structural changes detected

  • current_snapshotobjectObligatorio

    Current structural snapshot of the document

  • document_idstringObligatorio

    ID of the document that changed

  • document_titlestringObligatorio

    Title of the document

  • document_urlstringObligatorio

    URL to view the document

  • previous_snapshotobject

    Snapshot 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_TRIGGERTrigger

Triggers when an existing Google Doc is updated or modified. This trigger monitors Google Docs and fires when documents are updated.

Configuración

  • intervalnumber

    Periodic Interval to Check for Updates & Send a Trigger in Minutes

  • max_resultsinteger

    Maximum number of documents to check in each poll (1-1000)

  • querystring

    Optional search query to filter documents. Leave empty to monitor all documents.

Payload del evento

  • documentobjectObligatorio

    The updated Google document

  • event_typestring

    Type 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_TRIGGERTrigger

Triggers 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_idstringObligatorio

    The 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.

  • intervalnumber

    Periodic Interval to Check for Updates & Send a Trigger in Minutes

  • use_character_countboolean

    If True, use character count instead of word count for the threshold comparison.

  • word_count_thresholdinteger

    The word count threshold. Trigger fires when the document's word count becomes greater than or equal to this value.

Payload del evento

  • current_character_countintegerObligatorio

    The current character count of the document

  • current_word_countintegerObligatorio

    The current word count of the document

  • document_idstringObligatorio

    The unique identifier of the document

  • document_titlestringObligatorio

    The title of the document

  • event_typestring

    Type of event that occurred

  • previous_character_countintegerObligatorio

    The previous character count of the document

  • previous_word_countintegerObligatorio

    The previous word count of the document

  • thresholdintegerObligatorio

    The configured threshold value

  • threshold_typestringObligatorio

    Whether the threshold is for 'words' or 'characters'

  • web_view_linkstringObligatorio

    Link 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_TRIGGERTrigger

Triggers 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

  • intervalnumber

    Periodic Interval to Check for Updates & Send a Trigger in Minutes

  • max_resultsinteger

    Maximum number of folders to check in each poll (1-1000)

Payload del evento

  • event_typestring

    Type of event that occurred

  • folderobjectObligatorio

    The 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_TRIGGERTrigger

Triggers 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_sensitiveboolean

    Whether the keyword search should be case-sensitive. Set to False to ignore case when matching.

  • document_idstringObligatorio

    The 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_footersboolean

    Whether to include footer text when searching for the keyword.

  • include_footnotesboolean

    Whether to include footnote text when searching for the keyword.

  • include_headersboolean

    Whether to include header text when searching for the keyword.

  • intervalnumber

    Periodic Interval to Check for Updates & Send a Trigger in Minutes

  • keywordstringObligatorio

    The 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_idstringObligatorio

    The ID of the document

  • document_titlestringObligatorio

    The title of the document

  • document_urlstringObligatorio

    Web view link to the document in Google Docs

  • event_typestring

    Type of event that occurred

  • keywordstringObligatorio

    The keyword that was detected

  • plain_text_excerptstringObligatorio

    A 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_TRIGGERTrigger

Triggers when a new Google Doc is added/created. This trigger monitors Google Docs and fires when new documents are detected.

Configuración

  • intervalnumber

    Periodic Interval to Check for Updates & Send a Trigger in Minutes

  • max_resultsinteger

    Maximum number of documents to check in each poll (1-1000)

  • querystring

    Optional 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

  • documentobjectObligatorio

    The newly added Google document

  • event_typestring

    Type 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