Read, write, and edit Google Docs documents in workflows.

The Google Docs integration lets Foqal read from and write to documents in your Google account. Workflows and AI agents can fetch the full contents (plain text plus the structured Google Docs JSON), create new documents, append or insert text anywhere — including inside tables and other structures — find and replace text, style text (bold, italic, underline, strikethrough, font, size, colors), insert tables, delete ranges of content, rename documents, and move documents to the trash. When connecting, you'll sign in with Google and approve access so Foqal can read, update, manage, and remove the documents you choose to use in your workflows.

Available Actions

Append text

Append text to the end of a Google Docs document.

Apply paragraph style

Apply paragraph-level formatting (heading style like H1/H2/H3, alignment, line spacing, paragraph spacing) to a range or to every paragraph containing a target string.

Apply text style

Apply text formatting (bold, italic, underline, strikethrough, font, size, colors) to a Google Docs document. Target a numeric range or every occurrence of a string.

Batch update document

Apply many Google Docs batchUpdate requests at once. Mix any combination of text, paragraph, and table operations in a single atomic call.

Create document

Create a new empty Google Docs document with the given title.

Delete content

Delete a range of content from a Google Docs document, or remove every occurrence of a search string. Works inside tables.

Delete document

Delete a Google Docs document (moves it to the trash via the Drive API).

Delete table column

Delete a single column from an existing table.

Delete table row

Delete a single row from an existing table.

Fill table

Fill an existing table inside a Google Docs document with a 2D array of cell values, replacing each cell's text in a single atomic update.

Insert table

Insert a new empty table at a specific position or at the end of the document.

Insert table column

Insert a new column to the left or right of a target column in an existing table.

Insert table row

Insert a new row above or below a target row in an existing table.

Insert text

Insert text into a Google Docs document at a specific position, or before/after/in place of an anchor string. Works anywhere in the document, including inside tables.

Read document

Read a Google Docs document. Returns both the plain-text contents and the full structured document JSON.

Rename document

Rename a Google Docs document. The new name shows up in both Drive and in Docs as the document title.

Replace text

Find and replace text throughout a Google Docs document. Works inside tables and other structures.

Update table column width

Update the width of a single column or every column in an existing table.

Update table row height

Update the minimum height of a single row or every row in an existing table.