Tailflow
Skip to article
Browse documentation

Google Docs · Action

Get document content

Reads the text of a document and hands it to the steps below, for an agent to summarise or a message to quote.

When to use it

Reading the report an earlier run wrote, so an agent can answer questions about it.

At a glance

IntegrationGoogle Docs
Credits1
ConnectionGoogle Docs, by signing in

Settings

documentRequiredAccepts event fields
Document. The document's id or link, usually from a step above. Only documents made by Google Docs or Google Drive steps can be reached.

What it hands on

Actions run in order, and each one can read what the actions above it produced. This one writes the fields below; a later action reaches them as {{ actions.docs_get_content_1.id }} — the action’s key, then which one it is if you use more than one of the same kind.

id
The document's id. It is what Append text, Find and replace text and Get document content take.
name
The document's name.
link
The address that opens the document in a browser.
text
The document's text, tab after tab, with table cells on lines of their own.
truncated
true when the text was longer than 100,000 characters and was cut there.

Good to know

  • Only the text is read. Images, drawings and formatting are left out.
  • Only documents made by Google Docs or Google Drive steps can be reached. A document you made yourself in Google Docs cannot be opened by a flow.