Skip to content

Google Docs

Google Docs is a cloud-based collaborative word processing platform that allows multiple users to create, edit, and share documents in real-time.

Categories: file-storage

Type: googleDocs/v1


Connections

Version: 1

OAuth2 Authorization Code

Properties

NameLabelTypeDescriptionRequired
clientIdClient IdSTRINGtrue
clientSecretClient SecretSTRINGtrue

Actions

Create Document

Name: createDocument

Create a document on Google Docs.

Properties

NameLabelTypeDescriptionRequired
titleTitleSTRINGDocument title.true
bodyContentSTRINGDocument content.true

Example JSON Structure

{
"label" : "Create Document",
"name" : "createDocument",
"parameters" : {
"title" : "",
"body" : ""
},
"type" : "googleDocs/v1/createDocument"
}

Output

The output for this action is dynamic and may vary depending on the input parameters. To determine the exact structure of the output, you need to execute the action.

Create Document From Template

Name: createDocumentFromTemplate

Creates a new document based on an existing one and can replace any placeholder variables found in your template document, like [[name]], [[email]], etc.

Properties

NameLabelTypeDescriptionRequired
fileIdTemplate Document IDSTRINGThe ID of the template document from which the new document will be created.true
fileNameNew Document NameSTRINGName of the new document.true
folderIdFolder for New DocumentSTRINGFolder ID where the new document will be saved. If not provided, the new document will be saved in the same folder as the template document.false
valuesVariablesOBJECT
Properties {}
Don’t include the ”[[]]”, only the key name and its value.false
imagesImagesOBJECT
Properties {}
Key: Image ID (get it manually from the Read File Action), Value: Image URL.false

Example JSON Structure

{
"label" : "Create Document From Template",
"name" : "createDocumentFromTemplate",
"parameters" : {
"fileId" : "",
"fileName" : "",
"folderId" : "",
"values" : { },
"images" : { }
},
"type" : "googleDocs/v1/createDocumentFromTemplate"
}

Output

The output for this action is dynamic and may vary depending on the input parameters. To determine the exact structure of the output, you need to execute the action.

Get Document

Name: getDocument

Retrieve a specified document from your Google Drive.

Properties

NameLabelTypeDescriptionRequired
documentIdDocument IdSTRINGThe ID of the document to read.true

Example JSON Structure

{
"label" : "Get Document",
"name" : "getDocument",
"parameters" : {
"documentId" : ""
},
"type" : "googleDocs/v1/getDocument"
}

Output

The output for this action is dynamic and may vary depending on the input parameters. To determine the exact structure of the output, you need to execute the action.


Additional instructions


anl-c-google-docs-md

CONNECTION

Setting up OAuth2

Turning on Docs API