# Fiche connecteur Google Docs Catalogue Pipedream : connexion du compte et droits nécessaires. Les actions réellement utilisables sont vérifiées dans Bruno lors de la connexion. Les déclencheurs sont documentés à titre de référence et ne sont pas activés automatiquement dans Bruno. Les noms et données des exemples sont fictifs ; toute exécution reste soumise aux droits et aux validations du connecteur. ## Google Docs URL : https://get-bruno.com/features/connectors/google-docs Référence texte : https://get-bruno.com/features/connectors/google-docs/reference.txt Origine : Catalogue Pipedream Statut : Catalogue Pipedream — connexion à vérifier Catégories : Stockage de fichiers Description : Google Docs sert à créer, modifier, lire et mettre en forme des documents en ligne. Le service expose aussi des opérations de recherche, d’export et de gestion de contenu pour travailler sur un document existant ou en créer un nouveau. Authentification : OAuth Présentation : Google Docs sert à créer, modifier, lire et mettre en forme des documents en ligne. Le service expose aussi des opérations de recherche, d’export et de gestion de contenu pour travailler sur un document existant ou en créer un nouveau. Usage : Retrouver un compte-rendu puis y ajouter une note de suivi Exemple de demande : Je cherche le document Compte-rendu client Atelier Martin, puis j’ajoute la phrase Rendez-vous confirmé pour jeudi en fin de document. Résultat attendu : Un document ciblé est trouvé, puis une ligne ou un paragraphe est ajouté à la fin du texte du document. À préciser : Nom du document à retrouver ; Contenu exact à ajouter ; Précision si la note doit aller dans un onglet particulier Nature : Exemple sous réserve de connexion et de droits Sources de l’exemple : https://pipedream.com/apps/google-docs/actions/find-document ; https://pipedream.com/apps/google-docs/actions/append-text Usage : Créer un modèle de compte rendu à partir d’un document type Exemple de demande : Je veux créer un nouveau document Compte-rendu client à partir du modèle CR standard avec les champs remplacés pour Atelier Martin. Résultat attendu : Un nouveau Google Doc est créé à partir du modèle, avec les substitutions de variables appliquées dans le contenu copié. À préciser : Nom ou identifiant du modèle ; Paires valeur de remplacement pour les variables du modèle ; Nom souhaité pour le nouveau document Nature : Exemple sous réserve de connexion et de droits Sources de l’exemple : https://pipedream.com/apps/google-docs/actions/find-document ; https://pipedream.com/apps/google-docs/actions/create-document-from-template Usage : Exporter un document de suivi au format PDF Exemple de demande : Je veux exporter le document Dossier projet Atelier Martin en PDF pour l’archiver. Résultat attendu : Le document est converti dans le format demandé et un fichier exporté est renvoyé dans l’espace temporaire du workflow. À préciser : Nom du document à exporter ; Format de sortie souhaité ; Éventuel onglet cible si le document est multi-onglets Nature : Exemple sous réserve de connexion et de droits Sources de l’exemple : https://pipedream.com/apps/google-docs/actions/find-document ; https://pipedream.com/apps/google-docs/actions/export-document Limites propres au service : Aucune action native n’est déclarée pour renommer, réordonner ou supprimer un onglet existant. Les documents à plusieurs onglets demandent de préciser l’onglet cible pour certaines opérations; sinon la première feuille est utilisée selon l’outil. L’export renvoie un chemin de fichier temporaire local, pas un lien de téléchargement partageable. La mise en forme agit sur des plages de texte ou de paragraphes et peut toucher tout ce que la plage couvre. Vocabulaire français : Ajouter du texte — Ajoute du texte à la fin d’un document Google Docs, ou au début si l’option d’ajout en tête est activée. Utile pour compléter un document existant sans choisir une position exacte. (https://pipedream.com/apps/google-docs/actions/append-text) Vocabulaire français : Créer un document — Crée un nouveau Google Doc avec un contenu initial facultatif rendu en Markdown. Peut aussi placer le document dans un dossier Drive précis. (https://pipedream.com/apps/google-docs/actions/create-document) Vocabulaire français : Ajouter une image au document — Ajoute une image inline à la fin d’un document. (https://pipedream.com/apps/google-docs/actions/append-image) Vocabulaire français : Appliquer des puces — Transforme des paragraphes en liste à puces ou numérotée dans un Google Doc. (https://pipedream.com/apps/google-docs/actions/apply-bullets) Vocabulaire français : Créer un document à partir d’un modèle — Crée un nouveau Google Doc en copiant un modèle et en remplaçant les jetons de type {{placeholder}} par des valeurs fournies. (https://pipedream.com/apps/google-docs/actions/create-document-from-template) Vocabulaire français : Créer un onglet — Ajoute un nouvel onglet à un Google Doc existant et renvoie son identifiant d’onglet. (https://pipedream.com/apps/google-docs/actions/create-tab) Vocabulaire français : Supprimer un tableau — Supprime un tableau entier, avec sa structure et son contenu, d’un document. (https://pipedream.com/apps/google-docs/actions/delete-table) Vocabulaire français : Exporter un document — Exporte un Google Doc vers un fichier au format PDF, DOCX, TXT, HTML ou ODT. (https://pipedream.com/apps/google-docs/actions/export-document) Vocabulaire français : Trouver un document — Recherche des Google Docs par nom ou par contenu complet afin de récupérer leur identifiant. (https://pipedream.com/apps/google-docs/actions/find-document) Vocabulaire français : Mettre en forme un paragraphe — Applique une mise en forme de paragraphe comme le style de titre, l’alignement, l’interligne ou les retraits. (https://pipedream.com/apps/google-docs/actions/format-paragraph) Vocabulaire français : Mettre en forme une cellule de tableau — Définit l’arrière-plan, les bordures, le remplissage ou l’alignement vertical de cellules de tableau. (https://pipedream.com/apps/google-docs/actions/format-table-cell) Vocabulaire français : Mettre en forme du texte — Applique une mise en forme de caractères comme le gras, l’italique, le soulignement, la police, la taille, la couleur ou un lien. (https://pipedream.com/apps/google-docs/actions/format-text) Vocabulaire français : Obtenir le document — Récupère le texte complet et la structure d’un Google Doc à partir de son identifiant. (https://pipedream.com/apps/google-docs/actions/get-document) Vocabulaire français : Obtenir le profil — Récupère le nom d’affichage et l’adresse e-mail du compte Google authentifié. (https://pipedream.com/apps/google-docs/actions/get-profile) Vocabulaire français : Obtenir le contenu d’un onglet — Récupère le contenu d’un onglet précis d’un document. (https://pipedream.com/apps/google-docs/actions/get-tab-content) Vocabulaire français : Insérer une image — Insère une image inline dans un Google Doc à partir d’une URL d’image publiquement accessible. (https://pipedream.com/apps/google-docs/actions/insert-image) Vocabulaire français : Insérer un saut de page — Insère un saut de page au début, à la fin ou à un index de caractère précis dans un document. (https://pipedream.com/apps/google-docs/actions/insert-page-break) Vocabulaire français : Insérer un tableau — Insère un tableau vide avec le nombre de lignes et de colonnes demandé. (https://pipedream.com/apps/google-docs/actions/insert-table) Vocabulaire français : Insérer du texte — Insère du texte au début, à la fin ou à une position précise dans un document. (https://pipedream.com/apps/google-docs/actions/insert-text) Vocabulaire français : Lister les commentaires — Liste les commentaires d’un Google Doc, avec leurs auteurs, contenus, ancrages et réponses. (https://pipedream.com/apps/google-docs/actions/list-comments) Vocabulaire français : Lister les onglets — Liste les onglets d’un Google Doc avec leur identifiant, leur titre, leur position et leur niveau d’imbrication. (https://pipedream.com/apps/google-docs/actions/list-tabs) Vocabulaire français : Retirer les puces — Retire les puces ou la numérotation des paragraphes sélectionnés sans supprimer le texte. (https://pipedream.com/apps/google-docs/actions/remove-bullets) Vocabulaire français : Remplacer une image — Remplace une image inline existante par une autre image en conservant sa position et sa taille. (https://pipedream.com/apps/google-docs/actions/replace-image) Vocabulaire français : Remplacer du texte — Recherche et remplace toutes les occurrences d’une chaîne dans un Google Doc. (https://pipedream.com/apps/google-docs/actions/replace-text) Vocabulaire français : Définir la largeur d’une colonne de tableau — Ajuste la largeur d’une ou de plusieurs colonnes de tableau dans un Google Doc. (https://pipedream.com/apps/google-docs/actions/set-table-column-width) Vocabulaire français : Écrire un tableau — Crée un tableau et le remplit en une seule opération à partir d’un tableau de données complet. (https://pipedream.com/apps/google-docs/actions/write-table) Vocabulaire français : Nouveau document créé — Déclenche un événement lorsqu’un nouveau document est créé dans Google Docs. (https://pipedream.com/apps/google-docs/triggers/new-document-created) Vocabulaire français : Nouveau document ou document mis à jour — Déclenche un événement lorsqu’un document est créé ou mis à jour dans Google Docs. (https://pipedream.com/apps/google-docs/triggers/new-or-updated-document) - action : Append Text — Append text to the end of a Google Doc, or to the very beginning when Append at Beginning is set. Use when adding a line or paragraph to an existing document without choosing an exact character position. Use Insert Text instead when the text must land at a specific index, or when inserting into a particular tab. Use Find Document to resolve a document's name to its ID. See the documentation (https://pipedream.com/apps/google-docs/actions/append-text) - action : Create Document — Create a new Google Doc with an optional body. The body is rendered as Markdown, so you can include headings ( # Title ), bold/italic, bullet/numbered lists, links, and code. Optionally place the doc in a specific Drive folder. Returns {documentId, title, url} . See the documentation (https://pipedream.com/apps/google-docs/actions/create-document) - action : Append Image to Document — Appends an image to the end of a document. See the documentation (https://pipedream.com/apps/google-docs/actions/append-image) - action : Apply Bullets — Turn paragraphs into a bulleted or numbered list in a Google Doc. Locate the paragraphs with Find Text , or pass an explicit Start Index and End Index . Every paragraph the range touches becomes a list item. Use Remove Bullets to undo. Use Find Document to resolve a document's name to its ID. See the documentation (https://pipedream.com/apps/google-docs/actions/apply-bullets) - action : Create Document From Template — Create a new Google Doc by copying a template document and substituting {{placeholder}} tokens with values. Use Find Document to resolve the template's name to its ID. Returns {documentId, title, url} . See the documentation (https://pipedream.com/apps/google-docs/actions/create-document-from-template) - action : Create Tab — Add a new tab to an existing Google Doc and return its Tab ID. The tab is created empty; pass the returned tabId as Tab ID to Insert Text , Write Table , Insert Image , Insert Table or Insert Page Break to fill it, because an edit sent without a Tab ID always goes to the document's first tab. Added at the end of the document's tabs unless Position is set, and nested under another tab when Parent Tab ID is set. Use List Tabs to see the tabs a document already has, or Find Document to resolve a document's name to its ID. Position applies only to the tab being created: this tool set cannot rename, reorder or delete a tab that already exists — say so plainly rather than attempting a workaround such as recreating the tab. See the documentation (https://pipedream.com/apps/google-docs/actions/create-tab) - action : Delete Table — Remove an entire table, structure and contents, from the document. Use this to clear a table completely, including an empty table left behind after its text was removed. Set Table Number to pick which table to remove (1 = first top-level table in the document, in reading order; a table nested inside another table's cell doesn't count separately). Use Get Document first if you need to confirm how many tables exist. This also works on a table linked to a Google Sheet, since removal is treated as ordinary content deletion. Use Find Document to resolve a document's name to its ID. In a multi-tab document, set Tab ID to choose which tab to delete from — without it the first tab's tables are the ones counted and removed; use List Tabs to get the IDs. See the documentation (https://pipedream.com/apps/google-docs/actions/delete-table) - action : Export Document — Export a Google Doc to a file in PDF, DOCX, TXT, HTML, or ODT format. Use when asked to export, download, convert, or 'save as' a doc in one of those formats. Use Find Document to resolve a document's name to its ID. Returns {filePath, filename, mimeType} , where filePath is the exported file in the workflow's temporary storage - it is a local path, not a shareable download link. See the documentation (https://pipedream.com/apps/google-docs/actions/export-document) - action : Find Document — Search for Google Docs by name or full-text content. Returns a list of {id, name, url, modifiedTime} . Use this first to resolve a document's name to its ID, then pass the id to Get Document , Export Document , or any of the insert/replace tools. See the documentation (https://pipedream.com/apps/google-docs/actions/find-document) - action : Format Paragraph — Apply paragraph formatting (heading style, alignment, line spacing, indentation) in a Google Doc. Locate the paragraph with Find Text , or pass an explicit Start Index and End Index . Google Docs applies paragraph styles to whole paragraphs, so every paragraph the range touches is restyled, not just the matched text. Use Find Document to resolve a document's name to its ID. See the documentation (https://pipedream.com/apps/google-docs/actions/format-paragraph) - action : Format Table Cell — Set the background, borders, padding, or vertical alignment of table cells in a Google Doc. Identify the table with Find Table Text , Table Index , or leave both blank when the document has only one table. Styles every cell unless Row Index and Column Index name a starting cell. Use Find Document to resolve a document's name to its ID. See the documentation (https://pipedream.com/apps/google-docs/actions/format-table-cell) - action : Format Text — Apply character formatting (bold, italic, underline, strikethrough, font, size, color, link) to text in a Google Doc. Locate the text with Find Text , or pass an explicit Start Index and End Index . Use Find Document to resolve a document's name to its ID. See the documentation (https://pipedream.com/apps/google-docs/actions/format-text) - action : Get Document — Get the full text content and structure of a Google Doc by its ID. Returns the document body plus a flattened textContent field for easy reading. A Google Doc can hold several tabs: body / textContent are always the first tab's content, and every tab is listed in tabs (with each tab's own textContent when the document has more than one), so a single call shows all of the document's text. Pass a Tab ID from that list to get one tab's full structure on its own. Optionally supply a fields mask to request a partial (e.g. metadata-only) response and skip the body-text enrichment. Use Find Document first to resolve a document's name to its ID. See the documentation (https://pipedream.com/apps/google-docs/actions/get-document) - action : Get Profile — Get the identity (display name and email) of the currently authenticated Google account. Use this to answer "who am I" questions and to attribute documents to the current user. Resolves via the Drive about.get endpoint (no extra OAuth scope required). See the documentation (https://pipedream.com/apps/google-docs/actions/get-profile) - action : Get Tab Content — Get the content of a tab in a document. See the documentation (https://pipedream.com/apps/google-docs/actions/get-tab-content) - action : Insert Image — Insert an inline image into a Google Doc from a publicly reachable image URL. The URL must be publicly accessible (Google fetches it server-side) and point to a PNG, JPEG, or GIF. Set Width and/or Height to control the display size. Docs preserves the image's aspect ratio, so setting one scales the other, and setting both may adjust one of them to fit (a 272x92 image asked for 150x51 PT comes back 150x50.7). An image already in the document cannot be resized in place - delete it and insert it again at the size you want. Use Find Document to resolve a document's name to its ID. In a multi-tab document, set Tab ID to choose which tab receives the image - without it the image goes into the document's first tab; use List Tabs to get the IDs. See the documentation (https://pipedream.com/apps/google-docs/actions/insert-image) - action : Insert Page Break — Insert a page break into a Google Doc at the beginning, end, or a specific character index. Use Find Document to resolve a document's name to its ID. In a multi-tab document, set Tab ID to choose which tab receives the page break — without it the break goes into the document's first tab; use List Tabs to get the IDs. See the documentation (https://pipedream.com/apps/google-docs/actions/insert-page-break) - action : Insert Table — Insert an empty table with the given number of rows and columns into a Google Doc. If you already have the data, use Write Table instead so you don't have to fill cells one by one. Use Find Document to resolve a document's name to its ID. In a multi-tab document, set Tab ID to choose which tab receives the table — without it the table goes into the document's first tab; use List Tabs to get the IDs. See the documentation (https://pipedream.com/apps/google-docs/actions/insert-table) - action : Insert Text — Insert text into a Google Doc at the beginning, end, or a specific character index. Use Find Document to resolve a document's name to its ID. To append text to the end of a doc, use position: end (the default). In a multi-tab document, set Tab ID to choose which tab receives the text — without it the text goes into the document's first tab; use List Tabs to get the IDs. See the documentation (https://pipedream.com/apps/google-docs/actions/insert-text) - action : List Comments — List the comments on a Google Doc, including each comment's author, plain text and HTML content, the document text it is anchored to, whether it is resolved, and its full reply thread. Comments on a Doc are served by the Drive API, so the document ID doubles as the file ID. Use Find Document first to resolve a document's name to its ID. See the documentation (https://pipedream.com/apps/google-docs/actions/list-comments) - action : List Tabs — List the tabs in a Google Doc — each tab's ID, title, position and nesting. A Google Doc can hold many tabs, and an omitted Tab ID means different things per operation: content writes ( Insert Text , Insert Table , Insert Image , Insert Page Break , Write Table , Delete Table ) go to the first tab; Replace Text replaces in every tab; the styling tools ( Format Text , Format Paragraph , Format Table Cell , Apply Bullets , Remove Bullets ) cover every tab when the target is located by Find Text, but only the first tab when given explicit indices. So call this first whenever the job names a tab ("add this to the Budget tab") or the document might have more than one. Returns {documentId, tabCount, tabs: [{tabId, title, index, nestingLevel, parentTabId}]} , in document order, with each parent followed by its nested child tabs. Pass a tabId from this list to Get Document to read one tab, or to Insert Text , Write Table , Insert Image , Insert Table , Insert Page Break , Delete Table or Replace Text to edit one. Use Find Document to resolve a document's name to its ID. This tool set can list tabs, add a tab ( Create Tab ) and read or write a named tab; it cannot rename, reorder or delete an existing tab — say so plainly rather than attempting a workaround. See the documentation (https://pipedream.com/apps/google-docs/actions/list-tabs) - action : Remove Bullets — Remove bullets or numbering from list paragraphs in a Google Doc, leaving the text in place. Locate the paragraphs with Find Text , or pass an explicit Start Index and End Index . Every paragraph the range touches is affected. Use Find Document to resolve a document's name to its ID. See the documentation (https://pipedream.com/apps/google-docs/actions/remove-bullets) - action : Replace Image — Replace an existing inline image in a Google Doc with a different image, keeping its position and size. The replacement URL must be publicly reachable (Google fetches it server-side) and point to a PNG, JPEG, or GIF. Use Find Document to resolve a document's name to its ID, then Get Document to list the document's images - each key of the response's inlineObjects map is an Image ID . Use Insert Image instead to add a new image rather than swap one out. Works on multi-tab documents: pass a Tab ID , or leave it blank and the tab holding the image is found automatically. See the documentation (https://pipedream.com/apps/google-docs/actions/replace-image) - action : Replace Text — Find and replace all occurrences of a string in a Google Doc. Set Replacement Format to markdown to convert Markdown in the replacement into native Google Docs formatting. Use Find Document to resolve a document's name to its ID. Returns the number of replacements made. In a multi-tab document the replacement runs across every tab by default; set Tab ID to confine it to one tab, using List Tabs to get the IDs. See the documentation (https://pipedream.com/apps/google-docs/actions/replace-text) - action : Set Table Column Width — Set the width of one or more table columns in a Google Doc. This is the only column property the Docs API exposes, so it does not style column text - use Format Table Cell for backgrounds, borders and padding. Identify the table with Find Table Text , Table Index , or leave both blank when the document has only one table. FIT_TO_CONTENT sizes each column to its content (estimated from the longest line in its cells, since the API has no auto-fit), FIXED_WIDTH applies Width to each selected column, and EVENLY_DISTRIBUTED resets them to equal widths. Use Find Document to resolve a document's name to its ID. See the documentation (https://pipedream.com/apps/google-docs/actions/set-table-column-width) - action : Write Table — Create a table and fill it with data in a single step. Provide the entire table (all rows and columns, including a header row) at once. Use this instead of inserting cells or text one at a time. The action places every value in the correct cell for you. Pass Table Data as a JSON array of arrays, one inner array per row, header row first when Has Header Row is set, e.g. [["Name","Role"],["Ada","Engineer"]] . Use Find Document to resolve a document's name to its ID, or Insert Table instead if you only need an empty grid to fill in later. In a multi-tab document, set Tab ID to choose which tab receives the table — without it the table goes into the document's first tab; use List Tabs to get the IDs. Note: a table written this way is always static — the Google Docs API does not create or preserve a live link to a Google Sheet, even when this replaces a Sheets-linked table. See the documentation (https://pipedream.com/apps/google-docs/actions/write-table) - trigger : New Document Created (Instant) — Emit new event when a new document is created in Google Docs. See the documentation (https://pipedream.com/apps/google-docs/triggers/new-document-created) - trigger : New or Updated Document (Instant) — Emit new event when a document is created or updated in Google Docs. See the documentation (https://pipedream.com/apps/google-docs/triggers/new-or-updated-document)