During the process of trying to figure out how to get Loop actions to work with Google Sheets I created a super simple example agent to demonstrate functionality and give others a simple base to work off. I'm not sure if there's a better way. I would be interested in any feedback.
Hopefully, it saves someone else some time.
Questions:
Loop item
[[ Uploaded File ]] Include a row number in the data for use in the loop sub-agent excluding header row if one exists.
Output a horizontal rule, and then the following message replacing N with the number of rows excluding the header row: ### Status: Finished #### N rows processed from the uploaded file, excluding the header row.
For Each [[Loop item]] identify the columns/fields for each row. Extract these columns/fields from [[Loop item]] Create a JSON file and populate the columns/fields with their corresponding information.
Output a horizontal rule and then the following message replacing N with the row number from [[Loop item]] : ### In Loop: Row N
Output [[ 1. Think ]] as JSON in a JSON code block.
It looks like you're new here. Sign in or register to see or post comments, upvote, and react.