Pular para o conteúdo principal

Google Docs Toolkit

The Google Docs Toolkit is a workflow node. Its tools include Read Document, Search Docs, Insert Text, and Append Text, plus 8 more listed below. Connect a Google Docs account before you use any of these tools. Type @ in a field when the value should come from an earlier step.

Authentication​

Every Google Docs tool needs a connected account before it can run. On the node, open Google Docs Account.

  1. Choose Use my Google Docs account or Use team account.
  2. If no personal account is connected, click Connect Google Docs Account and finish sign-in.
  3. For a team account, choose Use team account and pick one from Team account. The list shows accounts already connected for the project.

Tools​

Read Document​

Reads document.

FieldRequiredDescription
Google Docs AccountYesSelect your personal or team Google Docs account.
Document IDYesGoogle Docs document ID. Type @ to select a variable.
FormatNoOutput format: 'text', 'json', or 'markdown'. Default is text. Type @ to select a variable.
Max LengthNoMaximum character limit for output. Default is null.

Search Docs​

Searches docs.

FieldRequiredDescription
Google Docs AccountYesSelect your personal or team Google Docs account.
QueryYesSearch query for Google Drive. Type @ to select a variable.
Max ResultsNoMaximum number of results to return. Default is 10.

Insert Text​

Runs the insert text tool.

FieldRequiredDescription
Google Docs AccountYesSelect your personal or team Google Docs account.
Document IDYesGoogle Docs document ID. Type @ to select a variable.
TextYesText to insert. Type @ to select a variable.
IndexYesIndex position to insert text (1-based).

Append Text​

Runs the append text tool.

FieldRequiredDescription
Google Docs AccountYesSelect your personal or team Google Docs account.
Document IDYesGoogle Docs document ID. Type @ to select a variable.
TextYesText to append to the document. Type @ to select a variable.
Add NewlineNoAdd newline before appended text if needed. Default is true.

Delete Range​

Deletes range.

FieldRequiredDescription
Google Docs AccountYesSelect your personal or team Google Docs account.
Document IDYesGoogle Docs document ID. Type @ to select a variable.
Start IndexYesStart index of range to delete (1-based, inclusive).
End IndexYesEnd index of range to delete (1-based, exclusive).

Apply Text Style​

Runs the apply text style tool.

FieldRequiredDescription
Google Docs AccountYesSelect your personal or team Google Docs account.
Document IDYesGoogle Docs document ID. Type @ to select a variable.
Start IndexYesStart index of text to style (1-based).
End IndexYesEnd index of text to style (1-based).
BoldNoApply bold formatting (true/false). Default is null.
ItalicNoApply italic formatting (true/false). Default is null.
UnderlineNoApply underline formatting (true/false). Default is null.
StrikethroughNoApply strikethrough formatting (true/false). Default is null.
Font SizeNoFont size in points. Default is null. Type @ to select a variable.
Font FamilyNoFont family name. Default is null. Type @ to select a variable.
Foreground ColorNoText color (hex format). Default is null. Type @ to select a variable.
Background ColorNoBackground color (hex format). Default is null. Type @ to select a variable.
Link URLNoURL to make text a hyperlink. Default is null. Type @ to select a variable.

Apply Paragraph Style​

Runs the apply paragraph style tool.

FieldRequiredDescription
Google Docs AccountYesSelect your personal or team Google Docs account.
Document IDYesGoogle Docs document ID. Type @ to select a variable.
Start IndexYesStart index of paragraph to style (1-based).
End IndexYesEnd index of paragraph to style (1-based).
Heading LevelNoHeading level (1-6). Default is null.
AlignmentNoParagraph alignment: START, CENTER, END, JUSTIFIED. Default is null. Type @ to select a variable.
Line SpacingNoLine spacing multiplier. Default is null. Type @ to select a variable.
Space AboveNoSpace above paragraph in points. Default is null. Type @ to select a variable.
Space BelowNoSpace below paragraph in points. Default is null. Type @ to select a variable.

Insert Table​

Runs the insert table tool.

FieldRequiredDescription
Google Docs AccountYesSelect your personal or team Google Docs account.
Document IDYesGoogle Docs document ID. Type @ to select a variable.
IndexYesIndex position to insert table (1-based).
RowsYesNumber of rows for the table.
ColumnsYesNumber of columns for the table.

Insert Page Break​

Runs the insert page break tool.

FieldRequiredDescription
Google Docs AccountYesSelect your personal or team Google Docs account.
Document IDYesGoogle Docs document ID. Type @ to select a variable.
IndexYesIndex position to insert page break (1-based).

Create Document​

Creates document.

FieldRequiredDescription
Google Docs AccountYesSelect your personal or team Google Docs account.
TitleYesTitle for the new document. Type @ to select a variable.
Initial ContentNoInitial text content. Default is null. Type @ to select a variable.

Create From Template​

Creates from template.

FieldRequiredDescription
Google Docs AccountYesSelect your personal or team Google Docs account.
Template IDYesDocument ID of the template to copy. Type @ to select a variable.
New TitleYesTitle for the new document. Type @ to select a variable.
ReplacementsNoText replacements (key-value pairs). Default is null.

Delete Document​

Deletes document.

FieldRequiredDescription
Google Docs AccountYesSelect your personal or team Google Docs account.
Document IDYesGoogle Docs document ID. Type @ to select a variable.
PermanentNoWhether to permanently delete (skip trash). Default is false.

Agents can use this integration from chat. See Google Docs.

See all integrations on the toolkits overview.