For the complete documentation index, see llms.txt. This page is also available as Markdown.

Work with Google Sheets in Agentic Workflows

Overview

With the Google Sheets integration, you can set up Agentic Workflows in Kizen to retrieve live Google Sheets™ data, search data on the sheet, append new rows to the sheet, and update existing rows or cells.


Before You Begin

To work with Google Sheets in Agentic Workflows, you need an active, authenticated connection to Google Sheets.

For more information, see Set Up Google Sheets in Kizen.


Work with Google Sheets in Agentic Workflows

To work with Google Sheets in Agentic Workflows:

1

Go to the Agentic Workflow builder

In the global navigation, select Agentic Workflows. Then, to open the builder, do one of the following:

  • Select New Agentic Workflow.

  • Select the name of an existing Agentic Workflow.

The New Agentic Workflows button on the Agentic Workflows page
2

Add an action to the workflow

Select +, and then select Add Action.

The Add Action context menu item in the Agentic Workflow builder
3

Select the Google Sheets action

In the Add Action modal that opens, scroll to the Integration section, and select the Google Sheets connector card.

The Google Sheets connector card on the Add Action modal
4

Choose the function to perform

In the Action Settings section of the Add Action modal, select the Action dropdown menu, and do one of the following:

  • To add a new row to the bottom of a sheet, select Append Row, and set up the action. For more information, see Set Up an Append Row Action below.

  • To return one or more rows from a sheet, select Get Rows, and set up the action. For more information, see Set Up a Get Rows Action below.

  • To find sheet data that matches search criteria, select Search Rows, and set up the action. For more information, see Set Up a Search Rows Action below.

  • To update the data in a row or cell, select Update Row/Cell, and set up the action. For more information, see Set Up an Update Row/Cell Action below.

5

Configure error handling

In the Error Handling section of the modal, specify how to handle errors in this step of the Agentic Workflow.

The error handling options in the Add Action modal
6

Save the Google Sheets action

Select Save.


Set Up an Append Row Action

The Append Row action adds a new row to the bottom of the specified sheet.

Note: Google Sheets treats your row data exactly as if you had typed it onto the sheet and converts the data types of certain values accordingly.

For more information, see Google Sheets.

To set up an Append Row action:

1

Configure the sources for the script inputs

For each of the fields in the Script Inputs section of the Add Action modal, select the source of the field's value from the Input Source dropdown menu, and then configure the source with the additional controls that appear.

The script inputs for the Append Row action in the Add Action modal

The fields are as follows:

Field
Type
Description
Required?

Header Column

Number

The column of the sheet that contains the header. Convert the alphabetical header to its numerical equivalent: A = 1, B = 2, C = 3, and so on. The default value is 1.

No

Header Row

Number

The row of the sheet that contains the header. The default value is 1.

No

Row Data

String

A JSON object containing the row data to append to the sheet, such as {"Movie": "Carrie", "Year": 1976} .

Yes

Sheet Name

String

The name of the sheet tab.

Yes

Spreadsheet ID

String

The technical identifier of the sheet. For more information, see Google Sheets.

Yes

2

Configure the destinations for the script outputs

For each of the fields in the Script Outputs section of the modal, select the destination of the field's value from the Output Destination dropdown menu, and then configure the destination with the additional controls that appear.

The script outputs for the Append Row action in the Add Action modal

The fields are as follows:

Field
Type
Description
Required?

Row Number

Number

The number of the appended row.

No

Spreadsheet ID

String

The technical identifier of the sheet. For more information, see Google Sheets.

No


Set Up a Get Rows Action

The Get Rows action returns one or more rows of data from the specified sheet:

  • By default, this action returns all the rows on the sheet tab.

  • To limit the results to certain rows, identify the rows to return according to a particular column value using the Filter Value and Filter Column input fields. For example, to return only those rows in a horror movie spreadsheet where Tobe Hooper is the director, set Filter Column to the director column and Filter Value to Tobe Hooper.

Note: You can't retrieve more than 50,000 characters with this action.

See Google Sheets for more information.

To set up a Get Rows action:

1

Configure the sources for the script inputs

For each of the fields in the Script Inputs section of the Add Action modal, select the source of the field's value from the Input Source dropdown menu, and then configure the source with the additional controls that appear.

The script inputs for the Get Rows action in the Add Action modal

The fields are as follows:

Field
Type
Description
Required?

Filter Column

String

The column to use to filter the results.

No

Filter Value

String

The value of the filter column to target.

No

Header Column

Number

The column of the sheet that contains the header. Convert the alphabetical header to its numerical equivalent: A = 1, B = 2, C = 3, and so on. The default value is 1.

No

Header Row

Number

The row of the sheet that contains the header. The default value is 1.

No

Sheet Name

String

The name of the sheet tab.

Yes

Spreadsheet ID

String

The technical identifier of the sheet. For more information, see Google Sheets.

Yes

2

Configure the destinations for the script outputs

For each of the fields in the Script Outputs section of the modal, select the destination of the field's value from the Output Destination dropdown menu, and then configure the destination with the additional controls that appear.

The script outputs for the Get Rows action in the Add Action modal

The fields are as follows:

Field
Type
Description
Required?

Row Count

Number

The total number of rows in the results.

No

Rows

String

The row data as a stringified JSON array.

No


Set Up a Search Rows Action

The Search Rows action finds data on a sheet that matches your search criteria. Specifically, the integration returns the data from the matching rows under a particular column of the sheet. You identify the column under which to search, the target value, and the comparison to apply to the target value with the action input fields.

Note: The results set for this action can't contain more than 50,000 characters.

See Google Sheets for more information.

To set up a Search Rows action:

1

Configure the sources for the script inputs

For each of the fields in the Script Inputs section of the Add Action modal, select the source of the field's value from the Input Source dropdown menu, and then configure the source with the additional controls that appear.

The script inputs for the Search Rows action in the Add Action modal

The fields are as follows:

Field
Type
Description
Required?

Column Name

String

The column to search.

Yes

Header Column

Number

The column of the sheet that contains the header. Convert the alphabetical header to its numerical equivalent: A = 1, B = 2, C = 3, and so on. The default value is 1.

No

Header Row

Number

The row of the sheet that contains the header. The default value is 1.

No

Match Type

String

The comparison to use against the Match Value field. The supported match types are equals, not_equals, contains, starts_with, is_empty, and is_not_empty.

No

Match Value

String

The value against which the comparison in the Match Type field is made. You must supply a comparison value for all mach types except is_empty and is_not_empty.

No

Return All Matches

Boolean

Whether to return all matching rows (true) or stop at the first match (false).

Yes

Sheet Name

String

The name of the sheet tab.

Yes

Spreadsheet ID

String

The technical identifier of the sheet. For more information, see Google Sheets.

Yes

2

Configure the destinations for the script outputs

For each of the fields in the Script Outputs section of the modal, select the destination of the field's value from the Output Destination dropdown menu, and then configure the destination with the additional controls that appear.

The script outputs for the Search Rows action in the Add Action modal

The fields are as follows:

Field
Type
Description
Required?

Matching Rows

String

The row data from the results as a stringified JSON array

No

Row Numbers

String

The row numbers from the results as a stringified JSON array

No


Set Up an Update Row/Cell Action

The Update Row/Cell action writes new data to the specified row or cell of a sheet. Identify the row or cell to update in one of two ways:

  • By its row. This is the more precise method.

  • By a matching value in a column on the sheet. Because more than one row might have the same target value in the column, this method can return ambiguous results. Unless you set the action to update all the matching rows, it fails with an error when more than one row meets the match criteria.

Note: Google Sheets treats your row data exactly as if you had typed it onto the sheet and converts the data types of certain values accordingly.

See Google Sheets for details.

To set up an Update Row/Cell action:

1

Configure the sources for the script inputs

For each of the fields in the Script Inputs section of the Add Action modal, select the source of the field's value from the Input Source dropdown menu, and then configure the source with the additional controls that appear.

The script inputs for the Update Row/Cell action in the Add Action modal

The fields are as follows:

Field
Type
Description
Required?

Header Column

Number

The column of the sheet that contains the header. Convert the alphabetical header to its numerical equivalent: A = 1, B = 2, C = 3, and so on. The default value is 1.

No

Header Row

Number

The row of the sheet that contains the header. The default value is 1.

No

Match Column

String

The name of the column in which to look for the match value.

No

Match Value

String

The target value from the match column.

No

Row Data

String

A JSON object containing the data to write to the sheet of the row, such as {"Movie": "Scream", "Year": 1996} .

Yes

Row Number

Number

The number of the row to update.

No

Sheet Name

String

The name of the sheet tab.

Yes

Spreadsheet ID

String

The technical identifier of the sheet. For more information, see Google Sheets.

Yes

Update All Matches

Boolean

Whether to update all possible matches in the sheet tab. If false and more than one row matches your criteria, the integration throws an error.

Yes

2

Configure the destinations for the script outputs

For each of the fields in the Script Outputs section of the modal, select the destination of the field's value from the Output Destination dropdown menu, and then configure the destination with the additional controls that appear.

The script outputs for the Update Row/Cell action in the Add Action modal

The fields are as follows:

Field
Type
Description
Required?

Rows Updated

String

The number of rows updated

No

Success

Boolean

Whether the update action was successful

No

Note: The Rows Updated field returns a numerical value, but as the String data type, not as a Number.


What's Next

Continue to Troubleshoot Google Sheets to find solutions for common issues with the Google Sheets integration.


Google Sheets™ is a trademark of Google LLC. Kizen's Google Sheets integration is not affiliated with, sponsored by, or endorsed by Google LLC.

Last updated

Was this helpful?