There are 3 ways to configure the tool step when using in an agent
Using dropdown menus
Using input variables
Mix of dropdown menus and input variables
This is the easiest way to configure the tool step. You can select the Drive, Spreadsheet and Worksheet from a list of options via the dropdown menu.
This option offers the most flexibility - you can use the same tool step for multiple Google Sheets, however you will need to manually provide the necessary Google Sheet IDs.
This option offers the best of both worlds. You can use the dropdown menu to select the Drive, Spreadsheet and Worksheet, and then use an input variable for “Range” and “Row Values” to allow the agent to dynamically update data in your Google sheet.
The range of cells to update. The update will begin at the starting cell of the range (e.g., if the range is A10:C20, updates begin at A10).
Make sure the specified range fully covers the rows and columns you are updating.
For example, if you are updating 3 columns across the first 5 rows, the range should be at least A1:C5.
An array is a data structure similar to a CSV row, where each element is separated by a comma, and the entire row is enclosed in square brackets.
An array can have many different types of data, including strings, numbers, , and even other arrays.
["Dog", 1, true]
An array of arrays is just multiple arrays put together. This is what an array of arrays looks like:
What is the difference between using the green input variables and the dropdown menu?
The dropdown menu is the easiest way to configure the tool step. You can select the Drive, Spreadsheet and Worksheet from a list of options via the dropdown menu.The input variables offer more flexibility e.g. you can use the same tool step for multiple Google Sheets, however you will need to manually provide the necessary Google Sheet IDs.
Can I use a mix of both dropdown menu and green input variables?
If you are using the tool in an agent, this is the recommended approach. You can use the dropdown menu to select the fields that don’t need to change (the ID fields), and then use the green input variables for “Range” and “Row Values” to allow the agent to dynamically update data in your Google sheet.
If you are only using the input variables, you will need to provide the necessary Google Sheet IDs for the tool step to function properly. At the minimum, this includes the spreadsheet ID and the worksheet ID.