googleGoogle Sheets

Procedures and concepts for the Google Sheets integration.

circle-info

The following documentation is for Google Sheets v2.0.1 (BDK).

Overview

Google Sheets is a powerful cloud-based spreadsheet application with real-time collaboration capabilities. This integration enables automated data entry, spreadsheet management, and collaborative workflow automation. Streamline data analysis and enhance team productivity through automated spreadsheet operations.

Prerequisites

1. Required Books

The following Book(s) need to be added to your agent so it can learn and understand the automation procedures defined within them:

  • Google Sheets

How to Add the Book(s)

  1. Go to BooksAll Books.

  2. Search for the name of the book and click on it.

  3. Click on Install or Add Connection to add the book to your agent.

  4. If adding a connection, you'll be prompted for connectivity details.

Connectivity

This section outlines the available methods for connecting to the Book, along with the required configuration details for each.

This books supports the connectivity methods described in this section.In here you will find information about what information is required in order to employ each method.

Connect using Client Email, Token URI and Private Key

Gets the credentials from the service account keys.

Label
Description
Type

Client Email

The client email of the service account registered in the Google Cloud Console.

text

Token URI

The token URI of the Google Cloud Console.

text

Private Key

The private key of the service account registered in the Google Cloud Console.

sensitive

Procedures

to add some content to a table

Append content to a Google Sheets table.

Input Concepts

Concept
Description
Type
Required
Default Value

table ref from which to read the content.

google sheet table reference

Yes

(no default)

content

the content to be added into the table reference.

table

Yes

(no default)

Examples

Append the contents of a table into a sheet table

to create a (table) in a sheet

Create a table in a spreadsheet's sheet.

Input Concepts

Concept
Description
Type
Required
Default Value

spreadsheet's sheet where the table will be created.

google sheet reference

Yes

(no default)

headers

List of the headers for the new table.

text

Yes

(no default)

Output Concepts

Concept
Description
Type

A reference to the created table.

google sheet table reference

Examples

Create a new table in a sheet of a spreadsheet

to create a google spreadsheet in a (folder)

Create a new Google Sheets spreadsheet.

Input Concepts

Concept
Description
Type
Required
Default Value

name

The name for the new Google Sheets spreadsheet.

text

Yes

(no default)

The folder to create the Google Sheets spreadsheet in.

google drive folder reference

No

(no default)

Output Concepts

Concept
Description
Type

the new spreadsheet's file reference.

google drive file reference

Examples

Create a Google Sheets spreadsheet called "Hello World" in a google drive folder

to get the (file's sheets)

FILTER - CAPABLE

Get the sheets from a Google Sheets file.

Input Concepts

Concept
Description
Type
Required
Default Value

Google Sheets spreadsheet from which to retrieve the sheets.

google drive file reference

Yes

(no default)

Output Concepts

Concept
Description
Type

The list of the retrieved sheet references.

google sheet reference

Examples

Retrieve the sheets of a spreadsheet inside a drive folder

Retrieve a sheet of a spreadsheet by name

to get the (sheet's tables)

FILTER - CAPABLE

Get the tables from a Google Sheets sheet.

Input Concepts

Concept
Description
Type
Required
Default Value

spreadsheet's sheet from which to retrieve the table.

google sheet reference

Yes

(no default)

Output Concepts

Concept
Description
Type

The list of the retrieved table references.

google sheet table reference

Examples

Retrieve the tables in a sheet of a spreadsheet

Retrieve the table in a sheet of a spreadsheet by name

to insert a (new column) in the table

Create a new column in a Google Sheets table.

Input Concepts

Concept
Description
Type
Required
Default Value

table where to insert the new column.

google sheet table reference

Yes

(no default)

index

index in which to insert the column.

number

Yes

(no default)

name

name to the new column

text

Yes

(no default)

values

list of values to add to the new column

boolean or number or text

Yes

(no default)

Output Concepts

Concept
Description
Type

A reference of the newly created column

google sheet column reference

Examples

Insert a new column into a table

to insert a (new row) in the table

Create a new row in a Google Sheets table.

Input Concepts

Concept
Description
Type
Required
Default Value

table where to insert the new row.

google sheet table reference

Yes

(no default)

index

index in which to insert the row, starting at 0 and relative to the table's header.

number

Yes

(no default)

values

list of values to add with the row

boolean or number or text

Yes

(no default)

Output Concepts

Concept
Description
Type

A list of the retrieved row references.

google sheet row reference

Examples

Insert a new row into a table

to read the (content) from a table

Get the contents of a Google Sheets table.

Input Concepts

Concept
Description
Type
Required
Default Value

table reference from which to read the content.

google sheet table reference

Yes

(no default)

Output Concepts

Concept
Description
Type

content

A table with the read contents.

table

Examples

Read the contents of a sheet table

to retrieve the (columns) from the table

Get the columns from a Google Sheets table.

Input Concepts

Concept
Description
Type
Required
Default Value

table from which to retrieve the columns.

google sheet table reference

Yes

(no default)

Output Concepts

Concept
Description
Type

A list of the retrieved column references.

google sheet column reference

Examples

Retrieve the columns of a table

to retrieve the (rows) from the table

Get the rows from a Google Sheets table.

Input Concepts

Concept
Description
Type
Required
Default Value

table from which to retrieve the rows information.

google sheet table reference

Yes

(no default)

Output Concepts

Concept
Description
Type

A list of the retrieved row references.

google sheet row reference

Examples

Retrieve the rows of a table

to write the content in a table

Update the contents of a Google Sheets table.

Input Concepts

Concept
Description
Type
Required
Default Value

table reference from which to read the content.

google sheet table reference

Yes

(no default)

content

the content to be set into the table reference.

table

Yes

(no default)

Examples

Set the contents of a table into a sheet table

Concepts

Google sheet table reference

Reference to a table inside a Google Sheets spreadsheet's sheet.

Field Name
Description
Type

id

Id of the table

text

name

Name of the table

text

sheet_reference

Sheet the table belongs to

json

Google sheet reference

Reference to a sheet inside a Google Sheets spreadsheet file.

Field Name
Description
Type

id

Id of the sheet

number

name

Name of the sheet

text

file

spreadsheet file the sheet belongs to

json

Google drive folder reference

Contains all information required to identify a folder in Google Drive.

Field Name
Description
Type

id

The id of the folder

text

folder_name

The name of the folder

text

The ids of the parent folders

list of text

Google drive file reference

Contains all information required to identify a file in Google Drive.

Field Name
Description
Type

id

The id of the file

text

file_name

The name of the file

text

The ids of the parent folders

list of text

Google sheet column reference

Reference to a column inside a Google Sheets spreadsheet's sheet.

Field Name
Description
Type

index

Index of the column

number

name

Name of the column

text

table

Table the column belongs to

json

Google sheet row reference

Reference to a row inside a Google Sheets spreadsheet's sheet.

Field Name
Description
Type

index

Index of the row

number

Values in that row

list of list of any

table

Table the row belongs to

json

Last updated

Was this helpful?