Skip to main content

Google Docs

Read and write Google Docs documents.

Google Docs Logo

Authentication

This connector uses OAuth 2.0 authentication.

info

Set up your connection in the Abstra Console before using it in your workflows.

How to use

Using the Smart Chat

Execute the action "CHOOSE_ONE_ACTION_BELOW" from my connector "YOUR_CONNECTOR_NAME" using the params "PARAMS_HERE".

Using the Web Editor

from abstra.connectors import run_connection_action

result = run_connection_action(
connection_name="your_connection_name",
action_name="your_action_name",
params={
"param1": "value1",
"param2": "value2"
})

Available Actions

This connector provides 3 actions:

ActionPurposeParameters
documents_getGets the latest version of the specified document.suggestionsViewMode (string)
documentId (string) required
includeTabsContent (boolean)
documents_createCreates a blank document using the title given in the request. Other fields in the request, including any provided content, are ignored. Returns the created document.tabs (array)
footers (object)
revisionId (string)
inlineObjects (object)
title (string)
positionedObjects (object)
body: {
. content (array)
} (object)
namedStyles: {
. styles (array)
} (object)
documentId (string)
documentStyle: {
. pageNumberStart (integer)
. defaultFooterId (string)
. marginTop (object)
. evenPageFooterId (string)
. evenPageHeaderId (string)
. marginBottom (object)
. marginFooter (object)
. firstPageHeaderId (string)
. useFirstPageHeaderFooter (boolean)
. useCustomHeaderFooterMargins (boolean)
. marginLeft (object)
. flipPageOrientation (boolean)
. defaultHeaderId (string)
. marginRight (object)
. pageSize (object)
. documentFormat (object)
. firstPageFooterId (string)
. marginHeader (object)
. background (object)
. useEvenPageHeaderFooter (boolean)
} (object)
namedRanges (object)
footnotes (object)
lists (object)
headers (object)
suggestedNamedStylesChanges (object)
suggestedDocumentStyleChanges (object)
suggestionsViewMode (string)
documents_batch_updateApplies one or more updates to the document. Each request is validated before being applied. If any request is not valid, then the entire request will fail and nothing will be applied. Some requests have replies to give you some information about how they are applied. Other requests do not need to return information; these each return an empty reply. The order of replies matches that of the requests. For example, suppose you call batchUpdate with four updates, and only the third one returns infodocumentId (string) required
writeControl: {
. requiredRevisionId (string)
. targetRevisionId (string)
} (object)
requests (array)